public class FlowerPotBlockEntityTranslator extends Object implements BedrockOnlyBlockEntity
| Constructor and Description |
|---|
FlowerPotBlockEntityTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static com.nukkitx.nbt.NbtMap |
getTag(GeyserSession session,
int blockState,
com.nukkitx.math.vector.Vector3i position)
Get the Nukkit CompoundTag of the flower pot.
|
boolean |
isBlock(int blockState)
Determines if block is part of class
|
static boolean |
isFlowerBlock(int blockState) |
void |
updateBlock(GeyserSession session,
int blockState,
com.nukkitx.math.vector.Vector3i position)
Update the block on Bedrock Edition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTagpublic static boolean isFlowerBlock(int blockState)
blockState - the Java block state of a potential flower pot blockpublic static com.nukkitx.nbt.NbtMap getTag(GeyserSession session, int blockState, com.nukkitx.math.vector.Vector3i position)
blockState - Java block state of flower pot.position - Bedrock position of flower pot.public boolean isBlock(int blockState)
BedrockOnlyBlockEntityisBlock in interface BedrockOnlyBlockEntityblockState - BlockState to be comparedpublic void updateBlock(GeyserSession session, int blockState, com.nukkitx.math.vector.Vector3i position)
BedrockOnlyBlockEntityupdateBlock in interface BedrockOnlyBlockEntitysession - GeyserSession.blockState - The Java block state.position - The Bedrock block position.Copyright © 2021 GeyserMC. All rights reserved.