net.minecraft.world.inventory

public class AnvilMenu

extends ItemCombinerMenu

bwo
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
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
k
MAX_NAME_LENGTH
field_30751
field_30751
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_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected boolean
a(cvo arg0)
isValidBlock(BlockState arg0)
method_24925(class_2680 arg0)
canUse(BlockState arg0)
m_8039_(C_2064_ arg0)
protected boolean
a(buc 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(buc arg0, cax 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
l()
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 void
a(String arg0)
setItemName(String arg0)
method_7625(String arg0)
setNewItemName(String newItemName)
m_39020_(String arg0)
public int
m()
getCost()
method_17369()
getLevelCost()
m_39028_()