Package net.minecraft.world.inventory
Class RecipeBookMenu<I extends RecipeInput,R extends Recipe<I>>
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<I,R>
- Direct Known Subclasses:
AbstractFurnaceMenu
,CraftingMenu
,InventoryMenu
,RecipeBookTestMenu
public abstract class RecipeBookMenu<I extends RecipeInput,R extends Recipe<I>>
extends AbstractContainerMenu
-
Field Summary
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, slots
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
abstract void
abstract void
fillCraftSlotsStackedContents
(StackedContents pItemHelper) protected void
finishPlacingRecipe
(RecipeHolder<R> pRecipe) abstract int
abstract int
abstract RecipeBookType
abstract int
abstract int
getSize()
void
handlePlacement
(boolean pPlaceAll, RecipeHolder<?> pRecipe, ServerPlayer pPlayer) abstract boolean
recipeMatches
(RecipeHolder<R> pRecipe) abstract boolean
shouldMoveToInventory
(int pSlotIndex) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, 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, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, stillValid, suppressRemoteUpdates, transferState
-
Constructor Details
-
RecipeBookMenu
-
-
Method Details
-
handlePlacement
-
beginPlacingRecipe
protected void beginPlacingRecipe() -
finishPlacingRecipe
-
fillCraftSlotsStackedContents
-
clearCraftingContent
public abstract void clearCraftingContent() -
recipeMatches
-
getResultSlotIndex
public abstract int getResultSlotIndex() -
getGridWidth
public abstract int getGridWidth() -
getGridHeight
public abstract int getGridHeight() -
getSize
public abstract int getSize() -
getRecipeBookCategories
-
getRecipeBookType
-
shouldMoveToInventory
public abstract boolean shouldMoveToInventory(int pSlotIndex)
-