Package net.minecraft.world.inventory
Class CraftingMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<CraftingContainer>
net.minecraft.world.inventory.CraftingMenu
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ContainerLevelAccessprivate static final intprivate static final intprivate final CraftingContainerprivate static final intprivate static final intprivate final Playerstatic final intprivate final ResultContainerprivate static final intprivate static final intFields inherited from class net.minecraft.world.inventory.AbstractContainerMenuCARRIED_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
- 
Constructor SummaryConstructorsConstructorDescriptionCraftingMenu(int p_39353_, Inventory p_39354_) CraftingMenu(int p_39356_, Inventory p_39357_, ContainerLevelAccess p_39358_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanTakeItemForPickAll(ItemStack p_39381_, Slot p_39382_) voidvoidfillCraftSlotsStackedContents(StackedContents p_39374_) intintintintgetSize()quickMoveStack(Player p_39391_, int p_39392_) booleanrecipeMatches(RecipeHolder<? extends Recipe<CraftingContainer>> p_300858_) voidbooleanshouldMoveToInventory(int p_150553_) protected static voidslotChangedCraftingGrid(AbstractContainerMenu p_150547_, Level p_150548_, Player p_150549_, CraftingContainer p_150550_, ResultContainer p_150551_) voidslotsChanged(Container p_39366_) booleanstillValid(Player p_39368_) Methods inherited from class net.minecraft.world.inventory.RecipeBookMenugetRecipeBookCategories, handlePlacementMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenuaddDataSlot, 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
- 
Field Details- 
RESULT_SLOTpublic static final int RESULT_SLOT- See Also:
 
- 
CRAFT_SLOT_STARTprivate static final int CRAFT_SLOT_START- See Also:
 
- 
CRAFT_SLOT_ENDprivate static final int CRAFT_SLOT_END- See Also:
 
- 
INV_SLOT_STARTprivate static final int INV_SLOT_START- See Also:
 
- 
INV_SLOT_ENDprivate static final int INV_SLOT_END- See Also:
 
- 
USE_ROW_SLOT_STARTprivate static final int USE_ROW_SLOT_START- See Also:
 
- 
USE_ROW_SLOT_ENDprivate static final int USE_ROW_SLOT_END- See Also:
 
- 
craftSlots
- 
resultSlots
- 
access
- 
player
 
- 
- 
Constructor Details- 
CraftingMenu
- 
CraftingMenu
 
- 
- 
Method Details- 
slotChangedCraftingGridprotected static void slotChangedCraftingGrid(AbstractContainerMenu p_150547_, Level p_150548_, Player p_150549_, CraftingContainer p_150550_, ResultContainer p_150551_) 
- 
slotsChanged- Overrides:
- slotsChangedin class- AbstractContainerMenu
 
- 
fillCraftSlotsStackedContents- Specified by:
- fillCraftSlotsStackedContentsin class- RecipeBookMenu<CraftingContainer>
 
- 
clearCraftingContentpublic void clearCraftingContent()- Specified by:
- clearCraftingContentin class- RecipeBookMenu<CraftingContainer>
 
- 
recipeMatches- Specified by:
- recipeMatchesin class- RecipeBookMenu<CraftingContainer>
 
- 
removed- Overrides:
- removedin class- AbstractContainerMenu
 
- 
stillValid- Specified by:
- stillValidin class- AbstractContainerMenu
 
- 
quickMoveStack- Specified by:
- quickMoveStackin class- AbstractContainerMenu
 
- 
canTakeItemForPickAll- Overrides:
- canTakeItemForPickAllin class- AbstractContainerMenu
 
- 
getResultSlotIndexpublic int getResultSlotIndex()- Specified by:
- getResultSlotIndexin class- RecipeBookMenu<CraftingContainer>
 
- 
getGridWidthpublic int getGridWidth()- Specified by:
- getGridWidthin class- RecipeBookMenu<CraftingContainer>
 
- 
getGridHeightpublic int getGridHeight()- Specified by:
- getGridHeightin class- RecipeBookMenu<CraftingContainer>
 
- 
getSizepublic int getSize()- Specified by:
- getSizein class- RecipeBookMenu<CraftingContainer>
 
- 
getRecipeBookType- Specified by:
- getRecipeBookTypein class- RecipeBookMenu<CraftingContainer>
 
- 
shouldMoveToInventorypublic boolean shouldMoveToInventory(int p_150553_) - Specified by:
- shouldMoveToInventoryin class- RecipeBookMenu<CraftingContainer>
 
 
-