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_307357_, Inventory p_307257_) CrafterMenu
(int p_307363_, Inventory p_307517_, CraftingContainer p_307449_, ContainerData p_307285_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
dataChanged
(AbstractContainerMenu p_307424_, int p_307646_, int p_307221_) boolean
boolean
isSlotDisabled
(int p_307609_) quickMoveStack
(Player p_307459_, int p_307204_) private void
void
setSlotState
(int p_307384_, boolean p_307499_) void
slotChanged
(AbstractContainerMenu p_307332_, int p_307437_, ItemStack p_307233_) boolean
stillValid
(Player p_307229_) 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_307363_, Inventory p_307517_, CraftingContainer p_307449_, ContainerData p_307285_)
-
-
Method Details
-
addSlots
-
setSlotState
public void setSlotState(int p_307384_, boolean p_307499_) -
isSlotDisabled
public boolean isSlotDisabled(int p_307609_) -
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
-