类 AnvilMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.ItemCombinerMenu
net.minecraft.world.inventory.AnvilMenu
-
字段概要
字段修饰符和类型字段说明static 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
private boolean
int
static final int
private static final int
private static final int
从类继承的字段 net.minecraft.world.inventory.ItemCombinerMenu
access, inputSlots, player, resultSlots
从类继承的字段 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, SLOT_SIZE, slots, SLOTS_PER_ROW
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static int
calculateIncreasedRepairCost
(int p_39026_) private static ItemCombinerMenuSlotDefinition
final void
protected void
Neo: This is the original createResult() method, which is called by the above method (createResult()
.int
getCost()
protected boolean
isValidBlock
(BlockState p_39019_) protected boolean
protected void
void
setCost
(int value) Neo: Sets the cost.boolean
setItemName
(String p_288970_) private static String
validateName
(String p_288995_) 从类继承的方法 net.minecraft.world.inventory.ItemCombinerMenu
canMoveIntoInputSlots, getResultSlot, quickMoveStack, removed, slotsChanged, stillValid
从类继承的方法 net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
字段详细资料
-
INPUT_SLOT
public static final int INPUT_SLOT- 另请参阅:
-
ADDITIONAL_SLOT
public static final int ADDITIONAL_SLOT- 另请参阅:
-
RESULT_SLOT
public static final int RESULT_SLOT- 另请参阅:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEBUG_COST
private static final boolean DEBUG_COST- 另请参阅:
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- 另请参阅:
-
repairItemCountCost
public int repairItemCountCost -
itemName
-
cost
-
onlyRenaming
private boolean onlyRenaming -
COST_FAIL
private static final int COST_FAIL- 另请参阅:
-
COST_BASE
private static final int COST_BASE- 另请参阅:
-
COST_ADDED_BASE
private static final int COST_ADDED_BASE- 另请参阅:
-
COST_REPAIR_MATERIAL
private static final int COST_REPAIR_MATERIAL- 另请参阅:
-
COST_REPAIR_SACRIFICE
private static final int COST_REPAIR_SACRIFICE- 另请参阅:
-
COST_INCOMPATIBLE_PENALTY
private static final int COST_INCOMPATIBLE_PENALTY- 另请参阅:
-
COST_RENAME
private static final int COST_RENAME- 另请参阅:
-
INPUT_SLOT_X_PLACEMENT
private static final int INPUT_SLOT_X_PLACEMENT- 另请参阅:
-
ADDITIONAL_SLOT_X_PLACEMENT
private static final int ADDITIONAL_SLOT_X_PLACEMENT- 另请参阅:
-
RESULT_SLOT_X_PLACEMENT
private static final int RESULT_SLOT_X_PLACEMENT- 另请参阅:
-
SLOT_Y_PLACEMENT
private static final int SLOT_Y_PLACEMENT- 另请参阅:
-
-
构造器详细资料
-
AnvilMenu
-
AnvilMenu
-
-
方法详细资料
-
createInputSlotDefinitions
-
isValidBlock
- 指定者:
isValidBlock
在类中ItemCombinerMenu
-
mayPickup
- 覆盖:
mayPickup
在类中ItemCombinerMenu
-
onTake
- 指定者:
onTake
在类中ItemCombinerMenu
-
createResult
public final void createResult()- 指定者:
createResult
在类中ItemCombinerMenu
-
createResultInternal
protected void createResultInternal()Neo: This is the original createResult() method, which is called by the above method (createResult()
.If you would normally override
createResult()
, you should override this method instead.- Implementation Note:
- This replacement exists so we can fire the AnvilUpdateEvent with the vanilla result, despite the multiple returns in the original method.
-
calculateIncreasedRepairCost
public static int calculateIncreasedRepairCost(int p_39026_) -
setItemName
-
validateName
-
getCost
public int getCost() -
setCost
public void setCost(int value) Neo: Sets the cost. Negative values are clamped to zero.
-