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, worldINFINITE_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, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearObjcanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapability, getCapabilityprivate final NonNullList<ItemStack> inventory
private final int[] cookingTimes
private final int[] cookingTotalTimes
public void tick()
tick in interface ITickableTileEntityprivate void cookAndDrop()
private void addParticles()
public NonNullList<ItemStack> getInventory()
public void read(CompoundNBT compound)
read in class TileEntitypublic CompoundNBT write(CompoundNBT compound)
write in class TileEntityprivate CompoundNBT writeItems(CompoundNBT compound)
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket in class TileEntitypublic CompoundNBT getUpdateTag()
getUpdateTag in class TileEntitypublic java.util.Optional<CampfireCookingRecipe> findMatchingRecipe(ItemStack itemStackIn)
public boolean addItem(ItemStack itemStackIn, int cookTime)
private void inventoryChanged()
public void clear()
clear in interface IClearablepublic void dropAllItems()