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, world
INFINITE_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, setCustomName
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorld, updateContainingBlockInfo, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeInventory, count, getInventoryStackLimit, hasAny, markDirty, openInventory
clearObj
canUseRecipe
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
protected 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 LockableTileEntity
public CompoundNBT write(CompoundNBT compound)
write
in class LockableTileEntity
public void tick()
tick
in interface ITickableTileEntity
protected 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 ISidedInventory
public boolean canInsertItem(int index, ItemStack itemStackIn, @Nullable Direction direction)
canInsertItem
in interface ISidedInventory
public boolean canExtractItem(int index, ItemStack stack, Direction direction)
canExtractItem
in interface ISidedInventory
public int getSizeInventory()
getSizeInventory
in interface IInventory
public boolean isEmpty()
isEmpty
in interface IInventory
public ItemStack getStackInSlot(int index)
getStackInSlot
in interface IInventory
public ItemStack decrStackSize(int index, int count)
decrStackSize
in interface IInventory
public ItemStack removeStackFromSlot(int index)
removeStackFromSlot
in interface IInventory
public void setInventorySlotContents(int index, ItemStack stack)
setInventorySlotContents
in interface IInventory
public boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer
in interface IInventory
public boolean isItemValidForSlot(int index, ItemStack stack)
isItemValidForSlot
in interface IInventory
public void clear()
clear
in interface IClearable
public void setRecipeUsed(@Nullable IRecipe<?> recipe)
setRecipeUsed
in interface IRecipeHolder
@Nullable public IRecipe<?> getRecipeUsed()
getRecipeUsed
in interface IRecipeHolder
public void onCrafting(PlayerEntity player)
onCrafting
in interface IRecipeHolder
public void func_213995_d(PlayerEntity p_213995_1_)
public void fillStackedContents(RecipeItemHelper helper)
fillStackedContents
in interface IRecipeHelperPopulator
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class LockableTileEntity
public void remove()
remove
in class LockableTileEntity