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
Modifier and TypeFieldDescriptionstatic final int
private static final int
private final DataSlot
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final boolean
static final int
private static final int
private String
private static final org.slf4j.Logger
static final int
int
static final int
private static final int
private static final int
Fields inherited from class net.minecraft.world.inventory.ItemCombinerMenu
access, inputSlots, player, resultSlots
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
calculateIncreasedRepairCost
(int p_39026_) protected ItemCombinerMenuSlotDefinition
void
int
getCost()
protected boolean
isValidBlock
(BlockState p_39019_) protected boolean
protected void
boolean
setItemName
(String p_288970_) void
setMaximumCost
(long value) Neo: Sets the cost.private static String
validateName
(String p_288995_) Methods inherited from class net.minecraft.world.inventory.ItemCombinerMenu
canMoveIntoInputSlots, getResultSlot, getSlotToQuickMoveTo, quickMoveStack, removed, slotsChanged, stillValid
Methods 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, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
INPUT_SLOT
public static final int INPUT_SLOT- See Also:
-
ADDITIONAL_SLOT
public static final int ADDITIONAL_SLOT- See Also:
-
RESULT_SLOT
public static final int RESULT_SLOT- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEBUG_COST
private static final boolean DEBUG_COST- See Also:
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- See Also:
-
repairItemCountCost
public int repairItemCountCost -
itemName
-
cost
-
COST_FAIL
private static final int COST_FAIL- See Also:
-
COST_BASE
private static final int COST_BASE- See Also:
-
COST_ADDED_BASE
private static final int COST_ADDED_BASE- See Also:
-
COST_REPAIR_MATERIAL
private static final int COST_REPAIR_MATERIAL- See Also:
-
COST_REPAIR_SACRIFICE
private static final int COST_REPAIR_SACRIFICE- See Also:
-
COST_INCOMPATIBLE_PENALTY
private static final int COST_INCOMPATIBLE_PENALTY- See Also:
-
COST_RENAME
private static final int COST_RENAME- See Also:
-
INPUT_SLOT_X_PLACEMENT
private static final int INPUT_SLOT_X_PLACEMENT- See Also:
-
ADDITIONAL_SLOT_X_PLACEMENT
private static final int ADDITIONAL_SLOT_X_PLACEMENT- See Also:
-
RESULT_SLOT_X_PLACEMENT
private static final int RESULT_SLOT_X_PLACEMENT- See Also:
-
SLOT_Y_PLACEMENT
private static final int SLOT_Y_PLACEMENT- See Also:
-
-
Constructor Details
-
AnvilMenu
-
AnvilMenu
-
-
Method Details
-
createInputSlotDefinitions
- Specified by:
createInputSlotDefinitions
in classItemCombinerMenu
-
isValidBlock
- Specified by:
isValidBlock
in classItemCombinerMenu
-
mayPickup
- Specified by:
mayPickup
in classItemCombinerMenu
-
onTake
- Specified by:
onTake
in classItemCombinerMenu
-
createResult
public void createResult()- Specified by:
createResult
in classItemCombinerMenu
-
calculateIncreasedRepairCost
public static int calculateIncreasedRepairCost(int p_39026_) -
setItemName
-
validateName
-
getCost
public int getCost() -
setMaximumCost
public void setMaximumCost(long value) Neo: Sets the cost. Will be clamped to an integer.
-