Package net.minecraft.world.inventory
Class AbstractFurnaceMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
net.minecraft.world.inventory.AbstractFurnaceMenu
- Direct Known Subclasses:
BlastFurnaceMenu
,FurnaceMenu
,SmokerMenu
public abstract class AbstractFurnaceMenu
extends RecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Container
private final ContainerData
static final int
static final int
static final int
private static final int
private static final int
protected final Level
private final RecipeBookType
private final RecipeType
<? extends AbstractCookingRecipe> static final int
static final int
private static final int
private static final int
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
ModifierConstructorDescriptionprotected
AbstractFurnaceMenu
(MenuType<?> p_38960_, RecipeType<? extends AbstractCookingRecipe> p_38961_, RecipeBookType p_38962_, int p_38963_, Inventory p_38964_) protected
AbstractFurnaceMenu
(MenuType<?> p_38966_, RecipeType<? extends AbstractCookingRecipe> p_38967_, RecipeBookType p_38968_, int p_38969_, Inventory p_38970_, Container p_38971_, ContainerData p_38972_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
void
fillCraftSlotsStackedContents
(StackedContents p_38976_) float
int
int
float
int
int
getSize()
protected boolean
boolean
isLit()
quickMoveStack
(Player p_38986_, int p_38987_) boolean
recipeMatches
(RecipeHolder<AbstractCookingRecipe> p_297720_) boolean
shouldMoveToInventory
(int p_150463_) boolean
stillValid
(Player p_38974_) Methods inherited from class net.minecraft.world.inventory.RecipeBookMenu
beginPlacingRecipe, finishPlacingRecipe, getRecipeBookCategories, handlePlacement
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, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
INGREDIENT_SLOT
public static final int INGREDIENT_SLOT- See Also:
-
FUEL_SLOT
public static final int FUEL_SLOT- See Also:
-
RESULT_SLOT
public static final int RESULT_SLOT- See Also:
-
SLOT_COUNT
public static final int SLOT_COUNT- See Also:
-
DATA_COUNT
public static final int DATA_COUNT- See Also:
-
INV_SLOT_START
private static final int INV_SLOT_START- See Also:
-
INV_SLOT_END
private static final int INV_SLOT_END- See Also:
-
USE_ROW_SLOT_START
private static final int USE_ROW_SLOT_START- See Also:
-
USE_ROW_SLOT_END
private static final int USE_ROW_SLOT_END- See Also:
-
container
-
data
-
level
-
recipeType
-
recipeBookType
-
-
Constructor Details
-
AbstractFurnaceMenu
protected AbstractFurnaceMenu(MenuType<?> p_38960_, RecipeType<? extends AbstractCookingRecipe> p_38961_, RecipeBookType p_38962_, int p_38963_, Inventory p_38964_) -
AbstractFurnaceMenu
protected AbstractFurnaceMenu(MenuType<?> p_38966_, RecipeType<? extends AbstractCookingRecipe> p_38967_, RecipeBookType p_38968_, int p_38969_, Inventory p_38970_, Container p_38971_, ContainerData p_38972_)
-
-
Method Details
-
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContents
in classRecipeBookMenu<SingleRecipeInput,
AbstractCookingRecipe>
-
clearCraftingContent
public void clearCraftingContent()- Specified by:
clearCraftingContent
in classRecipeBookMenu<SingleRecipeInput,
AbstractCookingRecipe>
-
recipeMatches
- Specified by:
recipeMatches
in classRecipeBookMenu<SingleRecipeInput,
AbstractCookingRecipe>
-
getResultSlotIndex
public int getResultSlotIndex()- Specified by:
getResultSlotIndex
in classRecipeBookMenu<SingleRecipeInput,
AbstractCookingRecipe>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidth
in classRecipeBookMenu<SingleRecipeInput,
AbstractCookingRecipe>
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeight
in classRecipeBookMenu<SingleRecipeInput,
AbstractCookingRecipe>
-
getSize
public int getSize()- Specified by:
getSize
in classRecipeBookMenu<SingleRecipeInput,
AbstractCookingRecipe>
-
stillValid
- Specified by:
stillValid
in classAbstractContainerMenu
-
quickMoveStack
- Specified by:
quickMoveStack
in classAbstractContainerMenu
-
canSmelt
-
isFuel
-
getBurnProgress
public float getBurnProgress() -
getLitProgress
public float getLitProgress() -
isLit
public boolean isLit() -
getRecipeBookType
- Specified by:
getRecipeBookType
in classRecipeBookMenu<SingleRecipeInput,
AbstractCookingRecipe>
-
shouldMoveToInventory
public boolean shouldMoveToInventory(int p_150463_) - Specified by:
shouldMoveToInventory
in classRecipeBookMenu<SingleRecipeInput,
AbstractCookingRecipe>
-