Package org.geysermc.connector.utils
Class BlockEntityUtils
java.lang.Object
org.geysermc.connector.utils.BlockEntityUtils
-
Field Summary
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic BlockEntityTranslatorgetBlockEntityTranslator(String name)static voidupdateBlockEntity(GeyserSession session, com.nukkitx.nbt.NbtMap blockEntity, com.github.steveice10.mc.protocol.data.game.entity.metadata.Position position)static voidupdateBlockEntity(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 chunks on as we don't need to double-cache data -
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
-
getBlockEntityTranslator
-
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)
-