classic_converter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteArray2Int8Array

func ByteArray2Int8Array(array []byte) []int8

func ClassicEntity2Compound

func ClassicEntity2Compound(entity mc_classic_parser.ClassicEntity, schematic bool) nbt.Compound

func ClassicPlayer2Compound

func ClassicPlayer2Compound(player mc_classic_parser.ClassicPlayer) nbt.Compound

Types

type IndevLevel

type IndevLevel struct {
	// Root - About
	CreatedOn int64
	Name      string
	Author    string
	// Root - Environment
	TimeOfDay               int16
	SkyBrightness           int8
	SkyColor                int32
	FogColor                int32
	CloudColor              int32
	CloudHeight             int16
	SurroundingGroundType   int8
	SurroundingGroundHeight int16
	SurroundingWaterType    int8
	SurroundingWaterHeight  int16
	// Root - Map
	Width  int16
	Length int16
	Height int16
	Spawn  [3]int16
	Blocks []int8
	Data   []int8
	// Root
	Entities     []nbt.Compound
	TileEntities []nbt.Compound
}

func (*IndevLevel) FindSpawn

func (indev_level *IndevLevel) FindSpawn()

func (*IndevLevel) InitWithDefaults

func (indev_level *IndevLevel) InitWithDefaults() *IndevLevel

func (*IndevLevel) WriteToFile

func (indev_level *IndevLevel) WriteToFile(filename string)

type Schematic

type Schematic struct {
	Width        int16
	Height       int16
	Length       int16
	Blocks       []int8
	Data         []int8
	Entities     []nbt.Compound
	TileEntities []nbt.Compound
}

func (*Schematic) InitWithDefaults

func (schematic *Schematic) InitWithDefaults() *Schematic

func (*Schematic) WriteToFile

func (schematic *Schematic) WriteToFile(filename string)

Jump to

Keyboard shortcuts

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