net.minecraft.world.inventory

public class AnvilMenu

extends ItemCombinerMenu

csg
net.minecraft.world.inventory.AnvilMenu
net.minecraft.class_1706
net.minecraft.screen.AnvilScreenHandler
net.minecraft.world.inventory.ContainerAnvil

Field summary

Modifier and TypeField
public static final int
m
INPUT_SLOT
field_41898
INPUT_1_ID
public static final int
n
ADDITIONAL_SLOT
field_41899
INPUT_2_ID
public static final int
o
RESULT_SLOT
field_41900
OUTPUT_ID
private static final org.slf4j.Logger
u
LOGGER
field_7771
LOGGER
private static final boolean
v
DEBUG_COST
field_30752
field_30752
public static final int
p
MAX_NAME_LENGTH
field_30751
MAX_NAME_LENGTH
private int
w
repairItemCountCost
field_7776
repairItemUsage
private String
x
itemName
field_7774
newItemName
private final DataSlot
y
cost
field_7770
levelCost
private boolean
z
onlyRenaming
field_52566
keepSecondSlot
private static final int
A
COST_FAIL
field_30753
field_30753
private static final int
B
COST_BASE
field_30754
field_30754
private static final int
C
COST_ADDED_BASE
field_30755
field_30755
private static final int
D
COST_REPAIR_MATERIAL
field_30747
field_30747
private static final int
E
COST_REPAIR_SACRIFICE
field_30748
field_30748
private static final int
F
COST_INCOMPATIBLE_PENALTY
field_30749
field_30749
private static final int
G
COST_RENAME
field_30750
field_30750
private static final int
H
INPUT_SLOT_X_PLACEMENT
field_41894
INPUT_1_X
private static final int
I
ADDITIONAL_SLOT_X_PLACEMENT
field_41895
INPUT_2_X
private static final int
J
RESULT_SLOT_X_PLACEMENT
field_41896
OUTPUT_X
private static final int
K
SLOT_Y_PLACEMENT
field_41897
SLOT_Y

Constructor summary

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

Method summary

Modifier and TypeMethod
private static ItemCombinerMenuSlotDefinition
o()
createInputSlotDefinitions()
method_48352()
getForgingSlotsManager()
protected boolean
a(dwy arg0)
isValidBlock(BlockState arg0)
method_24925(class_2680 arg0)
canUse(BlockState arg0)
protected boolean
a(coy arg0, boolean arg1)
mayPickup(Player arg0, boolean arg1)
method_24927(class_1657 arg0, boolean arg1)
canTakeOutput(PlayerEntity arg0, boolean arg1)
protected void
a(coy arg0, cwq arg1)
onTake(Player arg0, ItemStack arg1)
method_24923(class_1657 arg0, class_1799 arg1)
onTakeOutput(PlayerEntity arg0, ItemStack arg1)
public void
l()
createResult()
method_24928()
updateResult()
public static int
e(int arg0)
calculateIncreasedRepairCost(int arg0)
method_20398(int arg0)
getNextCost(int cost)
public boolean
a(String arg0)
setItemName(String arg0)
method_7625(String arg0)
setNewItemName(String newItemName)
private static String
b(String arg0)
validateName(String arg0)
method_52176(String arg0)
sanitize(String name)
public int
m()
getCost()
method_17369()
getLevelCost()