public abstract class AbstractFurnaceTileEntity extends LockableTileEntity implements ISidedInventory, IRecipeHolder, IRecipeHelperPopulator, ITickableTileEntity
| Modifier and Type | Field and Description |
|---|---|
protected IIntArray |
furnaceData |
protected NonNullList<ItemStack> |
items |
protected IRecipeType<? extends AbstractCookingRecipe> |
recipeType |
pos, removed, worldINFINITE_EXTENT_AABB| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFurnaceTileEntity(TileEntityType<?> tileTypeIn,
IRecipeType<? extends AbstractCookingRecipe> recipeTypeIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExtractItem(int index,
ItemStack stack,
Direction direction) |
boolean |
canInsertItem(int index,
ItemStack itemStackIn,
Direction direction) |
protected boolean |
canSmelt(IRecipe<?> recipeIn) |
void |
clear() |
ItemStack |
decrStackSize(int index,
int count) |
void |
fillStackedContents(RecipeItemHelper helper) |
void |
func_213995_d(PlayerEntity p_213995_1_) |
protected int |
func_214005_h() |
protected int |
getBurnTime(ItemStack p_213997_1_) |
static java.util.Map<Item,java.lang.Integer> |
getBurnTimes()
Deprecated.
|
<T> LazyOptional<T> |
getCapability(Capability<T> capability,
Direction facing)
Retrieves the Optional handler for the capability requested on the specific side.
|
IRecipe<?> |
getRecipeUsed() |
int |
getSizeInventory() |
int[] |
getSlotsForFace(Direction side) |
ItemStack |
getStackInSlot(int index) |
boolean |
isEmpty() |
static boolean |
isFuel(ItemStack p_213991_0_) |
boolean |
isItemValidForSlot(int index,
ItemStack stack) |
boolean |
isUsableByPlayer(PlayerEntity player) |
void |
onCrafting(PlayerEntity player) |
void |
read(CompoundNBT compound) |
void |
remove() |
ItemStack |
removeStackFromSlot(int index) |
void |
setInventorySlotContents(int index,
ItemStack stack) |
void |
setRecipeUsed(IRecipe<?> recipe) |
void |
tick() |
CompoundNBT |
write(CompoundNBT compound) |
canOpen, canUnlock, createMenu, createMenu, createUnSidedHandler, getCustomName, getDefaultName, getDisplayName, getName, setCustomNameaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorld, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseInventory, count, getInventoryStackLimit, hasAny, markDirty, openInventoryclearObjcanUseRecipehasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapabilityprotected NonNullList<ItemStack> items
protected final IIntArray furnaceData
protected final IRecipeType<? extends AbstractCookingRecipe> recipeType
protected AbstractFurnaceTileEntity(TileEntityType<?> tileTypeIn, IRecipeType<? extends AbstractCookingRecipe> recipeTypeIn)
@Deprecated public static java.util.Map<Item,java.lang.Integer> getBurnTimes()
public void read(CompoundNBT compound)
read in class LockableTileEntitypublic CompoundNBT write(CompoundNBT compound)
write in class LockableTileEntitypublic void tick()
tick in interface ITickableTileEntityprotected boolean canSmelt(@Nullable
IRecipe<?> recipeIn)
protected int getBurnTime(ItemStack p_213997_1_)
protected int func_214005_h()
public static boolean isFuel(ItemStack p_213991_0_)
public int[] getSlotsForFace(Direction side)
getSlotsForFace in interface ISidedInventorypublic boolean canInsertItem(int index,
ItemStack itemStackIn,
@Nullable
Direction direction)
canInsertItem in interface ISidedInventorypublic boolean canExtractItem(int index,
ItemStack stack,
Direction direction)
canExtractItem in interface ISidedInventorypublic int getSizeInventory()
getSizeInventory in interface IInventorypublic boolean isEmpty()
isEmpty in interface IInventorypublic ItemStack getStackInSlot(int index)
getStackInSlot in interface IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize in interface IInventorypublic ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface IInventorypublic void setInventorySlotContents(int index,
ItemStack stack)
setInventorySlotContents in interface IInventorypublic boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer in interface IInventorypublic boolean isItemValidForSlot(int index,
ItemStack stack)
isItemValidForSlot in interface IInventorypublic void clear()
clear in interface IClearablepublic void setRecipeUsed(@Nullable
IRecipe<?> recipe)
setRecipeUsed in interface IRecipeHolder@Nullable public IRecipe<?> getRecipeUsed()
getRecipeUsed in interface IRecipeHolderpublic void onCrafting(PlayerEntity player)
onCrafting in interface IRecipeHolderpublic void func_213995_d(PlayerEntity p_213995_1_)
public void fillStackedContents(RecipeItemHelper helper)
fillStackedContents in interface IRecipeHelperPopulatorpublic <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvidergetCapability in interface ICapabilityProvidergetCapability in class LockableTileEntitypublic void remove()
remove in class LockableTileEntity