pack

package
v0.0.0-...-4a08baf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pack

type Pack struct {
	Filename string
	Metadata *PackMetadata
	Manifest *PackManifest
	Files    []*PackFile
}

func ReadPack

func ReadPack(filename string) (*Pack, error)

func (*Pack) Install

func (p *Pack) Install(instancelocation string, downloader *util.Downloader) (*minecraft.Minecraft, modloader.ModLoader, error)

type PackFile

type PackFile struct {
	Name string
}

type PackManifest

type PackManifest struct {
	MinecraftVersion string
	Modloaders       []*PackModloader
	Mods             []*PackResource
	ResourcePacks    []*PackResource
}

type PackMetadata

type PackMetadata struct {
	Name    string
	Title   string
	Version string
	Authors []string
}

type PackModloader

type PackModloader struct {
	Id      string
	Version string
}

type PackResource

type PackResource struct {
	Type        string
	Destination string
	Location    string
	Hash        string
	Size        int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL