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
Fields inherited from class org.geysermc.geyser.level.block.type.Block
item, JAVA_AIR_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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) static org.cloudburstmc.nbt.NbtMapBuildergetBaseLecternTag(org.cloudburstmc.math.vector.Vector3i position, int pages) voidupdateBlock(GeyserSession session, BlockState state, org.cloudburstmc.math.vector.Vector3i position) Methods inherited from class org.geysermc.geyser.level.block.type.Block
asItem, builder, checkForEmptySkull, defaultBlockState, destroyTime, hasBlockEntity, javaId, javaIdentifier, pickItem, pushReaction, requiresCorrectToolForDrops, sendBlockUpdatePacket, setDefaultState, setJavaId, toString
-
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) -
getBaseLecternTag
public static org.cloudburstmc.nbt.NbtMapBuilder getBaseLecternTag(org.cloudburstmc.math.vector.Vector3i position, int pages)
-