Package net.minecraft.world.inventory
Class AbstractFurnaceMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu
net.minecraft.world.inventory.AbstractFurnaceMenu
- Direct Known Subclasses:
BlastFurnaceMenu
,FurnaceMenu
,SmokerMenu
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.inventory.RecipeBookMenu
RecipeBookMenu.PostPlaceAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipePropertySet
(package private) 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, SLOT_SIZE, slots, SLOTS_PER_ROW
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractFurnaceMenu
(MenuType<?> p_38966_, RecipeType<? extends AbstractCookingRecipe> p_38967_, ResourceKey<RecipePropertySet> p_380333_, RecipeBookType p_38968_, int p_38969_, Inventory p_38970_) protected
AbstractFurnaceMenu
(MenuType<?> p_38960_, RecipeType<? extends AbstractCookingRecipe> p_38961_, ResourceKey<RecipePropertySet> p_379773_, RecipeBookType p_38962_, int p_38963_, Inventory p_38964_, Container p_379971_, ContainerData p_379737_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
fillCraftSlotsStackedContents
(StackedItemContents p_363436_) float
float
handlePlacement
(boolean p_361547_, boolean p_363944_, RecipeHolder<?> p_360938_, ServerLevel p_379475_, Inventory p_361954_) protected boolean
boolean
isLit()
quickMoveStack
(Player p_38986_, int p_38987_) boolean
stillValid
(Player p_38974_) Methods inherited from class net.minecraft.world.inventory.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, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, 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
-
acceptedInputs
-
recipeBookType
-
-
Constructor Details
-
AbstractFurnaceMenu
protected AbstractFurnaceMenu(MenuType<?> p_38966_, RecipeType<? extends AbstractCookingRecipe> p_38967_, ResourceKey<RecipePropertySet> p_380333_, RecipeBookType p_38968_, int p_38969_, Inventory p_38970_) -
AbstractFurnaceMenu
protected AbstractFurnaceMenu(MenuType<?> p_38960_, RecipeType<? extends AbstractCookingRecipe> p_38961_, ResourceKey<RecipePropertySet> p_379773_, RecipeBookType p_38962_, int p_38963_, Inventory p_38964_, Container p_379971_, ContainerData p_379737_)
-
-
Method Details
-
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContents
in classRecipeBookMenu
-
getResultSlot
-
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
-
handlePlacement
public RecipeBookMenu.PostPlaceAction handlePlacement(boolean p_361547_, boolean p_363944_, RecipeHolder<?> p_360938_, ServerLevel p_379475_, Inventory p_361954_) - Specified by:
handlePlacement
in classRecipeBookMenu
-