Class LecternBlock

java.lang.Object
org.geysermc.geyser.level.block.type.Block
org.geysermc.geyser.level.block.type.LecternBlock
All Implemented Interfaces:
BedrockChunkWantsBlockEntityTag, RequiresBlockState

public class LecternBlock extends Block implements BedrockChunkWantsBlockEntityTag
  • Field Details

    • EMPTY_BOOK

      public static final org.cloudburstmc.nbt.NbtMap EMPTY_BOOK
  • Constructor Details

  • Method Details

    • createTag

      public org.cloudburstmc.nbt.NbtMap createTag(GeyserSession session, org.cloudburstmc.math.vector.Vector3i position, BlockState blockState)
      Description copied from interface: BedrockChunkWantsBlockEntityTag
      Get the tag of the Bedrock-only block entity. Used during chunk loading.
      Specified by:
      createTag in interface BedrockChunkWantsBlockEntityTag
      position - 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:
      updateBlock in class Block
    • 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)