content

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: GPL-3.0, LGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeLevelDat

func DecodeLevelDat(worldDir string) (map[string]any, int32, error)

func DumpLevelDat

func DumpLevelDat(worldDir string) (string, error)

func EncodeLevelDat

func EncodeLevelDat(worldDir string, version int32, root map[string]any) error

func GetLevelDat

func GetLevelDat(worldDir string) ([]byte, error)

func GetLevelDatNbtAndVersion

func GetLevelDatNbtAndVersion(worldDir string) ([]byte, int32, error)

func ImportMcaddonToDirs

func ImportMcaddonToDirs(data []byte, resDir string, bpDir string, overwrite bool) string

func ImportMcaddonToDirs2

func ImportMcaddonToDirs2(data []byte, resDir string, bpDir string, skinDir string, overwrite bool) string

func ImportMcpackToDirs

func ImportMcpackToDirs(data []byte, archiveName string, resDir string, bpDir string, overwrite bool) string

func ImportMcpackToDirs2

func ImportMcpackToDirs2(data []byte, archiveName string, resDir string, bpDir string, skinDir string, overwrite bool) string

func ImportMcworldToDir

func ImportMcworldToDir(data []byte, archiveName string, worldsDir string, overwrite bool) string

func IsMcpackSkinPack added in v0.0.29

func IsMcpackSkinPack(data []byte) bool

func PutLevelDat

func PutLevelDat(worldDir string, levelDatData []byte) error

func PutLevelDatNbtAndVersion

func PutLevelDatNbtAndVersion(worldDir string, levelDatData []byte, version int32) error

func ReadLevelDatFields

func ReadLevelDatFields(worldDir string) ([]types.LevelDatField, int32, error)

func ReadLevelDatFieldsAt

func ReadLevelDatFieldsAt(worldDir string, path []string) ([]types.LevelDatField, int32, error)

func ReadLevelDatOrder

func ReadLevelDatOrder(worldDir string) ([]string, int32, error)

func ReadLevelDatOrderAt

func ReadLevelDatOrderAt(worldDir string, path []string) ([]string, int32, error)

func ReadPackInfoFromDir

func ReadPackInfoFromDir(dir string) types.PackInfo

func WriteLevelDatFields

func WriteLevelDatFields(worldDir string, fields []types.LevelDatField, version int32) error

func WriteLevelDatFieldsAt

func WriteLevelDatFieldsAt(worldDir string, path []string, fields []types.LevelDatField, version int32) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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