Class LecternMenu


public class LecternMenu extends AbstractContainerMenu
  • Field Details

  • Constructor Details

    • LecternMenu

      public LecternMenu(int containerId)
    • LecternMenu

      public LecternMenu(int containerId, Container lectern, ContainerData lecternData)
  • Method Details

    • clickMenuButton

      public boolean clickMenuButton(Player player, int id)
      Handles the given Button-click on the server, currently only used by enchanting. Name is for legacy.
      Overrides:
      clickMenuButton in class AbstractContainerMenu
    • quickMoveStack

      public ItemStack quickMoveStack(Player player, int index)
      Handle when the stack in slot index is shift-clicked. Normally this moves the stack between the player inventory and the other inventory(s).
      Specified by:
      quickMoveStack in class AbstractContainerMenu
    • setData

      public void setData(int id, int data)
      Overrides:
      setData in class AbstractContainerMenu
    • stillValid

      public boolean stillValid(Player player)
      Determines whether supplied player can use this container
      Specified by:
      stillValid in class AbstractContainerMenu
    • getBook

      public ItemStack getBook()
    • getPage

      public int getPage()