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
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 voidabstract voidabstract voidfillCraftSlotsStackedContents(StackedContents pItemHelper) protected voidfinishPlacingRecipe(RecipeHolder<R> pRecipe) abstract intabstract intabstract RecipeBookTypeabstract intabstract intgetSize()voidhandlePlacement(boolean pPlaceAll, RecipeHolder<?> pRecipe, ServerPlayer pPlayer) abstract booleanrecipeMatches(RecipeHolder<R> pRecipe) abstract booleanshouldMoveToInventory(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)
-