Class EnchantmentMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
johnsmith.enchantingoverhauled.menu.enchant.EnchantmentMenu

public class EnchantmentMenu extends net.minecraft.world.inventory.AbstractContainerMenu
  • Field Summary

    Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, SLOT_SIZE, slots, SLOTS_PER_ROW
  • Constructor Summary

    Constructors
    Constructor
    Description
    EnchantmentMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory)
     
    EnchantmentMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.inventory.ContainerLevelAccess access)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    clickMenuButton(net.minecraft.world.entity.player.Player player, int buttonId)
     
     
    int
     
    net.minecraft.world.item.ItemStack
     
    @NotNull net.minecraft.world.item.ItemStack
    quickMoveStack(@NotNull net.minecraft.world.entity.player.Player player, int slotIndex)
     
    void
    removed(@NotNull net.minecraft.world.entity.player.Player player)
     
    void
     
    void
    slotsChanged(@NotNull net.minecraft.world.Container inventory)
     
    boolean
    stillValid(@NotNull net.minecraft.world.entity.player.Player player)
     

    Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EnchantmentMenu

      public EnchantmentMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory)
    • EnchantmentMenu

      public EnchantmentMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.inventory.ContainerLevelAccess access)
  • Method Details

    • slotsChanged

      public void slotsChanged(@NotNull @NotNull net.minecraft.world.Container inventory)
      Overrides:
      slotsChanged in class net.minecraft.world.inventory.AbstractContainerMenu
    • clickMenuButton

      public boolean clickMenuButton(net.minecraft.world.entity.player.Player player, int buttonId)
      Overrides:
      clickMenuButton in class net.minecraft.world.inventory.AbstractContainerMenu
    • quickMoveStack

      @NotNull public @NotNull net.minecraft.world.item.ItemStack quickMoveStack(@NotNull @NotNull net.minecraft.world.entity.player.Player player, int slotIndex)
      Specified by:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • removed

      public void removed(@NotNull @NotNull net.minecraft.world.entity.player.Player player)
      Overrides:
      removed in class net.minecraft.world.inventory.AbstractContainerMenu
    • stillValid

      public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in class net.minecraft.world.inventory.AbstractContainerMenu
    • getActiveContexts

      public List<EnchantContext> getActiveContexts()
    • setActiveContexts

      public void setActiveContexts(List<EnchantContext> contexts)
    • getEnchantmentTarget

      public net.minecraft.world.item.ItemStack getEnchantmentTarget()
    • getEnchantmentSeed

      public int getEnchantmentSeed()