Class ItemCombinerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.ItemCombinerMenu
- Direct Known Subclasses:
AnvilMenu, SmithingMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ContainerLevelAccessprivate static final intprotected final Containerprivate static final intprivate static final intprotected final Playerprivate final intprotected final ResultContainer -
Constructor Summary
ConstructorsConstructorDescriptionItemCombinerMenu(@Nullable MenuType<?> menuType, int containerId, Inventory inventory, ContainerLevelAccess access, ItemCombinerMenuSlotDefinition itemInputSlots) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanMoveIntoInputSlots(ItemStack stack) private SimpleContainercreateContainer(int size) private voidcreateInputSlots(ItemCombinerMenuSlotDefinition itemInputSlots) abstract voidprivate voidcreateResultSlot(ItemCombinerMenuSlotDefinition itemInputSlots) private intprivate intintprivate intprivate intprotected abstract booleanisValidBlock(BlockState state) protected booleanprotected abstract voidquickMoveStack(Player player, int slotIndex) voidvoidslotsChanged(Container container) booleanstillValid(Player player) Methods inherited from class AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
INVENTORY_SLOTS_PER_ROW
private static final int INVENTORY_SLOTS_PER_ROW- See Also:
-
INVENTORY_ROWS
private static final int INVENTORY_ROWS- See Also:
-
INPUT_SLOT_START
private static final int INPUT_SLOT_START- See Also:
-
access
-
player
-
inputSlots
-
resultSlots
-
resultSlotIndex
private final int resultSlotIndex
-
-
Constructor Details
-
ItemCombinerMenu
public ItemCombinerMenu(@Nullable MenuType<?> menuType, int containerId, Inventory inventory, ContainerLevelAccess access, ItemCombinerMenuSlotDefinition itemInputSlots)
-
-
Method Details
-
mayPickup
-
onTake
-
isValidBlock
-
createInputSlots
-
createResultSlot
-
createResult
public abstract void createResult() -
createContainer
-
slotsChanged
- Overrides:
slotsChangedin classAbstractContainerMenu
-
removed
- Overrides:
removedin classAbstractContainerMenu
-
stillValid
- Specified by:
stillValidin classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStackin classAbstractContainerMenu
-
canMoveIntoInputSlots
-
getResultSlot
public int getResultSlot() -
getInventorySlotStart
private int getInventorySlotStart() -
getInventorySlotEnd
private int getInventorySlotEnd() -
getUseRowStart
private int getUseRowStart() -
getUseRowEnd
private int getUseRowEnd()
-