Versions in this module Expand all Collapse all v1 v1.21.1 Jun 12, 2022 v1.20.1 Jun 12, 2022 Changes in this version + type Capability string + type Dependency struct + UUID string + Version [3]int + type Header struct + Description string + MinimumGameVersion [3]int + Name string + UUID string + Version [3]int + type Manifest struct + Capabilities []Capability + Dependencies []Dependency + FormatVersion int + Header Header + Modules []Module + type Metadata struct + Author string + License string + URL string + type Module struct + Description string + Type string + UUID string + Version [3]int + type Pack struct + func Compile(path string) (*Pack, error) + func FromBytes(data []byte) (*Pack, error) + func MustCompile(path string) *Pack + func (pack *Pack) Checksum() [32]byte + func (pack *Pack) ContentKey() string + func (pack *Pack) DataChunkCount(length int) int + func (pack *Pack) Dependencies() []Dependency + func (pack *Pack) Description() string + func (pack *Pack) Encrypted() bool + func (pack *Pack) HasBehaviours() bool + func (pack *Pack) HasScripts() bool + func (pack *Pack) HasTextures() bool + func (pack *Pack) HasWorldTemplate() bool + func (pack *Pack) Len() int + func (pack *Pack) Manifest() Manifest + func (pack *Pack) Modules() []Module + func (pack *Pack) Name() string + func (pack *Pack) ReadAt(b []byte, off int64) (n int, err error) + func (pack *Pack) String() string + func (pack *Pack) UUID() string + func (pack *Pack) Version() string + func (pack Pack) WithContentKey(key string) *Pack