类 CraftingMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu
net.minecraft.world.inventory.AbstractCraftingMenu
net.minecraft.world.inventory.CraftingMenu
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.inventory.RecipeBookMenu
RecipeBookMenu.PostPlaceAction
-
字段概要
字段修饰符和类型字段说明private final ContainerLevelAccess
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 boolean
private final Player
static final int
private static final int
private static final int
从类继承的字段 net.minecraft.world.inventory.AbstractCraftingMenu
craftSlots, 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
-
构造器概要
构造器构造器说明CraftingMenu
(int p_39353_, Inventory p_39354_) CraftingMenu
(int p_39356_, Inventory p_39357_, ContainerLevelAccess p_39358_) -
方法概要
修饰符和类型方法说明void
boolean
canTakeItemForPickAll
(ItemStack p_39381_, Slot p_39382_) void
finishPlacingRecipe
(ServerLevel p_380098_, RecipeHolder<CraftingRecipe> p_345915_) protected Player
owner()
quickMoveStack
(Player p_39391_, int p_39392_) void
protected static void
slotChangedCraftingGrid
(AbstractContainerMenu p_150547_, ServerLevel p_379963_, Player p_150549_, CraftingContainer p_150550_, ResultContainer p_150551_, RecipeHolder<CraftingRecipe> p_345124_) void
slotsChanged
(Container p_39366_) boolean
stillValid
(Player p_39368_) 从类继承的方法 net.minecraft.world.inventory.AbstractCraftingMenu
addCraftingGridSlots, addResultSlot, fillCraftSlotsStackedContents, getGridHeight, getGridWidth, handlePlacement
从类继承的方法 net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
字段详细资料
-
CRAFTING_GRID_WIDTH
private static final int CRAFTING_GRID_WIDTH- 另请参阅:
-
CRAFTING_GRID_HEIGHT
private static final int CRAFTING_GRID_HEIGHT- 另请参阅:
-
RESULT_SLOT
public static final int RESULT_SLOT- 另请参阅:
-
CRAFT_SLOT_START
private static final int CRAFT_SLOT_START- 另请参阅:
-
CRAFT_SLOT_COUNT
private static final int CRAFT_SLOT_COUNT- 另请参阅:
-
CRAFT_SLOT_END
private static final int CRAFT_SLOT_END- 另请参阅:
-
INV_SLOT_START
private static final int INV_SLOT_START- 另请参阅:
-
INV_SLOT_END
private static final int INV_SLOT_END- 另请参阅:
-
USE_ROW_SLOT_START
private static final int USE_ROW_SLOT_START- 另请参阅:
-
USE_ROW_SLOT_END
private static final int USE_ROW_SLOT_END- 另请参阅:
-
access
-
player
-
placingRecipe
private boolean placingRecipe
-
-
构造器详细资料
-
CraftingMenu
-
CraftingMenu
-
-
方法详细资料
-
slotChangedCraftingGrid
protected static void slotChangedCraftingGrid(AbstractContainerMenu p_150547_, ServerLevel p_379963_, Player p_150549_, CraftingContainer p_150550_, ResultContainer p_150551_, @Nullable RecipeHolder<CraftingRecipe> p_345124_) -
slotsChanged
- 覆盖:
slotsChanged
在类中AbstractContainerMenu
-
beginPlacingRecipe
public void beginPlacingRecipe() -
finishPlacingRecipe
-
removed
- 覆盖:
removed
在类中AbstractContainerMenu
-
stillValid
- 指定者:
stillValid
在类中AbstractContainerMenu
-
quickMoveStack
- 指定者:
quickMoveStack
在类中AbstractContainerMenu
-
canTakeItemForPickAll
-
getResultSlot
- 指定者:
getResultSlot
在类中AbstractCraftingMenu
-
getInputGridSlots
- 指定者:
getInputGridSlots
在类中AbstractCraftingMenu
-
getRecipeBookType
- 指定者:
getRecipeBookType
在类中RecipeBookMenu
-
owner
- 指定者:
owner
在类中AbstractCraftingMenu
-