Class LecternMenu


public class LecternMenu extends AbstractContainerMenu
  • Field Details

  • Constructor Details

    • LecternMenu

      public LecternMenu(int pContainerId)
    • LecternMenu

      public LecternMenu(int pContainerId, Container pLectern, ContainerData pLecternData)
  • Method Details

    • clickMenuButton

      public boolean clickMenuButton(Player pPlayer, int pId)
      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 pPlayer, int pIndex)
      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 pId, int pData)
      Overrides:
      setData in class AbstractContainerMenu
    • stillValid

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

      public ItemStack getBook()
    • getPage

      public int getPage()