Package net.minecraft.world.inventory
Class AbstractCraftingMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu
net.minecraft.world.inventory.AbstractCraftingMenu
- Direct Known Subclasses:
CraftingMenu
,InventoryMenu
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.inventory.RecipeBookMenu
RecipeBookMenu.PostPlaceAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CraftingContainer
private final int
protected final ResultContainer
private final int
Fields 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, SLOT_SIZE, slots, SLOTS_PER_ROW
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractCraftingMenu
(MenuType<?> p_362493_, int p_360673_, int p_364200_, int p_363034_) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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()
Methods inherited from class net.minecraft.world.inventory.RecipeBookMenu
getRecipeBookType
Methods inherited from class 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
-
Field Details
-
width
private final int width -
height
private final int height -
craftSlots
-
resultSlots
-
-
Constructor Details
-
AbstractCraftingMenu
-
-
Method Details
-
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_) - Specified by:
handlePlacement
in classRecipeBookMenu
-
beginPlacingRecipe
protected void beginPlacingRecipe() -
finishPlacingRecipe
-
getResultSlot
-
getInputGridSlots
-
getGridWidth
public int getGridWidth() -
getGridHeight
public int getGridHeight() -
owner
-
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContents
in classRecipeBookMenu
-