public class CampfireBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.Campfire
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
CampfireBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.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.
|
org.cloudburstmc.api.item.ItemStack |
getItemInFire(int index) |
boolean |
isSpawnable() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
onBreak() |
boolean |
onUpdate() |
boolean |
putItemInFire(org.cloudburstmc.api.item.ItemStack item) |
boolean |
putItemInFire(org.cloudburstmc.api.item.ItemStack 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, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, saveAdditionalData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMappublic CampfireBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position)
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class BaseBlockEntityprotected void saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)
BaseBlockEntitysaveClientData in class BaseBlockEntitytag - tag to write data topublic boolean isValid()
isValid in interface org.cloudburstmc.api.blockentity.BlockEntityisValid in class BaseBlockEntitypublic boolean onUpdate()
onUpdate in interface org.cloudburstmc.api.blockentity.BlockEntityonUpdate in class BaseBlockEntitypublic void onBreak()
onBreak in interface org.cloudburstmc.api.blockentity.BlockEntityonBreak in class BaseBlockEntitypublic org.cloudburstmc.api.item.ItemStack getItemInFire(int index)
public boolean putItemInFire(org.cloudburstmc.api.item.ItemStack item)
putItemInFire in interface org.cloudburstmc.api.blockentity.Campfirepublic boolean putItemInFire(org.cloudburstmc.api.item.ItemStack item,
int index,
boolean overwrite)
putItemInFire in interface org.cloudburstmc.api.blockentity.Campfirepublic void clearItems()
public boolean isSpawnable()
isSpawnable in interface org.cloudburstmc.api.blockentity.BlockEntityisSpawnable in class BaseBlockEntityCopyright © 2021. All rights reserved.