Class BlockEntityUtils

java.lang.Object
org.geysermc.geyser.util.BlockEntityUtils

public class BlockEntityUtils extends Object
  • Field Details

    • BEDROCK_ONLY_BLOCK_ENTITIES

      public static final it.unimi.dsi.fastutil.objects.ObjectArrayList<BedrockOnlyBlockEntity> BEDROCK_ONLY_BLOCK_ENTITIES
      A list of all block entities that require the Java block state in order to fill out their block entity information. This list will be smaller with cache sections on as we don't need to double-cache data
    • BLOCK_ENTITY_TRANSLATIONS

      public static final Map<com.github.steveice10.mc.protocol.data.game.level.block.BlockEntityType,​String> BLOCK_ENTITY_TRANSLATIONS
      Contains a list of irregular block entity name translations that can't be fit into the regex
  • Constructor Details

    • BlockEntityUtils

      public BlockEntityUtils()
  • Method Details

    • getBedrockBlockEntityId

      public static String getBedrockBlockEntityId(com.github.steveice10.mc.protocol.data.game.level.block.BlockEntityType type)
    • getBlockEntityTranslator

      public static BlockEntityTranslator getBlockEntityTranslator(com.github.steveice10.mc.protocol.data.game.level.block.BlockEntityType type)
    • updateBlockEntity

      public static void updateBlockEntity(GeyserSession session, @Nonnull com.nukkitx.nbt.NbtMap blockEntity, com.github.steveice10.mc.protocol.data.game.entity.metadata.Position position)
    • updateBlockEntity

      public static void updateBlockEntity(GeyserSession session, @Nonnull com.nukkitx.nbt.NbtMap blockEntity, com.nukkitx.math.vector.Vector3i position)