类 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_360345_, int p_361544_) protected Slot
addResultSlot
(Player p_362550_, int p_361054_, int p_363126_) protected void
void
fillCraftSlotsStackedContents
(StackedItemContents p_360753_) protected void
finishPlacingRecipe
(ServerLevel p_379946_, RecipeHolder<CraftingRecipe> p_360568_) int
int
abstract Slot
handlePlacement
(boolean p_361638_, boolean p_361841_, RecipeHolder<?> p_364981_, ServerLevel p_379885_, Inventory p_361078_) 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, setRemoteSlotUnsafe, 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_360345_, int p_361544_) -
handlePlacement
public RecipeBookMenu.PostPlaceAction handlePlacement(boolean p_361638_, boolean p_361841_, RecipeHolder<?> p_364981_, ServerLevel p_379885_, Inventory p_361078_) - 指定者:
handlePlacement
在类中RecipeBookMenu
-
beginPlacingRecipe
protected void beginPlacingRecipe() -
finishPlacingRecipe
-
getResultSlot
-
getInputGridSlots
-
getGridWidth
public int getGridWidth() -
getGridHeight
public int getGridHeight() -
owner
-
fillCraftSlotsStackedContents
-