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 CraftingContainerprivate final intprotected final ResultContainerprivate 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, SLOT_SIZE, slots, SLOTS_PER_ROW -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCraftingMenu(MenuType<?> menuType, int containerId, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCraftingGridSlots(int x, int y) protected SlotaddResultSlot(Player player, int x, int y) protected voidvoidfillCraftSlotsStackedContents(StackedItemContents p_360753_) protected voidfinishPlacingRecipe(ServerLevel level, RecipeHolder<CraftingRecipe> recipe) intintabstract SlothandlePlacement(boolean p_361638_, boolean p_361841_, RecipeHolder<?> p_364981_, ServerLevel p_379885_, Inventory p_361078_) protected abstract Playerowner()Methods inherited from class net.minecraft.world.inventory.RecipeBookMenu
getRecipeBookTypeMethods 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 x, int y) -
handlePlacement
public RecipeBookMenu.PostPlaceAction handlePlacement(boolean p_361638_, boolean p_361841_, RecipeHolder<?> p_364981_, ServerLevel p_379885_, Inventory p_361078_) - Specified by:
handlePlacementin classRecipeBookMenu
-
beginPlacingRecipe
protected void beginPlacingRecipe() -
finishPlacingRecipe
-
getResultSlot
-
getInputGridSlots
-
getGridWidth
public int getGridWidth() -
getGridHeight
public int getGridHeight() -
owner
-
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContentsin classRecipeBookMenu
-