net.minecraft.world.inventory

public class SmithingMenu

extends ItemCombinerMenu

crt
net.minecraft.world.inventory.SmithingMenu
net.minecraft.class_4862
net.minecraft.screen.SmithingScreenHandler
net.minecraft.src.C_1306_
net.minecraft.world.inventory.ContainerSmithing

Field summary

Modifier and TypeField
public static final int
k
TEMPLATE_SLOT
field_41924
TEMPLATE_ID
f_266015_
public static final int
l
BASE_SLOT
field_41925
EQUIPMENT_ID
f_266035_
public static final int
m
ADDITIONAL_SLOT
field_41926
MATERIAL_ID
f_265928_
public static final int
n
RESULT_SLOT
field_41927
OUTPUT_ID
f_266024_
public static final int
s
TEMPLATE_SLOT_X_PLACEMENT
field_41928
TEMPLATE_X
f_265913_
public static final int
t
BASE_SLOT_X_PLACEMENT
field_41929
EQUIPMENT_X
f_266041_
public static final int
u
ADDITIONAL_SLOT_X_PLACEMENT
field_41930
MATERIAL_X
f_265899_
private static final int
w
RESULT_SLOT_X_PLACEMENT
field_41932
OUTPUT_X
f_265851_
public static final int
v
SLOT_Y_PLACEMENT
field_41931
SLOT_Y
f_266111_
private final Level
x
level
field_25385
world
f_40241_
private RecipeHolder<SmithingRecipe>
y
selectedRecipe
field_25386
currentRecipe
f_40242_
private final List<RecipeHolder<SmithingRecipe>>
z
recipes
field_25668
recipes
f_40243_

Constructor summary

ModifierConstructor
public (int syncId, Inventory playerInventory)
public (int syncId, Inventory playerInventory, ContainerLevelAccess context)

Method summary

Modifier and TypeMethod
protected ItemCombinerMenuSlotDefinition
l()
createInputSlotDefinitions()
method_48352()
getForgingSlotsManager()
m_266183_()
protected boolean
a(dtc arg0)
isValidBlock(BlockState arg0)
method_24925(class_2680 arg0)
canUse(BlockState arg0)
m_8039_(C_2064_ arg0)
protected boolean
a(cmx arg0, boolean arg1)
mayPickup(Player arg0, boolean arg1)
method_24927(class_1657 arg0, boolean arg1)
canTakeOutput(PlayerEntity arg0, boolean arg1)
m_6560_(C_1141_ p_40269_, boolean arg1)
protected void
a(cmx arg0, cuq arg1)
onTake(Player arg0, ItemStack arg1)
method_24923(class_1657 arg0, class_1799 arg1)
onTakeOutput(PlayerEntity arg0, ItemStack arg1)
m_142365_(C_1141_ p_150664_, C_1391_ arg1)
private List<ItemStack>
n()
getRelevantItems()
method_51307()
getInputStacks()
m_280632_()
private SmithingRecipeInput
p()
createRecipeInput()
method_59965()
createRecipeInput()
m_339052_()
private void
e(int arg0)
shrinkStackInSlot(int arg0)
method_29539(int arg0)
decrementStack(int slot)
m_40270_(int arg0)
public void
m()
createResult()
method_24928()
updateResult()
m_6640_()
public int
d(cuq arg0)
getSlotToQuickMoveTo(ItemStack arg0)
method_48357(class_1799 arg0)
getSlotFor(ItemStack arg0)
m_266159_(C_1391_ arg0)
private static OptionalInt
a(czr arg0, cuq arg1)
findSlotMatchingIngredient(SmithingRecipe arg0, ItemStack arg1)
method_48389(class_8059 arg0, class_1799 arg1)
getQuickMoveSlot(SmithingRecipe recipe, ItemStack stack)
m_266320_(C_265807_ p_266790_, C_1391_ p_266818_)
public boolean
a(cuq arg0, crq arg1)
canTakeItemForPickAll(ItemStack arg0, Slot arg1)
method_7613(class_1799 arg0, class_1735 arg1)
canInsertIntoSlot(ItemStack arg0, Slot arg1)
m_5882_(C_1391_ p_40258_, C_1305_ arg1)
public boolean
c(cuq arg0)
canMoveIntoInputSlots(ItemStack arg0)
method_48356(class_1799 arg0)
isValidIngredient(ItemStack arg0)
m_5861_(C_1391_ arg0)
private OptionalInt
e(cuq arg0)
findSlotToQuickMoveTo(ItemStack arg0)
method_52563(class_1799 arg0)
getQuickMoveSlot(ItemStack stack)
m_294173_(C_1391_ arg0)