Package net.minecraft.world.inventory
Class ItemCombinerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.ItemCombinerMenu
- Direct Known Subclasses:
AnvilMenu
,SmithingMenu
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ContainerLevelAccess
protected final Container
private static final int
private static final int
protected final Player
private final int
protected final ResultContainer
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
ConstructorDescriptionItemCombinerMenu
(MenuType<?> p_39773_, int p_39774_, Inventory p_39775_, ContainerLevelAccess p_39776_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canMoveIntoInputSlots
(ItemStack p_39787_) private SimpleContainer
createContainer
(int p_267204_) protected abstract ItemCombinerMenuSlotDefinition
private void
createInputSlots
(ItemCombinerMenuSlotDefinition p_267172_) private void
createInventorySlots
(Inventory p_267325_) abstract void
private void
createResultSlot
(ItemCombinerMenuSlotDefinition p_267000_) private int
private int
int
int
getSlotToQuickMoveTo
(ItemStack p_267159_) private int
private int
protected abstract boolean
isValidBlock
(BlockState p_39788_) protected abstract boolean
protected abstract void
quickMoveStack
(Player p_39792_, int p_39793_) void
void
slotsChanged
(Container p_39778_) boolean
stillValid
(Player p_39780_) 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, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
INVENTORY_SLOTS_PER_ROW
private static final int INVENTORY_SLOTS_PER_ROW- See Also:
-
INVENTORY_SLOTS_PER_COLUMN
private static final int INVENTORY_SLOTS_PER_COLUMN- See Also:
-
access
-
player
-
inputSlots
-
inputSlotIndexes
-
resultSlots
-
resultSlotIndex
private final int resultSlotIndex
-
-
Constructor Details
-
ItemCombinerMenu
public ItemCombinerMenu(@Nullable MenuType<?> p_39773_, int p_39774_, Inventory p_39775_, ContainerLevelAccess p_39776_)
-
-
Method Details
-
mayPickup
-
onTake
-
isValidBlock
-
createInputSlots
-
createResultSlot
-
createInventorySlots
-
createResult
public abstract void createResult() -
createInputSlotDefinitions
-
createContainer
-
slotsChanged
- Overrides:
slotsChanged
in classAbstractContainerMenu
-
removed
- Overrides:
removed
in classAbstractContainerMenu
-
stillValid
- Specified by:
stillValid
in classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStack
in classAbstractContainerMenu
-
canMoveIntoInputSlots
-
getSlotToQuickMoveTo
-
getResultSlot
public int getResultSlot() -
getInventorySlotStart
private int getInventorySlotStart() -
getInventorySlotEnd
private int getInventorySlotEnd() -
getUseRowStart
private int getUseRowStart() -
getUseRowEnd
private int getUseRowEnd()
-