Class BlockEntityUtils

java.lang.Object
org.geysermc.connector.utils.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 chunks on as we don't need to double-cache data
    • BLOCK_ENTITY_TRANSLATIONS

      public static final Map<String,​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(String id)
    • getBlockEntityTranslator

      public static BlockEntityTranslator getBlockEntityTranslator(String name)
    • 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)