Package net.minecraft.world.inventory
Class CrafterMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.CrafterMenu
- All Implemented Interfaces:
ContainerListener
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CraftingContainer
private final ContainerData
private static final int
private static final int
private final Player
private final ResultContainer
protected static final int
private static final int
private 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
ConstructorDescriptionCrafterMenu
(int p_310742_, Inventory p_312080_) CrafterMenu
(int p_312262_, Inventory p_309729_, CraftingContainer p_309543_, ContainerData p_312942_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
dataChanged
(AbstractContainerMenu p_312122_, int p_310028_, int p_310424_) boolean
boolean
isSlotDisabled
(int p_311661_) quickMoveStack
(Player p_313133_, int p_309724_) private void
void
setSlotState
(int p_312148_, boolean p_312187_) void
slotChanged
(AbstractContainerMenu p_313164_, int p_310604_, ItemStack p_312680_) boolean
stillValid
(Player p_309546_) 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
-
SLOT_COUNT
protected static final int SLOT_COUNT- See Also:
-
INV_SLOT_START
private static final int INV_SLOT_START- See Also:
-
INV_SLOT_END
private static final int INV_SLOT_END- See Also:
-
USE_ROW_SLOT_START
private static final int USE_ROW_SLOT_START- See Also:
-
USE_ROW_SLOT_END
private static final int USE_ROW_SLOT_END- See Also:
-
resultContainer
-
containerData
-
player
-
container
-
-
Constructor Details
-
CrafterMenu
-
CrafterMenu
public CrafterMenu(int p_312262_, Inventory p_309729_, CraftingContainer p_309543_, ContainerData p_312942_)
-
-
Method Details
-
addSlots
-
setSlotState
public void setSlotState(int p_312148_, boolean p_312187_) -
isSlotDisabled
public boolean isSlotDisabled(int p_311661_) -
isPowered
public boolean isPowered() -
quickMoveStack
- Specified by:
quickMoveStack
in classAbstractContainerMenu
-
stillValid
- Specified by:
stillValid
in classAbstractContainerMenu
-
refreshRecipeResult
private void refreshRecipeResult() -
getContainer
-
slotChanged
- Specified by:
slotChanged
in interfaceContainerListener
-
dataChanged
- Specified by:
dataChanged
in interfaceContainerListener
-