step0_nemc_blocks_liliya

package
v0.0.0-...-a47955e Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParsedBlock

func GetParsedBlock(filePath string) block_set.BlockSet

Types

type ParsedBlock

type ParsedBlock struct {
	NameWithoutMC string
	States        describe.Props
	// State         map[string]blocks.PropVal
	// StateOrder    []string
	LegacyData    uint16
	NemcRuntimeID int32
	Version       int32
}

func ConvertRawData

func ConvertRawData(rawData *RawData) []ParsedBlock

type RawBlockPalette

type RawBlockPalette struct {
	LegacyData    uint16     `json:"data"` // up to 5469 @ cobblestone_wall
	BlockName     string     `json:"name"`
	States        []RawState `json:"states"`
	BlockNameHash uint64     `json:"name_hash"`  // maybe some hash of block name
	NetworkID     uint32     `json:"network_id"` // maybe some hash of whole block?
}

func (RawBlockPalette) DumpStates

func (p RawBlockPalette) DumpStates() (StateOrder []string, State map[string]describe.PropVal, States describe.Props)

type RawData

type RawData struct {
	Blocks []RawBlockPalette `json:"blocks"`
}

type RawState

type RawState struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Value any    `json:"value"`
}

func (RawState) ToValue

func (s RawState) ToValue() describe.PropVal

Jump to

Keyboard shortcuts

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