Class DoubleChestBlockEntityTranslator
java.lang.Object
org.geysermc.geyser.translator.level.block.entity.BlockEntityTranslator
org.geysermc.geyser.translator.level.block.entity.DoubleChestBlockEntityTranslator
Chests have more block entity properties in Bedrock, which is solved by implementing the BedrockChunkWantsBlockEntityTag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidtranslateChestValue(org.cloudburstmc.nbt.NbtMapBuilder builder, BlockState state, int x, int z) Add Bedrock block entity tags to a NbtMap based on Java propertiesvoidtranslateTag(GeyserSession session, org.cloudburstmc.nbt.NbtMapBuilder bedrockNbt, org.cloudburstmc.nbt.NbtMap javaNbt, BlockState blockState) Methods inherited from class org.geysermc.geyser.translator.level.block.entity.BlockEntityTranslator
getBlockEntityTag, getConstantBedrockTag, getConstantBedrockTag, getConstantBedrockTag
-
Constructor Details
-
DoubleChestBlockEntityTranslator
public DoubleChestBlockEntityTranslator()
-
-
Method Details
-
translateTag
public void translateTag(GeyserSession session, org.cloudburstmc.nbt.NbtMapBuilder bedrockNbt, org.cloudburstmc.nbt.NbtMap javaNbt, BlockState blockState) - Specified by:
translateTagin classBlockEntityTranslator
-
translateChestValue
public static void translateChestValue(org.cloudburstmc.nbt.NbtMapBuilder builder, BlockState state, int x, int z) Add Bedrock block entity tags to a NbtMap based on Java properties- Parameters:
builder- the NbtMapBuilder to apply properties tostate- the BlockState of this double chestx- the x position of this chest pairz- the z position of this chest pair
-