Package org.geysermc.geyser.util
Class BlockEntityUtils
java.lang.Object
org.geysermc.geyser.util.BlockEntityUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic it.unimi.dsi.fastutil.objects.ObjectArrayList<BedrockOnlyBlockEntity>
A list of all block entities that require the Java block state in order to fill out their block entity information.Contains a list of irregular block entity name translations that can't be fit into the regex -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getBedrockBlockEntityId(com.github.steveice10.mc.protocol.data.game.level.block.BlockEntityType type)
static BlockEntityTranslator
getBlockEntityTranslator(com.github.steveice10.mc.protocol.data.game.level.block.BlockEntityType type)
static void
updateBlockEntity(GeyserSession session, com.nukkitx.nbt.NbtMap blockEntity, com.github.steveice10.mc.protocol.data.game.entity.metadata.Position position)
static void
updateBlockEntity(GeyserSession session, com.nukkitx.nbt.NbtMap blockEntity, com.nukkitx.math.vector.Vector3i position)
-
Field Details
-
BEDROCK_ONLY_BLOCK_ENTITIES
public static final it.unimi.dsi.fastutil.objects.ObjectArrayList<BedrockOnlyBlockEntity> BEDROCK_ONLY_BLOCK_ENTITIESA 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_TRANSLATIONSContains 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)
-