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
public abstract class AbstractFurnaceContainer extends RecipeBookContainer<IInventory>
-
-
Field Summary
Fields Modifier and Type Field Description private IInventory
container
private IIntArray
data
protected World
level
private RecipeBookCategory
recipeBookType
private IRecipeType<? extends AbstractCookingRecipe>
recipeType
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canSmelt(ItemStack p_217057_1_)
void
clearCraftingContent()
void
fillCraftSlotsStackedContents(RecipeItemHelper p_201771_1_)
int
getBurnProgress()
int
getGridHeight()
int
getGridWidth()
int
getLitProgress()
RecipeBookCategory
getRecipeBookType()
int
getResultSlotIndex()
int
getSize()
void
handlePlacement(boolean p_217056_1_, IRecipe<?> p_217056_2_, ServerPlayerEntity p_217056_3_)
protected boolean
isFuel(ItemStack p_217058_1_)
boolean
isLit()
ItemStack
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 Detail
-
container
private final IInventory container
-
data
private final IIntArray data
-
level
protected final World level
-
recipeType
private final IRecipeType<? extends AbstractCookingRecipe> recipeType
-
recipeBookType
private final RecipeBookCategory recipeBookType
-
-
Constructor Detail
-
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 Detail
-
fillCraftSlotsStackedContents
public void fillCraftSlotsStackedContents(RecipeItemHelper p_201771_1_)
- 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
public boolean recipeMatches(IRecipe<? super IInventory> p_201769_1_)
- 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
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValid
in classContainer
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStack
in classContainer
-
canSmelt
protected boolean canSmelt(ItemStack p_217057_1_)
-
isFuel
protected boolean isFuel(ItemStack p_217058_1_)
-
getBurnProgress
public int getBurnProgress()
-
getLitProgress
public int getLitProgress()
-
isLit
public boolean isLit()
-
getRecipeBookType
public RecipeBookCategory getRecipeBookType()
- Specified by:
getRecipeBookType
in classRecipeBookContainer<IInventory>
-
-