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
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final intnet.minecraft.world.Containerstatic final intbooleanstatic final intstatic final intstatic final intFields 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
ConstructorsConstructorDescriptionArcaneWorkbenchMenu(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 TypeMethodDescriptionint @Nullable []findSlotRangeForItem(net.minecraft.world.item.ItemStack stack) voidonApplyButtonPressed(net.minecraft.world.entity.player.Player player) voidonClearButtonPressed(net.minecraft.world.entity.player.Player player) voidonSlotChanged(int slotNumber, net.minecraft.world.item.ItemStack stack) voidonSlotChanged(int slotNumber, net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.entity.player.Player player) @NotNull net.minecraft.world.item.ItemStackquickMoveStack(@NotNull net.minecraft.world.entity.player.Player player, int index) booleanstillValid(@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
-
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:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.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)
-