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
Modifier and TypeFieldDescriptionprivate final IInventory
private final IIntArray
protected final World
private final RecipeBookCategory
private final IRecipeType<? extends AbstractCookingRecipe>
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractFurnaceContainer
(ContainerType<?> p_i241921_1_, IRecipeType<? extends AbstractCookingRecipe> p_i241921_2_, RecipeBookCategory p_i241921_3_, int p_i241921_4_, PlayerInventory p_i241921_5_) 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 Summary
Modifier and TypeMethodDescriptionprotected boolean
void
void
fillCraftSlotsStackedContents
(RecipeItemHelper p_201771_1_) int
int
int
int
int
int
getSize()
void
handlePlacement
(boolean p_217056_1_, IRecipe<?> p_217056_2_, ServerPlayerEntity p_217056_3_) protected boolean
boolean
isLit()
quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) boolean
recipeMatches
(IRecipe<? super IInventory> p_201769_1_) boolean
stillValid
(PlayerEntity p_75145_1_) Methods inherited from class net.minecraft.inventory.container.RecipeBookContainer
getRecipeBookCategories
Methods 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:
fillCraftSlotsStackedContents
in classRecipeBookContainer<IInventory>
-
clearCraftingContent
public void clearCraftingContent()- Specified by:
clearCraftingContent
in classRecipeBookContainer<IInventory>
-
handlePlacement
public void handlePlacement(boolean p_217056_1_, IRecipe<?> p_217056_2_, ServerPlayerEntity p_217056_3_) - Overrides:
handlePlacement
in classRecipeBookContainer<IInventory>
-
recipeMatches
- Specified by:
recipeMatches
in classRecipeBookContainer<IInventory>
-
getResultSlotIndex
public int getResultSlotIndex()- Specified by:
getResultSlotIndex
in classRecipeBookContainer<IInventory>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidth
in classRecipeBookContainer<IInventory>
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeight
in classRecipeBookContainer<IInventory>
-
getSize
public int getSize()- Specified by:
getSize
in classRecipeBookContainer<IInventory>
-
stillValid
- Specified by:
stillValid
in classContainer
-
quickMoveStack
- Overrides:
quickMoveStack
in classContainer
-
canSmelt
-
isFuel
-
getBurnProgress
public int getBurnProgress() -
getLitProgress
public int getLitProgress() -
isLit
public boolean isLit() -
getRecipeBookType
- Specified by:
getRecipeBookType
in classRecipeBookContainer<IInventory>
-