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 IInventorycontainerprivate IIntArraydataprotected Worldlevelprivate RecipeBookCategoryrecipeBookTypeprivate IRecipeType<? extends AbstractCookingRecipe>recipeType-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFurnaceContainer(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanSmelt(ItemStack p_217057_1_)voidclearCraftingContent()voidfillCraftSlotsStackedContents(RecipeItemHelper p_201771_1_)intgetBurnProgress()intgetGridHeight()intgetGridWidth()intgetLitProgress()RecipeBookCategorygetRecipeBookType()intgetResultSlotIndex()intgetSize()voidhandlePlacement(boolean p_217056_1_, IRecipe<?> p_217056_2_, ServerPlayerEntity p_217056_3_)protected booleanisFuel(ItemStack p_217058_1_)booleanisLit()ItemStackquickMoveStack(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
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:
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
public boolean recipeMatches(IRecipe<? super IInventory> p_201769_1_)
- 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
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValidin classContainer
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStackin 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:
getRecipeBookTypein classRecipeBookContainer<IInventory>
-
-