类 CraftingMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<CraftingContainer>
net.minecraft.world.inventory.CraftingMenu
-
字段概要
字段修饰符和类型字段说明private final ContainerLevelAccess
private static final int
private static final int
private final CraftingContainer
private static final int
private static final int
private final Player
static final int
private final ResultContainer
private static final int
private static 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, slots
-
构造器概要
构造器构造器说明CraftingMenu
(int pContainerId, Inventory pPlayerInventory) CraftingMenu
(int pContainerId, Inventory pPlayerInventory, ContainerLevelAccess pAccess) -
方法概要
修饰符和类型方法说明boolean
canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) void
void
fillCraftSlotsStackedContents
(StackedContents pItemHelper) int
int
int
int
getSize()
quickMoveStack
(Player pPlayer, int pIndex) boolean
recipeMatches
(Recipe<? super CraftingContainer> pRecipe) void
boolean
shouldMoveToInventory
(int pSlotIndex) protected static void
slotChangedCraftingGrid
(AbstractContainerMenu pMenu, Level pLevel, Player pPlayer, CraftingContainer pContainer, ResultContainer pResult) void
slotsChanged
(Container pInventory) boolean
stillValid
(Player pPlayer) 从类继承的方法 net.minecraft.world.inventory.RecipeBookMenu
getRecipeBookCategories, handlePlacement
从类继承的方法 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
-
字段详细资料
-
RESULT_SLOT
public static final int RESULT_SLOT- 另请参阅:
-
CRAFT_SLOT_START
private static final int CRAFT_SLOT_START- 另请参阅:
-
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- 另请参阅:
-
craftSlots
-
resultSlots
-
access
-
player
-
-
构造器详细资料
-
CraftingMenu
-
CraftingMenu
-
-
方法详细资料
-
slotChangedCraftingGrid
protected static void slotChangedCraftingGrid(AbstractContainerMenu pMenu, Level pLevel, Player pPlayer, CraftingContainer pContainer, ResultContainer pResult) -
slotsChanged
- 覆盖:
slotsChanged
在类中AbstractContainerMenu
-
fillCraftSlotsStackedContents
-
clearCraftingContent
public void clearCraftingContent() -
recipeMatches
- 指定者:
recipeMatches
在类中RecipeBookMenu<CraftingContainer>
-
removed
- 覆盖:
removed
在类中AbstractContainerMenu
-
stillValid
- 指定者:
stillValid
在类中AbstractContainerMenu
-
quickMoveStack
- 指定者:
quickMoveStack
在类中AbstractContainerMenu
-
canTakeItemForPickAll
-
getResultSlotIndex
public int getResultSlotIndex() -
getGridWidth
public int getGridWidth()- 指定者:
getGridWidth
在类中RecipeBookMenu<CraftingContainer>
-
getGridHeight
public int getGridHeight()- 指定者:
getGridHeight
在类中RecipeBookMenu<CraftingContainer>
-
getSize
public int getSize()- 指定者:
getSize
在类中RecipeBookMenu<CraftingContainer>
-
getRecipeBookType
- 指定者:
getRecipeBookType
在类中RecipeBookMenu<CraftingContainer>
-
shouldMoveToInventory
public boolean shouldMoveToInventory(int pSlotIndex)
-