public class BlockStateValues extends Object
| Constructor and Description |
|---|
BlockStateValues() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getBannerColor(com.github.steveice10.mc.protocol.data.game.world.block.BlockState state)
Banner colors are part of the namespaced ID in Java Edition, but part of the block entity tag in Bedrock.
|
static byte |
getBedColor(com.github.steveice10.mc.protocol.data.game.world.block.BlockState state)
Bed colors are part of the namespaced ID in Java Edition, but part of the block entity tag in Bedrock.
|
static byte |
getSkullRotation(com.github.steveice10.mc.protocol.data.game.world.block.BlockState state) |
static byte |
getSkullVariant(com.github.steveice10.mc.protocol.data.game.world.block.BlockState state)
Skull variations are part of the namespaced ID in Java Edition, but part of the block entity tag in Bedrock.
|
static void |
storeBlockStateValues(Map.Entry<String,com.fasterxml.jackson.databind.JsonNode> entry,
com.github.steveice10.mc.protocol.data.game.world.block.BlockState javaBlockState)
Determines if the block state contains Bedrock block information
|
public static void storeBlockStateValues(Map.Entry<String,com.fasterxml.jackson.databind.JsonNode> entry, com.github.steveice10.mc.protocol.data.game.world.block.BlockState javaBlockState)
entry - The String to JsonNode map used in BlockTranslatorjavaBlockState - the Java Block State of the blockpublic static int getBannerColor(com.github.steveice10.mc.protocol.data.game.world.block.BlockState state)
state - BlockState of the blockpublic static byte getBedColor(com.github.steveice10.mc.protocol.data.game.world.block.BlockState state)
state - BlockState of the blockpublic static byte getSkullVariant(com.github.steveice10.mc.protocol.data.game.world.block.BlockState state)
state - BlockState of the blockpublic static byte getSkullRotation(com.github.steveice10.mc.protocol.data.game.world.block.BlockState state)
state - BlockState of the blockCopyright © 2020 GeyserMC. All rights reserved.