Class LecternBlock
java.lang.Object
org.geysermc.geyser.level.block.type.Block
org.geysermc.geyser.level.block.type.LecternBlock
- All Implemented Interfaces:
BedrockChunkWantsBlockEntityTag,RequiresBlockState
-
Nested Class Summary
Nested classes/interfaces inherited from class org.geysermc.geyser.level.block.type.Block
Block.Builder -
Field Summary
FieldsFields inherited from class org.geysermc.geyser.level.block.type.Block
item, JAVA_AIR_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.cloudburstmc.nbt.NbtMapcreateLecternTag(org.cloudburstmc.math.vector.Vector3i position, org.cloudburstmc.nbt.NbtMap book, int page, int total) org.cloudburstmc.nbt.NbtMapcreateTag(GeyserSession session, org.cloudburstmc.math.vector.Vector3i position, BlockState blockState) Get the tag of the Bedrock-only block entity.static org.cloudburstmc.nbt.NbtMapgetBaseLecternTag(org.cloudburstmc.math.vector.Vector3i position, boolean hasBook) voidupdateBlock(GeyserSession session, BlockState state, org.cloudburstmc.math.vector.Vector3i position) Methods inherited from class org.geysermc.geyser.level.block.type.Block
asItem, blockEntityType, builder, checkForEmptySkull, defaultBlockState, destroyTime, hasBlockEntity, is, is, javaId, javaIdentifier, propertyKeys, pushReaction, requiresCorrectToolForDrops, sendBlockUpdatePacket, setDefaultState, setJavaId, toString
-
Field Details
-
EMPTY_BOOK
public static final org.cloudburstmc.nbt.NbtMap EMPTY_BOOK
-
-
Constructor Details
-
LecternBlock
-
-
Method Details
-
createTag
public org.cloudburstmc.nbt.NbtMap createTag(GeyserSession session, org.cloudburstmc.math.vector.Vector3i position, BlockState blockState) Description copied from interface:BedrockChunkWantsBlockEntityTagGet the tag of the Bedrock-only block entity. Used during chunk loading.- Specified by:
createTagin interfaceBedrockChunkWantsBlockEntityTagposition- Bedrock position of block.blockState- Java BlockState of block.- Returns:
- Bedrock tag
-
updateBlock
public void updateBlock(GeyserSession session, BlockState state, org.cloudburstmc.math.vector.Vector3i position) - Overrides:
updateBlockin classBlock
-
getBaseLecternTag
public static org.cloudburstmc.nbt.NbtMap getBaseLecternTag(org.cloudburstmc.math.vector.Vector3i position, boolean hasBook) -
createLecternTag
public static org.cloudburstmc.nbt.NbtMap createLecternTag(org.cloudburstmc.math.vector.Vector3i position, org.cloudburstmc.nbt.NbtMap book, int page, int total)
-