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 RecipeBookMenu
RecipeBookMenu.PostPlaceAction -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CraftingContainerprivate final intprotected final ResultContainerprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCraftingMenu(MenuType<?> menuType, int containerId, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCraftingGridSlots(int left, int top) protected SlotaddResultSlot(Player player, int x, int y) protected voidvoidfillCraftSlotsStackedContents(StackedItemContents stackedContents) protected voidfinishPlacingRecipe(ServerLevel level, RecipeHolder<CraftingRecipe> recipe) intintabstract SlothandlePlacement(boolean useMaxItems, boolean allowDroppingItemsToClear, RecipeHolder<?> recipe, ServerLevel level, Inventory inventory) protected abstract Playerowner()Methods inherited from class RecipeBookMenu
getRecipeBookTypeMethods inherited from class 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 left, int top) -
handlePlacement
public RecipeBookMenu.PostPlaceAction handlePlacement(boolean useMaxItems, boolean allowDroppingItemsToClear, RecipeHolder<?> recipe, ServerLevel level, Inventory inventory) - 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
-