public abstract class AbstractFurnaceContainer extends RecipeBookContainer<IInventory>
| Modifier and Type | Field and Description |
|---|---|
private IIntArray |
furnaceData |
private IInventory |
furnaceInventory |
private IRecipeType<? extends AbstractCookingRecipe> |
recipeType |
protected World |
world |
inventorySlots, windowId| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFurnaceContainer(ContainerType<?> containerTypeIn,
IRecipeType<? extends AbstractCookingRecipe> recipeTypeIn,
int id,
PlayerInventory playerInventoryIn) |
protected |
AbstractFurnaceContainer(ContainerType<?> containerTypeIn,
IRecipeType<? extends AbstractCookingRecipe> recipeTypeIn,
int id,
PlayerInventory playerInventoryIn,
IInventory furnaceInventoryIn,
IIntArray furnaceDataIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInteractWith(PlayerEntity playerIn) |
void |
clear() |
void |
fillStackedContents(RecipeItemHelper itemHelperIn) |
void |
func_217056_a(boolean p_217056_1_,
IRecipe<?> p_217056_2_,
ServerPlayerEntity p_217056_3_) |
int |
getBurnLeftScaled() |
int |
getCookProgressionScaled() |
int |
getHeight() |
int |
getOutputSlot() |
int |
getSize() |
int |
getWidth() |
protected boolean |
hasRecipe(ItemStack stack) |
boolean |
isBurning() |
protected boolean |
isFuel(ItemStack stack) |
boolean |
matches(IRecipe<? super IInventory> recipeIn) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
getRecipeBookCategoriesaddListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, onContainerClosed, onCraftMatrixChanged, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBarprivate final IInventory furnaceInventory
private final IIntArray furnaceData
protected final World world
private final IRecipeType<? extends AbstractCookingRecipe> recipeType
protected AbstractFurnaceContainer(ContainerType<?> containerTypeIn, IRecipeType<? extends AbstractCookingRecipe> recipeTypeIn, int id, PlayerInventory playerInventoryIn)
protected AbstractFurnaceContainer(ContainerType<?> containerTypeIn, IRecipeType<? extends AbstractCookingRecipe> recipeTypeIn, int id, PlayerInventory playerInventoryIn, IInventory furnaceInventoryIn, IIntArray furnaceDataIn)
public void fillStackedContents(RecipeItemHelper itemHelperIn)
fillStackedContents in class RecipeBookContainer<IInventory>public void clear()
clear in class RecipeBookContainer<IInventory>public void func_217056_a(boolean p_217056_1_,
IRecipe<?> p_217056_2_,
ServerPlayerEntity p_217056_3_)
func_217056_a in class RecipeBookContainer<IInventory>public boolean matches(IRecipe<? super IInventory> recipeIn)
matches in class RecipeBookContainer<IInventory>public int getOutputSlot()
getOutputSlot in class RecipeBookContainer<IInventory>public int getWidth()
getWidth in class RecipeBookContainer<IInventory>public int getHeight()
getHeight in class RecipeBookContainer<IInventory>public int getSize()
getSize in class RecipeBookContainer<IInventory>public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith in class Containerpublic ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
transferStackInSlot in class Containerprotected boolean hasRecipe(ItemStack stack)
protected boolean isFuel(ItemStack stack)
public int getCookProgressionScaled()
public int getBurnLeftScaled()
public boolean isBurning()