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<?> pMenuType, RecipeType<? extends AbstractCookingRecipe> pRecipeType, ResourceKey<RecipePropertySet> pAcceptedInputs, RecipeBookType pRecipeBookType, int pContainerId, Inventory pInventory) protected
AbstractFurnaceMenu
(MenuType<?> pMenuType, RecipeType<? extends AbstractCookingRecipe> pRecipeType, ResourceKey<RecipePropertySet> pAcceptedInputs, RecipeBookType pRecipeBookType, int pContainerId, Inventory pInventory, Container pContainer, ContainerData pData) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
fillCraftSlotsStackedContents
(StackedItemContents pStackedItemContents) float
float
handlePlacement
(boolean pUseMaxItems, boolean pIsCreative, RecipeHolder<?> pRecipe, ServerLevel pLevel, Inventory pPlayerInventory) protected boolean
boolean
isLit()
quickMoveStack
(Player pPlayer, int pIndex) Handle when the stack in slotindex
is shift-clicked.boolean
stillValid
(Player pPlayer) Determines whether supplied player can use this containerMethods 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<?> pMenuType, RecipeType<? extends AbstractCookingRecipe> pRecipeType, ResourceKey<RecipePropertySet> pAcceptedInputs, RecipeBookType pRecipeBookType, int pContainerId, Inventory pInventory) -
AbstractFurnaceMenu
protected AbstractFurnaceMenu(MenuType<?> pMenuType, RecipeType<? extends AbstractCookingRecipe> pRecipeType, ResourceKey<RecipePropertySet> pAcceptedInputs, RecipeBookType pRecipeBookType, int pContainerId, Inventory pInventory, Container pContainer, ContainerData pData)
-
-
Method Details
-
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContents
in classRecipeBookMenu
-
getResultSlot
-
stillValid
Determines whether supplied player can use this container- Specified by:
stillValid
in classAbstractContainerMenu
-
quickMoveStack
Handle when the stack in slotindex
is shift-clicked. Normally this moves the stack between the player inventory and the other inventory(s).- 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 pUseMaxItems, boolean pIsCreative, RecipeHolder<?> pRecipe, ServerLevel pLevel, Inventory pPlayerInventory) - Specified by:
handlePlacement
in classRecipeBookMenu
-