net.minecraft.world.inventory

public class AnvilMenu

extends ItemCombinerMenu

cbh
net.minecraft.world.inventory.AnvilMenu
net.minecraft.class_1706
net.minecraft.screen.AnvilScreenHandler
net.minecraft.src.C_1228_
net.minecraft.world.inventory.ContainerAnvil

Field summary

Modifier and TypeField
public static final int
k
INPUT_SLOT
field_41898
INPUT_1_ID
f_265994_
public static final int
l
ADDITIONAL_SLOT
field_41899
INPUT_2_ID
f_265986_
public static final int
m
RESULT_SLOT
field_41900
OUTPUT_ID
f_266102_
private static final org.slf4j.Logger
s
LOGGER
field_7771
LOGGER
f_38999_
private static final boolean
t
DEBUG_COST
field_30752
field_30752
f_150469_
public static final int
n
MAX_NAME_LENGTH
field_30751
MAX_NAME_LENGTH
f_150468_
private int
u
repairItemCountCost
field_7776
repairItemUsage
f_39000_
private String
v
itemName
field_7774
newItemName
f_39001_
private final DataSlot
w
cost
field_7770
levelCost
f_39002_
private static final int
x
COST_FAIL
field_30753
field_30753
f_150470_
private static final int
y
COST_BASE
field_30754
field_30754
f_150471_
private static final int
z
COST_ADDED_BASE
field_30755
field_30755
f_150472_
private static final int
A
COST_REPAIR_MATERIAL
field_30747
field_30747
f_150464_
private static final int
B
COST_REPAIR_SACRIFICE
field_30748
field_30748
f_150465_
private static final int
C
COST_INCOMPATIBLE_PENALTY
field_30749
field_30749
f_150466_
private static final int
D
COST_RENAME
field_30750
field_30750
f_150467_
private static final int
E
INPUT_SLOT_X_PLACEMENT
field_41894
INPUT_1_X
f_265898_
private static final int
F
ADDITIONAL_SLOT_X_PLACEMENT
field_41895
INPUT_2_X
f_265878_
private static final int
G
RESULT_SLOT_X_PLACEMENT
field_41896
OUTPUT_X
f_265992_
private static final int
H
SLOT_Y_PLACEMENT
field_41897
SLOT_Y
f_266013_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected ItemCombinerMenuSlotDefinition
l()
createInputSlotDefinitions()
method_48352()
getForgingSlotsManager()
m_266183_()
protected boolean
a(dcb arg0)
isValidBlock(BlockState arg0)
method_24925(class_2680 arg0)
canUse(BlockState arg0)
m_8039_(C_2064_ arg0)
protected boolean
a(byo 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_39024_, boolean arg1)
protected void
a(byo arg0, cfz arg1)
onTake(Player arg0, ItemStack arg1)
method_24923(class_1657 arg0, class_1799 arg1)
onTakeOutput(PlayerEntity arg0, ItemStack arg1)
m_142365_(C_1141_ p_150475_, C_1391_ arg1)
public void
m()
createResult()
method_24928()
updateResult()
m_6640_()
public static int
e(int arg0)
calculateIncreasedRepairCost(int arg0)
method_20398(int arg0)
getNextCost(int cost)
m_39025_(int p_39026_)
public boolean
a(String arg0)
setItemName(String arg0)
method_7625(String arg0)
setNewItemName(String newItemName)
m_39020_(String arg0)
private static String
b(String arg0)
validateName(String arg0)
method_52176(String arg0)
sanitize(String name)
m_288226_(String p_288995_)
public int
n()
getCost()
method_17369()
getLevelCost()
m_39028_()