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 ContainerLevelAccess
static int
static int
protected Container
private static int
private static int
protected Player
static int
protected ResultContainer
private static int
private static 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
ConstructorDescriptionItemCombinerMenu(MenuType<?> p_39773_, int p_39774_, Inventory p_39775_, ContainerLevelAccess p_39776_)
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
protected abstract boolean
isValidBlock(BlockState p_39788_)
protected abstract boolean
protected abstract void
quickMoveStack(Player p_39792_, int p_39793_)
void
protected boolean
shouldQuickMoveToAdditionalSlot(ItemStack p_39787_)
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, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
INPUT_SLOT
public static final int INPUT_SLOT- See Also:
- Constant Field Values
-
ADDITIONAL_SLOT
public static final int ADDITIONAL_SLOT- See Also:
- Constant Field Values
-
RESULT_SLOT
public static final int RESULT_SLOT- See Also:
- Constant Field Values
-
INV_SLOT_START
private static final int INV_SLOT_START- See Also:
- Constant Field Values
-
INV_SLOT_END
private static final int INV_SLOT_END- See Also:
- Constant Field Values
-
USE_ROW_SLOT_START
private static final int USE_ROW_SLOT_START- See Also:
- Constant Field Values
-
USE_ROW_SLOT_END
private static final int USE_ROW_SLOT_END- See Also:
- Constant Field Values
-
resultSlots
-
inputSlots
-
access
-
player
-
-
Constructor Details
-
ItemCombinerMenu
public ItemCombinerMenu(@Nullable MenuType<?> p_39773_, int p_39774_, Inventory p_39775_, ContainerLevelAccess p_39776_)
-
-
Method Details
-
mayPickup
-
onTake
-
isValidBlock
-
createResult
public abstract void createResult() -
slotsChanged
- Overrides:
slotsChanged
in classAbstractContainerMenu
-
removed
- Overrides:
removed
in classAbstractContainerMenu
-
stillValid
- Specified by:
stillValid
in classAbstractContainerMenu
-
shouldQuickMoveToAdditionalSlot
-
quickMoveStack
- Overrides:
quickMoveStack
in classAbstractContainerMenu
-