Documentation
¶
Index ¶
- Variables
- func BedrockBlockNameAndStateToJavaBlock(name string, properties map[string]any) (javaName string, javaProperties map[string]any, found bool)
- func BedrockBlockStrToJavaBlockStr(bedrockBlockStr string) (javaBlockStr string, found bool)
- func BlockNameAndStateStrToRuntimeID(name string, stateStr string) (runtimeID uint32, found bool)
- func BlockNameAndStateToRuntimeID(name string, properties map[string]any) (runtimeID uint32, found bool)
- func BlockStrToRuntimeID(blockNameWithOrWithoutState string) (runtimeID uint32, found bool)
- func ConvertStringToBlockNameAndPropsForSearch(blockString string) (blockNameForSearch describe.BaseWithNameSpace, ...)
- func GetSchematicMapping() [256][256]uint32
- func Init()
- func LegacyBlockToRuntimeID(name string, data uint16) (runtimeID uint32, found bool)
- func RuntimeIDToBlock(runtimeID uint32) (block *describe.Block, found bool)
- func RuntimeIDToBlockNameAndStateStr(runtimeID uint32) (blockName, blockState string, found bool)
- func RuntimeIDToBlockNameWithStateStr(runtimeID uint32) (blockNameWithState string, found bool)
- func RuntimeIDToJavaBlockNameAndState(runtimeID uint32) (name string, properties map[string]any, found bool)
- func RuntimeIDToJavaBlockNameAndStateStr(runtimeID uint32) (blockName, blockState string, found bool)
- func RuntimeIDToJavaBlockStr(runtimeID uint32) (javaBlockStr string, found bool)
- func RuntimeIDToSchematic(runtimeID uint32) (block uint8, value uint8, found bool)
- func RuntimeIDToState(runtimeID uint32) (baseName string, properties map[string]any, found bool)
- func SchematicToRuntimeID(block uint8, value uint8) uint32
Constants ¶
This section is empty.
Variables ¶
View Source
var AIR_RUNTIMEID = uint32(0)
View Source
var BedrockToJavaConvertor *convertor.ToJavaConvertor
View Source
var DefaultAnyToNemcConvertor *convertor.ToNEMCConvertor
View Source
var JavaBlockStrToRuntimeID = BlockStrToRuntimeID
JavaBlockStrToRuntimeID converts Java block strings to RuntimeID It uses the same conversion logic as BlockStrToRuntimeID
View Source
var MCBlocks *block_set.BlockSet
View Source
var MC_CURRENT *block_set.BlockSet
View Source
var NEMC_AIR_RUNTIMEID = uint32(0)
View Source
var NEMC_BLOCK_VERSION = uint32(0)
duplicate in future
Functions ¶
func BedrockBlockNameAndStateToJavaBlock ¶
func BedrockBlockNameAndStateToJavaBlock(name string, properties map[string]any) (javaName string, javaProperties map[string]any, found bool)
BedrockBlockNameAndStateToJavaBlock converts Bedrock block name and properties to Java block
func BedrockBlockStrToJavaBlockStr ¶
BedrockBlockStrToJavaBlockStr converts Bedrock block string to Java block string
func BlockStrToRuntimeID ¶
func ConvertStringToBlockNameAndPropsForSearch ¶
func ConvertStringToBlockNameAndPropsForSearch(blockString string) (blockNameForSearch describe.BaseWithNameSpace, propsForSearch *describe.PropsForSearch)
func GetSchematicMapping ¶
func GetSchematicMapping() [256][256]uint32
func LegacyBlockToRuntimeID ¶
func RuntimeIDToBlockNameWithStateStr ¶
coral_block ["coral_color":"yellow", "dead_bit":false] true
func RuntimeIDToJavaBlockNameAndState ¶
func RuntimeIDToJavaBlockNameAndState(runtimeID uint32) (name string, properties map[string]any, found bool)
RuntimeIDToJavaBlockNameAndState converts Bedrock RuntimeID to Java block name and properties
func RuntimeIDToJavaBlockNameAndStateStr ¶
func RuntimeIDToJavaBlockNameAndStateStr(runtimeID uint32) (blockName, blockState string, found bool)
RuntimeIDToJavaBlockNameAndStateStr converts Bedrock RuntimeID to Java block name and state string
func RuntimeIDToJavaBlockStr ¶
RuntimeIDToJavaBlockStr converts Bedrock RuntimeID to Java block string
func RuntimeIDToSchematic ¶
func RuntimeIDToState ¶
func SchematicToRuntimeID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.