public class FurnaceEntity extends ContainerEntity
block| Constructor and Description |
|---|
FurnaceEntity(GlowBlock block) |
| Modifier and Type | Method and Description |
|---|---|
void |
burn()
Advances the cooking process for the tick.
|
short |
getBurnTime() |
short |
getCookTime() |
GlowBlockState |
getState()
Create a new BlockState which will correspond to this block entity.
|
void |
loadNbt(CompoundTag tag)
Read this BlockEntity's data from the saved tag.
|
void |
saveNbt(CompoundTag tag)
Save this BlockEntity's data to NBT.
|
void |
setBurnTime(short burnTime) |
void |
setCookTime(short cookTime) |
void |
update(GlowPlayer player)
Update this BlockEntity's visible state to the given player.
|
getInventory, setContentsdestroy, getBlock, pulse, setSaveId, updateInRangepublic FurnaceEntity(GlowBlock block)
public GlowBlockState getState()
BlockEntitygetState in class BlockEntitypublic void update(GlowPlayer player)
BlockEntityupdate in class BlockEntityplayer - The player to update.public void saveNbt(CompoundTag tag)
BlockEntitysaveNbt in class ContainerEntitytag - The tag to save to.public void loadNbt(CompoundTag tag)
BlockEntityloadNbt in class ContainerEntitytag - The tag to load from.public void burn()
public short getBurnTime()
public void setBurnTime(short burnTime)
public short getCookTime()
public void setCookTime(short cookTime)
Copyright © 2021. All rights reserved.