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 Summary
FieldsModifier 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.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 -
Constructor Summary
ConstructorsConstructorDescriptionCraftingMenu(int p_39353_, Inventory p_39354_) CraftingMenu(int p_39356_, Inventory p_39357_, ContainerLevelAccess p_39358_) -
Method Summary
Modifier 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.RecipeBookMenu
getRecipeBookCategories, handlePlacementMethods inherited from class 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
-
Field Details
-
RESULT_SLOT
public static final int RESULT_SLOT- See Also:
-
CRAFT_SLOT_START
private static final int CRAFT_SLOT_START- See Also:
-
CRAFT_SLOT_END
private static final int CRAFT_SLOT_END- See Also:
-
INV_SLOT_START
private static final int INV_SLOT_START- See Also:
-
INV_SLOT_END
private static final int INV_SLOT_END- See Also:
-
USE_ROW_SLOT_START
private static final int USE_ROW_SLOT_START- See Also:
-
USE_ROW_SLOT_END
private static final int USE_ROW_SLOT_END- See Also:
-
craftSlots
-
resultSlots
-
access
-
player
-
-
Constructor Details
-
CraftingMenu
-
CraftingMenu
-
-
Method Details
-
slotChangedCraftingGrid
protected static void slotChangedCraftingGrid(AbstractContainerMenu p_150547_, Level p_150548_, Player p_150549_, CraftingContainer p_150550_, ResultContainer p_150551_) -
slotsChanged
- Overrides:
slotsChangedin classAbstractContainerMenu
-
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContentsin classRecipeBookMenu<CraftingContainer>
-
clearCraftingContent
public void clearCraftingContent()- Specified by:
clearCraftingContentin classRecipeBookMenu<CraftingContainer>
-
recipeMatches
- Specified by:
recipeMatchesin classRecipeBookMenu<CraftingContainer>
-
removed
- Overrides:
removedin classAbstractContainerMenu
-
stillValid
- Specified by:
stillValidin classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStackin classAbstractContainerMenu
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAllin classAbstractContainerMenu
-
getResultSlotIndex
public int getResultSlotIndex()- Specified by:
getResultSlotIndexin classRecipeBookMenu<CraftingContainer>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidthin classRecipeBookMenu<CraftingContainer>
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeightin classRecipeBookMenu<CraftingContainer>
-
getSize
public int getSize()- Specified by:
getSizein classRecipeBookMenu<CraftingContainer>
-
getRecipeBookType
- Specified by:
getRecipeBookTypein classRecipeBookMenu<CraftingContainer>
-
shouldMoveToInventory
public boolean shouldMoveToInventory(int p_150553_) - Specified by:
shouldMoveToInventoryin classRecipeBookMenu<CraftingContainer>
-