类 AbstractCraftingMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu
net.minecraft.world.inventory.AbstractCraftingMenu
- 直接已知子类:
CraftingMenu
,InventoryMenu
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.inventory.RecipeBookMenu
RecipeBookMenu.PostPlaceAction
-
字段概要
字段修饰符和类型字段说明protected final CraftingContainer
private final int
protected final ResultContainer
private final int
从类继承的字段 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
addCraftingGridSlots
(int p_361557_, int p_366601_) protected Slot
addResultSlot
(Player p_368097_, int p_367668_, int p_363802_) protected void
void
fillCraftSlotsStackedContents
(StackedItemContents p_365758_) protected void
finishPlacingRecipe
(ServerLevel p_365958_, RecipeHolder<CraftingRecipe> p_364067_) int
int
abstract Slot
handlePlacement
(boolean p_367003_, boolean p_360772_, RecipeHolder<?> p_361387_, ServerLevel p_365408_, Inventory p_368520_) protected abstract Player
owner()
从类继承的方法 net.minecraft.world.inventory.RecipeBookMenu
getRecipeBookType
从类继承的方法 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, quickMoveStack, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, stillValid, suppressRemoteUpdates, transferState
-
字段详细资料
-
width
private final int width -
height
private final int height -
craftSlots
-
resultSlots
-
-
构造器详细资料
-
AbstractCraftingMenu
-
-
方法详细资料
-
addResultSlot
-
addCraftingGridSlots
protected void addCraftingGridSlots(int p_361557_, int p_366601_) -
handlePlacement
public RecipeBookMenu.PostPlaceAction handlePlacement(boolean p_367003_, boolean p_360772_, RecipeHolder<?> p_361387_, ServerLevel p_365408_, Inventory p_368520_) - 指定者:
handlePlacement
在类中RecipeBookMenu
-
beginPlacingRecipe
protected void beginPlacingRecipe() -
finishPlacingRecipe
-
getResultSlot
-
getInputGridSlots
-
getGridWidth
public int getGridWidth() -
getGridHeight
public int getGridHeight() -
owner
-
fillCraftSlotsStackedContents
-