Class DoubleChestBlockEntityTranslator

java.lang.Object
org.geysermc.geyser.translator.level.block.entity.BlockEntityTranslator
org.geysermc.geyser.translator.level.block.entity.DoubleChestBlockEntityTranslator

public class DoubleChestBlockEntityTranslator extends BlockEntityTranslator
Chests have more block entity properties in Bedrock, which is solved by implementing the BedrockChunkWantsBlockEntityTag
  • 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:
      translateTag in class BlockEntityTranslator
    • 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 to
      state - the BlockState of this double chest
      x - the x position of this chest pair
      z - the z position of this chest pair