Package net.minecraft.world.inventory
Class AnvilMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.ItemCombinerMenu
net.minecraft.world.inventory.AnvilMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataSlotprivate static intprivate static intprivate static intprivate static intprivate static intprivate static intprivate static intprivate static booleanprivate Stringprivate static org.apache.logging.log4j.Loggerstatic intintFields inherited from class net.minecraft.world.inventory.ItemCombinerMenu
access, ADDITIONAL_SLOT, INPUT_SLOT, inputSlots, player, RESULT_SLOT, resultSlotsFields 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, slots -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateIncreasedRepairCost(int p_39026_)voidintgetCost()protected booleanisValidBlock(BlockState p_39019_)protected booleanprotected voidvoidsetItemName(String p_39021_)voidsetMaximumCost(int value)Methods inherited from class net.minecraft.world.inventory.ItemCombinerMenu
quickMoveStack, removed, shouldQuickMoveToAdditionalSlot, slotsChanged, stillValidMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
DEBUG_COST
private static final boolean DEBUG_COST- See Also:
- Constant Field Values
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- See Also:
- Constant Field Values
-
repairItemCountCost
public int repairItemCountCost -
itemName
-
cost
-
COST_FAIL
private static final int COST_FAIL- See Also:
- Constant Field Values
-
COST_BASE
private static final int COST_BASE- See Also:
- Constant Field Values
-
COST_ADDED_BASE
private static final int COST_ADDED_BASE- See Also:
- Constant Field Values
-
COST_REPAIR_MATERIAL
private static final int COST_REPAIR_MATERIAL- See Also:
- Constant Field Values
-
COST_REPAIR_SACRIFICE
private static final int COST_REPAIR_SACRIFICE- See Also:
- Constant Field Values
-
COST_INCOMPATIBLE_PENALTY
private static final int COST_INCOMPATIBLE_PENALTY- See Also:
- Constant Field Values
-
COST_RENAME
private static final int COST_RENAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
AnvilMenu
-
AnvilMenu
-
-
Method Details
-
isValidBlock
- Specified by:
isValidBlockin classItemCombinerMenu
-
mayPickup
- Specified by:
mayPickupin classItemCombinerMenu
-
onTake
- Specified by:
onTakein classItemCombinerMenu
-
createResult
public void createResult()- Specified by:
createResultin classItemCombinerMenu
-
calculateIncreasedRepairCost
public static int calculateIncreasedRepairCost(int p_39026_) -
setItemName
-
getCost
public int getCost() -
setMaximumCost
public void setMaximumCost(int value)
-