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
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
private final RecipePropertySet
static final int
static final int
private final RecipePropertySet
private final DataSlot
private final Level
static final int
private static final int
static final int
static final int
static final int
private final RecipePropertySet
Fields inherited from class net.minecraft.world.inventory.ItemCombinerMenu
access, inputSlots, player, 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, SLOT_SIZE, slots, SLOTS_PER_ROW
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSmithingMenu
(int p_40245_, Inventory p_40246_) SmithingMenu
(int p_40248_, Inventory p_40249_, ContainerLevelAccess p_40250_) private
SmithingMenu
(int p_379902_, Inventory p_379577_, ContainerLevelAccess p_379989_, Level p_379924_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canMoveIntoInputSlots
(ItemStack p_266846_) boolean
canTakeItemForPickAll
(ItemStack p_40257_, Slot p_40258_) private static ItemCombinerMenuSlotDefinition
createInputSlotDefinitions
(RecipeAccess p_379456_) private SmithingRecipeInput
void
boolean
protected boolean
isValidBlock
(BlockState p_40266_) protected void
private void
shrinkStackInSlot
(int p_40271_) void
slotsChanged
(Container p_381709_) Methods inherited from class net.minecraft.world.inventory.ItemCombinerMenu
getResultSlot, mayPickup, quickMoveStack, removed, stillValid
Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
TEMPLATE_SLOT
public static final int TEMPLATE_SLOT- See Also:
-
BASE_SLOT
public static final int BASE_SLOT- See Also:
-
ADDITIONAL_SLOT
public static final int ADDITIONAL_SLOT- See Also:
-
RESULT_SLOT
public static final int RESULT_SLOT- See Also:
-
TEMPLATE_SLOT_X_PLACEMENT
public static final int TEMPLATE_SLOT_X_PLACEMENT- See Also:
-
BASE_SLOT_X_PLACEMENT
public static final int BASE_SLOT_X_PLACEMENT- See Also:
-
ADDITIONAL_SLOT_X_PLACEMENT
public static final int ADDITIONAL_SLOT_X_PLACEMENT- See Also:
-
RESULT_SLOT_X_PLACEMENT
private static final int RESULT_SLOT_X_PLACEMENT- See Also:
-
SLOT_Y_PLACEMENT
public static final int SLOT_Y_PLACEMENT- See Also:
-
level
-
baseItemTest
-
templateItemTest
-
additionItemTest
-
hasRecipeError
-
-
Constructor Details
-
SmithingMenu
-
SmithingMenu
-
SmithingMenu
private SmithingMenu(int p_379902_, Inventory p_379577_, ContainerLevelAccess p_379989_, Level p_379924_)
-
-
Method Details
-
createInputSlotDefinitions
-
isValidBlock
- Specified by:
isValidBlock
in classItemCombinerMenu
-
onTake
- Specified by:
onTake
in classItemCombinerMenu
-
getRelevantItems
-
createRecipeInput
-
shrinkStackInSlot
private void shrinkStackInSlot(int p_40271_) -
slotsChanged
- Overrides:
slotsChanged
in classItemCombinerMenu
-
createResult
public void createResult()- Specified by:
createResult
in classItemCombinerMenu
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAll
in classAbstractContainerMenu
-
canMoveIntoInputSlots
- Overrides:
canMoveIntoInputSlots
in classItemCombinerMenu
-
hasRecipeError
public boolean hasRecipeError()
-