Package net.minecraft.tileentity
Class CampfireTileEntity
- java.lang.Object
-
- net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
-
- net.minecraft.tileentity.TileEntity
-
- net.minecraft.tileentity.CampfireTileEntity
-
- All Implemented Interfaces:
IClearable
,ITickableTileEntity
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
public class CampfireTileEntity extends TileEntity implements IClearable, ITickableTileEntity
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
cookingProgress
private int[]
cookingTime
private NonNullList<ItemStack>
items
-
Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPosition
-
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
-
Constructor Summary
Constructors Constructor Description CampfireTileEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearContent()
private void
cook()
void
dowse()
java.util.Optional<CampfireCookingRecipe>
getCookableRecipe(ItemStack p_213980_1_)
NonNullList<ItemStack>
getItems()
SUpdateTileEntityPacket
getUpdatePacket()
CompoundNBT
getUpdateTag()
void
load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
private void
makeParticles()
private void
markUpdated()
boolean
placeFood(ItemStack p_213984_1_, int p_213984_2_)
CompoundNBT
save(CompoundNBT p_189515_1_)
private CompoundNBT
saveMetadataAndItems(CompoundNBT p_213983_1_)
void
tick()
-
Methods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
-
-
-
Field Detail
-
items
private final NonNullList<ItemStack> items
-
cookingProgress
private final int[] cookingProgress
-
cookingTime
private final int[] cookingTime
-
-
Method Detail
-
tick
public void tick()
- Specified by:
tick
in interfaceITickableTileEntity
-
cook
private void cook()
-
makeParticles
private void makeParticles()
-
getItems
public NonNullList<ItemStack> getItems()
-
load
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
- Overrides:
load
in classTileEntity
-
save
public CompoundNBT save(CompoundNBT p_189515_1_)
- Overrides:
save
in classTileEntity
-
saveMetadataAndItems
private CompoundNBT saveMetadataAndItems(CompoundNBT p_213983_1_)
-
getUpdatePacket
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
- Overrides:
getUpdatePacket
in classTileEntity
-
getUpdateTag
public CompoundNBT getUpdateTag()
- Overrides:
getUpdateTag
in classTileEntity
-
getCookableRecipe
public java.util.Optional<CampfireCookingRecipe> getCookableRecipe(ItemStack p_213980_1_)
-
placeFood
public boolean placeFood(ItemStack p_213984_1_, int p_213984_2_)
-
markUpdated
private void markUpdated()
-
clearContent
public void clearContent()
- Specified by:
clearContent
in interfaceIClearable
-
dowse
public void dowse()
-
-