Package net.minecraft.world.inventory
Class SmithingMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.ItemCombinerMenu
net.minecraft.world.inventory.SmithingMenu
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Level
private final List<UpgradeRecipe>
private UpgradeRecipe
Fields inherited from class net.minecraft.world.inventory.ItemCombinerMenu
access, ADDITIONAL_SLOT, INPUT_SLOT, inputSlots, player, RESULT_SLOT, resultSlots
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
ConstructorDescriptionSmithingMenu
(int p_40245_, Inventory p_40246_) SmithingMenu
(int p_40248_, Inventory p_40249_, ContainerLevelAccess p_40250_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canTakeItemForPickAll
(ItemStack p_40257_, Slot p_40258_) void
protected boolean
isValidBlock
(BlockState p_40266_) protected boolean
protected void
protected boolean
shouldQuickMoveToAdditionalSlot
(ItemStack p_40255_) private void
shrinkStackInSlot
(int p_40271_) Methods inherited from class net.minecraft.world.inventory.ItemCombinerMenu
quickMoveStack, removed, slotsChanged, stillValid
Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, 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
-
level
-
selectedRecipe
-
recipes
-
-
Constructor Details
-
SmithingMenu
-
SmithingMenu
-
-
Method Details
-
isValidBlock
- Specified by:
isValidBlock
in classItemCombinerMenu
-
mayPickup
- Specified by:
mayPickup
in classItemCombinerMenu
-
onTake
- Specified by:
onTake
in classItemCombinerMenu
-
shrinkStackInSlot
private void shrinkStackInSlot(int p_40271_) -
createResult
public void createResult()- Specified by:
createResult
in classItemCombinerMenu
-
shouldQuickMoveToAdditionalSlot
- Overrides:
shouldQuickMoveToAdditionalSlot
in classItemCombinerMenu
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAll
in classAbstractContainerMenu
-