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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
abstract void
abstract void
fillCraftSlotsStackedContents
(StackedContents p_40117_) protected void
finishPlacingRecipe
(RecipeHolder<R> p_345813_) abstract int
abstract int
abstract RecipeBookType
abstract int
abstract int
getSize()
void
handlePlacement
(boolean p_40119_, RecipeHolder<?> p_300860_, ServerPlayer p_40121_) abstract boolean
recipeMatches
(RecipeHolder<R> p_301144_) abstract boolean
shouldMoveToInventory
(int p_150635_) 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 p_150635_)
-