Interface BedrockOnlyBlockEntity
- All Superinterfaces:
RequiresBlockState
- All Known Implementing Classes:
DoubleChestBlockEntityTranslator
,FlowerPotBlockEntityTranslator
Implemented only if a block is a block entity in Bedrock and not Java Edition.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.nukkitx.nbt.NbtMap
getTag(GeyserSession session, com.nukkitx.math.vector.Vector3i position, int blockState)
Get the tag of the Bedrock-only block entityboolean
isBlock(int blockState)
Determines if block is part of classvoid
updateBlock(GeyserSession session, int blockState, com.nukkitx.math.vector.Vector3i position)
Update the block on Bedrock Edition.
-
Method Details
-
isBlock
boolean isBlock(int blockState)Determines if block is part of class- Parameters:
blockState
- BlockState to be compared- Returns:
- true if part of the class
-
updateBlock
Update the block on Bedrock Edition.- Parameters:
session
- GeyserConnection.blockState
- The Java block state.position
- The Bedrock block position.
-
getTag
static com.nukkitx.nbt.NbtMap getTag(GeyserSession session, com.nukkitx.math.vector.Vector3i position, int blockState)Get the tag of the Bedrock-only block entity- Parameters:
position
- Bedrock position of block.blockState
- Java BlockState of block.- Returns:
- Bedrock tag, or null if not a Bedrock-only Block Entity
-