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
FieldsModifier and TypeFieldDescriptionprivate final Containerprivate final ContainerDatastatic final intstatic final intstatic final intprivate static final intprivate static final intprotected final Levelprivate final RecipeBookTypeprivate final RecipeType<? extends AbstractCookingRecipe> static final intstatic final intprivate static final intprivate static final intFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractFurnaceMenu(MenuType<?> pMenuType, RecipeType<? extends AbstractCookingRecipe> pRecipeType, RecipeBookType pRecipeBookType, int pContainerId, Inventory pPlayerInventory) protectedAbstractFurnaceMenu(MenuType<?> pMenuType, RecipeType<? extends AbstractCookingRecipe> pRecipeType, RecipeBookType pRecipeBookType, int pContainerId, Inventory pPlayerInventory, Container pContainer, ContainerData pData) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidvoidfillCraftSlotsStackedContents(StackedContents pItemHelper) floatintintfloatintintgetSize()protected booleanbooleanisLit()quickMoveStack(Player pPlayer, int pIndex) Handle when the stack in slotindexis shift-clicked.booleanrecipeMatches(RecipeHolder<AbstractCookingRecipe> pRecipe) booleanshouldMoveToInventory(int pSlotIndex) booleanstillValid(Player pPlayer) Determines whether supplied player can use this containerMethods inherited from class net.minecraft.world.inventory.RecipeBookMenu
beginPlacingRecipe, finishPlacingRecipe, getRecipeBookCategories, handlePlacementMethods 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<?> pMenuType, RecipeType<? extends AbstractCookingRecipe> pRecipeType, RecipeBookType pRecipeBookType, int pContainerId, Inventory pPlayerInventory) -
AbstractFurnaceMenu
protected AbstractFurnaceMenu(MenuType<?> pMenuType, RecipeType<? extends AbstractCookingRecipe> pRecipeType, RecipeBookType pRecipeBookType, int pContainerId, Inventory pPlayerInventory, Container pContainer, ContainerData pData)
-
-
Method Details
-
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContentsin classRecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
-
clearCraftingContent
public void clearCraftingContent()- Specified by:
clearCraftingContentin classRecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
-
recipeMatches
- Specified by:
recipeMatchesin classRecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
-
getResultSlotIndex
public int getResultSlotIndex()- Specified by:
getResultSlotIndexin classRecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidthin classRecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeightin classRecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
-
getSize
public int getSize()- Specified by:
getSizein classRecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
-
stillValid
Determines whether supplied player can use this container- Specified by:
stillValidin classAbstractContainerMenu
-
quickMoveStack
Handle when the stack in slotindexis shift-clicked. Normally this moves the stack between the player inventory and the other inventory(s).- Specified by:
quickMoveStackin classAbstractContainerMenu
-
canSmelt
-
isFuel
-
getBurnProgress
public float getBurnProgress() -
getLitProgress
public float getLitProgress() -
isLit
public boolean isLit() -
getRecipeBookType
- Specified by:
getRecipeBookTypein classRecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
-
shouldMoveToInventory
public boolean shouldMoveToInventory(int pSlotIndex) - Specified by:
shouldMoveToInventoryin classRecipeBookMenu<SingleRecipeInput,AbstractCookingRecipe>
-