public class CampfireBlockEntity extends BaseBlockEntity implements Campfire
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
CampfireBlockEntity(BlockEntityType<?> type,
Chunk chunk,
com.nukkitx.math.vector.Vector3i position) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearItems()
Method is used to clear all of the items cooking in the fire, without dropping any into the world.
|
Item |
getItemInFire(int index) |
boolean |
isSpawnable() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
onBreak() |
boolean |
onUpdate() |
boolean |
putItemInFire(Item item) |
boolean |
putItemInFire(Item item,
int index,
boolean overwrite) |
protected void |
saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)
NBT data that is specifically sent to the client
|
close, getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, saveAdditionalData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitputItemInFireclose, getBlock, getBlockState, getChunkTag, getClientTag, getCustomName, getItemTag, getLevel, getPosition, getServerTag, getType, hasCustomName, isClosed, isMovable, saveAdditionalData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClientpublic CampfireBlockEntity(BlockEntityType<?> type, Chunk chunk, com.nukkitx.math.vector.Vector3i position)
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in interface BlockEntityloadAdditionalData in class BaseBlockEntityprotected void saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)
BaseBlockEntitysaveClientData in class BaseBlockEntitytag - tag to write data topublic boolean isValid()
isValid in interface BlockEntityisValid in class BaseBlockEntitypublic boolean onUpdate()
onUpdate in interface BlockEntityonUpdate in class BaseBlockEntitypublic void onBreak()
onBreak in interface BlockEntityonBreak in class BaseBlockEntitypublic Item getItemInFire(int index)
public boolean putItemInFire(Item item)
putItemInFire in interface Campfirepublic boolean putItemInFire(Item item, int index, boolean overwrite)
putItemInFire in interface Campfirepublic void clearItems()
public boolean isSpawnable()
isSpawnable in interface BlockEntityisSpawnable in class BaseBlockEntityCopyright © 2020. All rights reserved.