public class DoubleChestBlockEntityTranslator extends BlockEntityTranslator implements BedrockOnlyBlockEntity
BEDROCK_ONLY_BLOCK_ENTITIES, BLOCK_ENTITY_TRANSLATIONS, BLOCK_ENTITY_TRANSLATORS| Constructor and Description |
|---|
DoubleChestBlockEntityTranslator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBlock(int blockState)
Determines if block is part of class
|
static void |
translateChestValue(com.nukkitx.nbt.NbtMapBuilder builder,
DoubleChestValue chestValues,
int x,
int z)
Add Bedrock block entity tags to a NbtMap based on Java properties
|
void |
translateTag(com.nukkitx.nbt.NbtMapBuilder builder,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
int blockState) |
void |
updateBlock(GeyserSession session,
int blockState,
com.nukkitx.math.vector.Vector3i position)
Update the block on Bedrock Edition.
|
getBlockEntityTag, getConstantBedrockTag, getConstantJavaTag, getOrDefault, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTagpublic 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.public void translateTag(com.nukkitx.nbt.NbtMapBuilder builder,
com.github.steveice10.opennbt.tag.builtin.CompoundTag tag,
int blockState)
translateTag in class BlockEntityTranslatorpublic static void translateChestValue(com.nukkitx.nbt.NbtMapBuilder builder,
DoubleChestValue chestValues,
int x,
int z)
builder - the NbtMapBuilder to apply properties tochestValues - the position properties of this double chestx - the x position of this chest pairz - the z position of this chest pairCopyright © 2021 GeyserMC. All rights reserved.