Class ArcaneWorkbenchMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.binaris.wizardry.content.menu.ArcaneWorkbenchMenu

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

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final int
     
    net.minecraft.world.Container
     
    static final int
     
    boolean
     
    static final int
     
    static final int
     
    static final int
     

    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, slots
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArcaneWorkbenchMenu(int i, net.minecraft.world.entity.player.Inventory playerInv)
     
    ArcaneWorkbenchMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int @Nullable []
    findSlotRangeForItem(net.minecraft.world.item.ItemStack stack)
     
    void
    onApplyButtonPressed(net.minecraft.world.entity.player.Player player)
     
    void
    onClearButtonPressed(net.minecraft.world.entity.player.Player player)
     
    void
    onSlotChanged(int slotNumber, net.minecraft.world.item.ItemStack stack)
     
    void
    onSlotChanged(int slotNumber, net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.entity.player.Player player)
     
    @NotNull net.minecraft.world.item.ItemStack
    quickMoveStack(@NotNull net.minecraft.world.entity.player.Player player, int index)
     
    boolean
    stillValid(@NotNull net.minecraft.world.entity.player.Player player)
     

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

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

    Methods inherited from class java.lang.Object

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

    • CRYSTAL_SLOT

      public static final int CRYSTAL_SLOT
      See Also:
    • CENTRE_SLOT

      public static final int CENTRE_SLOT
      See Also:
    • UPGRADE_SLOT

      public static final int UPGRADE_SLOT
      See Also:
    • SLOT_RADIUS

      public static final int SLOT_RADIUS
      See Also:
    • PLAYER_INVENTORY_SIZE

      public static final int PLAYER_INVENTORY_SIZE
      See Also:
    • ARCANE_WORKBENCH_EMPTY_SLOT_CRYSTAL

      public static final net.minecraft.resources.ResourceLocation ARCANE_WORKBENCH_EMPTY_SLOT_CRYSTAL
    • ARCANE_WORKBENCH_EMPTY_SLOT_UPGRADE

      public static final net.minecraft.resources.ResourceLocation ARCANE_WORKBENCH_EMPTY_SLOT_UPGRADE
    • container

      public net.minecraft.world.Container container
    • needsRefresh

      public boolean needsRefresh
  • Constructor Details

    • ArcaneWorkbenchMenu

      public ArcaneWorkbenchMenu(int i, net.minecraft.world.entity.player.Inventory playerInv)
    • ArcaneWorkbenchMenu

      public ArcaneWorkbenchMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container)
  • Method Details

    • quickMoveStack

      @NotNull public @NotNull net.minecraft.world.item.ItemStack quickMoveStack(@NotNull @NotNull net.minecraft.world.entity.player.Player player, int index)
      Specified by:
      quickMoveStack 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
    • onSlotChanged

      public void onSlotChanged(int slotNumber, net.minecraft.world.item.ItemStack stack)
    • onSlotChanged

      public void onSlotChanged(int slotNumber, net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.world.entity.player.Player player)
    • onApplyButtonPressed

      public void onApplyButtonPressed(net.minecraft.world.entity.player.Player player)
    • onClearButtonPressed

      public void onClearButtonPressed(net.minecraft.world.entity.player.Player player)
    • findSlotRangeForItem

      public int @Nullable [] findSlotRangeForItem(net.minecraft.world.item.ItemStack stack)