Class AbstractFurnaceContainer
java.lang.Object
net.minecraft.inventory.container.Container
net.minecraft.inventory.container.RecipeBookContainer<IInventory>
net.minecraft.inventory.container.AbstractFurnaceContainer
- Direct Known Subclasses:
BlastFurnaceContainer,FurnaceContainer,SmokerContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IInventoryprivate final IIntArrayprotected final Worldprivate final RecipeBookCategoryprivate final IRecipeType<? extends AbstractCookingRecipe>Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFurnaceContainer(ContainerType<?> p_i241921_1_, IRecipeType<? extends AbstractCookingRecipe> p_i241921_2_, RecipeBookCategory p_i241921_3_, int p_i241921_4_, PlayerInventory p_i241921_5_) protectedAbstractFurnaceContainer(ContainerType<?> p_i241922_1_, IRecipeType<? extends AbstractCookingRecipe> p_i241922_2_, RecipeBookCategory p_i241922_3_, int p_i241922_4_, PlayerInventory p_i241922_5_, IInventory p_i241922_6_, IIntArray p_i241922_7_) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidvoidfillCraftSlotsStackedContents(RecipeItemHelper p_201771_1_) intintintintintintgetSize()voidhandlePlacement(boolean p_217056_1_, IRecipe<?> p_217056_2_, ServerPlayerEntity p_217056_3_) protected booleanbooleanisLit()quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) booleanrecipeMatches(IRecipe<? super IInventory> p_201769_1_) booleanstillValid(PlayerEntity p_75145_1_) Methods inherited from class net.minecraft.inventory.container.RecipeBookContainer
getRecipeBookCategoriesMethods inherited from class net.minecraft.inventory.container.Container
addDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removed, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, slotsChanged, stillValid
-
Field Details
-
container
-
data
-
level
-
recipeType
-
recipeBookType
-
-
Constructor Details
-
AbstractFurnaceContainer
protected AbstractFurnaceContainer(ContainerType<?> p_i241921_1_, IRecipeType<? extends AbstractCookingRecipe> p_i241921_2_, RecipeBookCategory p_i241921_3_, int p_i241921_4_, PlayerInventory p_i241921_5_) -
AbstractFurnaceContainer
protected AbstractFurnaceContainer(ContainerType<?> p_i241922_1_, IRecipeType<? extends AbstractCookingRecipe> p_i241922_2_, RecipeBookCategory p_i241922_3_, int p_i241922_4_, PlayerInventory p_i241922_5_, IInventory p_i241922_6_, IIntArray p_i241922_7_)
-
-
Method Details
-
fillCraftSlotsStackedContents
- Specified by:
fillCraftSlotsStackedContentsin classRecipeBookContainer<IInventory>
-
clearCraftingContent
public void clearCraftingContent()- Specified by:
clearCraftingContentin classRecipeBookContainer<IInventory>
-
handlePlacement
public void handlePlacement(boolean p_217056_1_, IRecipe<?> p_217056_2_, ServerPlayerEntity p_217056_3_) - Overrides:
handlePlacementin classRecipeBookContainer<IInventory>
-
recipeMatches
- Specified by:
recipeMatchesin classRecipeBookContainer<IInventory>
-
getResultSlotIndex
public int getResultSlotIndex()- Specified by:
getResultSlotIndexin classRecipeBookContainer<IInventory>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidthin classRecipeBookContainer<IInventory>
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeightin classRecipeBookContainer<IInventory>
-
getSize
public int getSize()- Specified by:
getSizein classRecipeBookContainer<IInventory>
-
stillValid
- Specified by:
stillValidin classContainer
-
quickMoveStack
- Overrides:
quickMoveStackin classContainer
-
canSmelt
-
isFuel
-
getBurnProgress
public int getBurnProgress() -
getLitProgress
public int getLitProgress() -
isLit
public boolean isLit() -
getRecipeBookType
- Specified by:
getRecipeBookTypein classRecipeBookContainer<IInventory>
-