public class BlockStateValues extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
JAVA_AIR_ID |
static int |
JAVA_BELL_ID |
static int |
JAVA_COBWEB_ID |
static int |
JAVA_FURNACE_ID |
static int |
JAVA_FURNACE_LIT_ID |
static int |
JAVA_SPAWNER_ID |
static int |
JAVA_WATER_ID |
| 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 it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> |
getFlowerPotValues()
Get the Int2ObjectMap of flower pot block states to containing plant
|
static Map<Integer,Boolean> |
getLecternBookStates()
This returns a Map interface so IntelliJ doesn't complain about
Int2BooleanMap.compute(int, BiFunction)
not returning null. |
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 float |
getSlipperiness(int state)
Get the slipperiness of a block.
|
static int |
getWaterLevel(int state)
Get the level of water from the block state.
|
static boolean |
isStickyPiston(int blockState) |
static void |
storeBlockStateValues(String javaId,
int javaBlockState,
com.fasterxml.jackson.databind.JsonNode blockData)
Determines if the block state contains Bedrock block information
|
public static final int JAVA_AIR_ID
public static int JAVA_BELL_ID
public static int JAVA_COBWEB_ID
public static int JAVA_FURNACE_ID
public static int JAVA_FURNACE_LIT_ID
public static int JAVA_SPAWNER_ID
public static int JAVA_WATER_ID
public static void storeBlockStateValues(String javaId, int javaBlockState, com.fasterxml.jackson.databind.JsonNode blockData)
javaId - The Java Identifier of the blockjavaBlockState - the Java Block State of the blockblockData - JsonNode of info about the block from blocks.jsonpublic 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<Integer,Boolean> getLecternBookStates()
Int2BooleanMap.compute(int, BiFunction)
not returning null.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 blockpublic static int getWaterLevel(int state)
state - BlockState of the blockpublic static float getSlipperiness(int state)
state - BlockState of the blockCopyright © 2021 GeyserMC. All rights reserved.