Class CrafterMenu

All Implemented Interfaces:
ContainerListener

public class CrafterMenu extends AbstractContainerMenu implements ContainerListener
  • Field Details

  • Constructor Details

  • Method Details

    • addSlots

      private void addSlots(Inventory pPlayerInventory)
    • setSlotState

      public void setSlotState(int pSlot, boolean pEnabled)
    • isSlotDisabled

      public boolean isSlotDisabled(int pSlot)
    • isPowered

      public boolean isPowered()
    • 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
    • stillValid

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

      private void refreshRecipeResult()
    • getContainer

      public Container getContainer()
    • slotChanged

      public void slotChanged(AbstractContainerMenu pContainerToSend, int pDataSlotIndex, ItemStack pStack)
      Sends the contents of an inventory slot to the client-side Container. This doesn't have to match the actual contents of that slot.
      Specified by:
      slotChanged in interface ContainerListener
    • dataChanged

      public void dataChanged(AbstractContainerMenu pContainerMenu, int pDataSlotIndex, int pValue)
      Specified by:
      dataChanged in interface ContainerListener