public class CampfireTileEntity extends TileEntity implements IClearable, ITickableTileEntity
Modifier and Type | Field and Description |
---|---|
private int[] |
cookingTimes |
private int[] |
cookingTotalTimes |
private NonNullList<ItemStack> |
inventory |
pos, removed, world
INFINITE_EXTENT_AABB
Constructor and Description |
---|
CampfireTileEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
addItem(ItemStack itemStackIn,
int cookTime) |
private void |
addParticles() |
void |
clear() |
private void |
cookAndDrop() |
void |
dropAllItems() |
java.util.Optional<CampfireCookingRecipe> |
findMatchingRecipe(ItemStack itemStackIn) |
NonNullList<ItemStack> |
getInventory() |
SUpdateTileEntityPacket |
getUpdatePacket() |
CompoundNBT |
getUpdateTag() |
private void |
inventoryChanged() |
void |
read(CompoundNBT compound) |
void |
tick() |
CompoundNBT |
write(CompoundNBT compound) |
private CompoundNBT |
writeItems(CompoundNBT compound) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearObj
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability, getCapability
private final NonNullList<ItemStack> inventory
private final int[] cookingTimes
private final int[] cookingTotalTimes
public void tick()
tick
in interface ITickableTileEntity
private void cookAndDrop()
private void addParticles()
public NonNullList<ItemStack> getInventory()
public void read(CompoundNBT compound)
read
in class TileEntity
public CompoundNBT write(CompoundNBT compound)
write
in class TileEntity
private CompoundNBT writeItems(CompoundNBT compound)
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class TileEntity
public CompoundNBT getUpdateTag()
getUpdateTag
in class TileEntity
public java.util.Optional<CampfireCookingRecipe> findMatchingRecipe(ItemStack itemStackIn)
public boolean addItem(ItemStack itemStackIn, int cookTime)
private void inventoryChanged()
public void clear()
clear
in interface IClearable
public void dropAllItems()