Class LecternContainer


public class LecternContainer extends Container
  • Constructor Details

    • LecternContainer

      public LecternContainer(GeyserSession session, String title, int id, int size, org.geysermc.mcprotocollib.protocol.data.game.inventory.ContainerType containerType)
  • Method Details

    • setVirtualLecternBook

      public void setVirtualLecternBook(GeyserItemStack book, GeyserSession session)
      This is used ONLY once to set the book of a fake lectern in JavaOpenBookTranslator. See Container.setItem(int, GeyserItemStack, GeyserSession) as for why this is separate.
    • shouldConfirmContainerClose

      public boolean shouldConfirmContainerClose()
      Description copied from class: Inventory
      Whether we should be sending a ServerboundContainerClosePacket when closing the inventory.
      Overrides:
      shouldConfirmContainerClose in class Inventory
    • getCurrentBedrockPage

      public int getCurrentBedrockPage()
    • getBlockEntityTag

      public org.cloudburstmc.nbt.NbtMap getBlockEntityTag()
    • isBookInPlayerInventory

      public boolean isBookInPlayerInventory()
    • setCurrentBedrockPage

      public void setCurrentBedrockPage(int currentBedrockPage)
    • setBlockEntityTag

      public void setBlockEntityTag(org.cloudburstmc.nbt.NbtMap blockEntityTag)