public class BlockStateValues extends Object
| Constructor and Description |
|---|
BlockStateValues() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getBannerColor(int state)
Banner colors are part of the namespaced ID in Java Edition, but part of the block entity tag in Bedrock.
|
static byte |
getBedColor(int state)
Bed colors are part of the namespaced ID in Java Edition, but part of the block entity tag in Bedrock.
|
static it.unimi.dsi.fastutil.ints.Int2ByteMap |
getCommandBlockValues()
The block state in Java and Bedrock both contain the conditional bit, however command block block entity tags
in Bedrock need the conditional information.
|
static it.unimi.dsi.fastutil.ints.Int2ObjectMap<DoubleChestValue> |
getDoubleChestValues()
All double chest values are part of the block state in Java and part of the block entity tag in Bedrock.
|
static Map<String,com.nukkitx.nbt.NbtMap> |
getFlowerPotBlocks()
Get the map of contained flower pot plants to Bedrock CompoundTag
|
static it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> |
getFlowerPotValues()
Get the Int2ObjectMap of flower pot block states to containing plant
|
static int |
getNoteblockPitch(int state)
The note that noteblocks output when hit is part of the block state in Java but sent as a BlockEventPacket in Bedrock.
|
static it.unimi.dsi.fastutil.ints.Int2BooleanMap |
getPistonValues()
Get the Int2BooleanMap showing if a piston block state is extended or not.
|
static byte |
getShulkerBoxDirection(int state)
Shulker box directions are part of the namespaced ID in Java Edition, but part of the block entity tag in Bedrock.
|
static byte |
getSkullRotation(int state)
Skull rotations are part of the namespaced ID in Java Edition, but part of the block entity tag in Bedrock.
|
static byte |
getSkullVariant(int state)
Skull variations are part of the namespaced ID in Java Edition, but part of the block entity tag in Bedrock.
|
static it.unimi.dsi.fastutil.ints.Int2IntMap |
getSkullWallDirections()
Skull rotations are part of the namespaced ID in Java Edition, but part of the block entity tag in Bedrock.
|
static boolean |
isStickyPiston(int blockState) |
static void |
storeBlockStateValues(Map.Entry<String,com.fasterxml.jackson.databind.JsonNode> entry,
int javaBlockState)
Determines if the block state contains Bedrock block information
|
public static void storeBlockStateValues(Map.Entry<String,com.fasterxml.jackson.databind.JsonNode> entry, int javaBlockState)
entry - The String to JsonNode map used in BlockTranslatorjavaBlockState - the Java Block State of the blockpublic static int getBannerColor(int state)
state - BlockState of the blockpublic static byte getBedColor(int state)
state - BlockState of the blockpublic static it.unimi.dsi.fastutil.ints.Int2ByteMap getCommandBlockValues()
public static it.unimi.dsi.fastutil.ints.Int2ObjectMap<DoubleChestValue> getDoubleChestValues()
public static it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> getFlowerPotValues()
public static Map<String,com.nukkitx.nbt.NbtMap> getFlowerPotBlocks()
public static int getNoteblockPitch(int state)
state - BlockState of the blockpublic static it.unimi.dsi.fastutil.ints.Int2BooleanMap getPistonValues()
public static boolean isStickyPiston(int blockState)
public static byte getSkullVariant(int state)
state - BlockState of the blockpublic static byte getSkullRotation(int state)
state - BlockState of the blockpublic static it.unimi.dsi.fastutil.ints.Int2IntMap getSkullWallDirections()
public static byte getShulkerBoxDirection(int state)
state - BlockState of the blockCopyright © 2021 GeyserMC. All rights reserved.