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, setContents
destroy, getBlock, pulse, setSaveId, updateInRange
public FurnaceEntity(GlowBlock block)
public GlowBlockState getState()
BlockEntity
getState
in class BlockEntity
public void update(GlowPlayer player)
BlockEntity
update
in class BlockEntity
player
- The player to update.public void saveNbt(CompoundTag tag)
BlockEntity
saveNbt
in class ContainerEntity
tag
- The tag to save to.public void loadNbt(CompoundTag tag)
BlockEntity
loadNbt
in class ContainerEntity
tag
- 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.