类 SmithingMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.ItemCombinerMenu
net.minecraft.world.inventory.SmithingMenu
-
字段概要
字段修饰符和类型字段说明static final int
static final int
static final int
static final int
private final Level
private final List<SmithingRecipe>
static final int
private static final int
private SmithingRecipe
static final int
static final int
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, slots
-
构造器概要
构造器构造器说明SmithingMenu
(int pContainerId, Inventory pPlayerInventory) SmithingMenu
(int pContainerId, Inventory pPlayerInventory, ContainerLevelAccess pAccess) -
方法概要
修饰符和类型方法说明boolean
canMoveIntoInputSlots
(ItemStack pStack) boolean
canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) protected ItemCombinerMenuSlotDefinition
void
findSlotMatchingIngredient
(SmithingRecipe pRecipe, ItemStack pStack) int
getSlotToQuickMoveTo
(ItemStack pStack) protected boolean
isValidBlock
(BlockState pState) protected boolean
protected void
private void
shrinkStackInSlot
(int pIndex) 从类继承的方法 net.minecraft.world.inventory.ItemCombinerMenu
getResultSlot, quickMoveStack, removed, slotsChanged, stillValid
从类继承的方法 net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, 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
-
字段详细资料
-
TEMPLATE_SLOT
public static final int TEMPLATE_SLOT- 另请参阅:
-
BASE_SLOT
public static final int BASE_SLOT- 另请参阅:
-
ADDITIONAL_SLOT
public static final int ADDITIONAL_SLOT- 另请参阅:
-
RESULT_SLOT
public static final int RESULT_SLOT- 另请参阅:
-
TEMPLATE_SLOT_X_PLACEMENT
public static final int TEMPLATE_SLOT_X_PLACEMENT- 另请参阅:
-
BASE_SLOT_X_PLACEMENT
public static final int BASE_SLOT_X_PLACEMENT- 另请参阅:
-
ADDITIONAL_SLOT_X_PLACEMENT
public static final int ADDITIONAL_SLOT_X_PLACEMENT- 另请参阅:
-
RESULT_SLOT_X_PLACEMENT
private static final int RESULT_SLOT_X_PLACEMENT- 另请参阅:
-
SLOT_Y_PLACEMENT
public static final int SLOT_Y_PLACEMENT- 另请参阅:
-
level
-
selectedRecipe
-
recipes
-
-
构造器详细资料
-
SmithingMenu
-
SmithingMenu
-
-
方法详细资料
-
createInputSlotDefinitions
-
isValidBlock
- 指定者:
isValidBlock
在类中ItemCombinerMenu
-
mayPickup
- 指定者:
mayPickup
在类中ItemCombinerMenu
-
onTake
- 指定者:
onTake
在类中ItemCombinerMenu
-
getRelevantItems
-
shrinkStackInSlot
private void shrinkStackInSlot(int pIndex) -
createResult
public void createResult()- 指定者:
createResult
在类中ItemCombinerMenu
-
getSlotToQuickMoveTo
- 覆盖:
getSlotToQuickMoveTo
在类中ItemCombinerMenu
-
findSlotMatchingIngredient
private static Optional<Integer> findSlotMatchingIngredient(SmithingRecipe pRecipe, ItemStack pStack) -
canTakeItemForPickAll
-
canMoveIntoInputSlots
-