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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intprivate final Levelprivate final List<RecipeHolder<SmithingRecipe>>static final intprivate static final intprivate RecipeHolder<SmithingRecipe>static final intstatic final intstatic final intFields inherited from class net.minecraft.world.inventory.ItemCombinerMenuaccess, inputSlots, player, resultSlotsFields inherited from class net.minecraft.world.inventory.AbstractContainerMenuCARRIED_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 SummaryConstructorsConstructorDescriptionSmithingMenu(int p_40245_, Inventory p_40246_) SmithingMenu(int p_40248_, Inventory p_40249_, ContainerLevelAccess p_40250_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanMoveIntoInputSlots(ItemStack p_266846_) booleancanTakeItemForPickAll(ItemStack p_40257_, Slot p_40258_) protected ItemCombinerMenuSlotDefinitionvoidprivate static OptionalIntfindSlotMatchingIngredient(SmithingRecipe p_266790_, ItemStack p_266818_) private OptionalIntfindSlotToQuickMoveTo(ItemStack p_295440_) intgetSlotToQuickMoveTo(ItemStack p_266739_) protected booleanisValidBlock(BlockState p_40266_) protected booleanprotected voidprivate voidshrinkStackInSlot(int p_40271_) Methods inherited from class net.minecraft.world.inventory.ItemCombinerMenugetResultSlot, quickMoveStack, removed, slotsChanged, stillValidMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenuaddDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, 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- 
TEMPLATE_SLOTpublic static final int TEMPLATE_SLOT- See Also:
 
- 
BASE_SLOTpublic static final int BASE_SLOT- See Also:
 
- 
ADDITIONAL_SLOTpublic static final int ADDITIONAL_SLOT- See Also:
 
- 
RESULT_SLOTpublic static final int RESULT_SLOT- See Also:
 
- 
TEMPLATE_SLOT_X_PLACEMENTpublic static final int TEMPLATE_SLOT_X_PLACEMENT- See Also:
 
- 
BASE_SLOT_X_PLACEMENTpublic static final int BASE_SLOT_X_PLACEMENT- See Also:
 
- 
ADDITIONAL_SLOT_X_PLACEMENTpublic static final int ADDITIONAL_SLOT_X_PLACEMENT- See Also:
 
- 
RESULT_SLOT_X_PLACEMENTprivate static final int RESULT_SLOT_X_PLACEMENT- See Also:
 
- 
SLOT_Y_PLACEMENTpublic static final int SLOT_Y_PLACEMENT- See Also:
 
- 
level
- 
selectedRecipe
- 
recipes
 
- 
- 
Constructor Details- 
SmithingMenu
- 
SmithingMenu
 
- 
- 
Method Details- 
createInputSlotDefinitions- Specified by:
- createInputSlotDefinitionsin class- ItemCombinerMenu
 
- 
isValidBlock- Specified by:
- isValidBlockin class- ItemCombinerMenu
 
- 
mayPickup- Specified by:
- mayPickupin class- ItemCombinerMenu
 
- 
onTake- Specified by:
- onTakein class- ItemCombinerMenu
 
- 
getRelevantItems
- 
shrinkStackInSlotprivate void shrinkStackInSlot(int p_40271_) 
- 
createResultpublic void createResult()- Specified by:
- createResultin class- ItemCombinerMenu
 
- 
getSlotToQuickMoveTo- Overrides:
- getSlotToQuickMoveToin class- ItemCombinerMenu
 
- 
findSlotMatchingIngredientprivate static OptionalInt findSlotMatchingIngredient(SmithingRecipe p_266790_, ItemStack p_266818_) 
- 
canTakeItemForPickAll- Overrides:
- canTakeItemForPickAllin class- AbstractContainerMenu
 
- 
canMoveIntoInputSlots- Overrides:
- canMoveIntoInputSlotsin class- ItemCombinerMenu
 
- 
findSlotToQuickMoveTo
 
-