public class CauldronBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.Cauldron
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
CauldronBlockEntity(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 |
|---|---|
org.cloudburstmc.api.util.data.BlockColor |
getCustomColor() |
short |
getPotionId() |
short |
getPotionType() |
boolean |
hasCustomColor() |
boolean |
isSpawnable() |
boolean |
isSplash() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setCustomColor(org.cloudburstmc.api.util.data.BlockColor customColor) |
void |
setPotionId(int potionId) |
void |
setPotionType(int potionType) |
void |
setSplash(boolean splash) |
close, getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, onBreak, onUpdate, saveClientData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMappublic CauldronBlockEntity(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 BaseBlockEntitypublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class BaseBlockEntitypublic short getPotionId()
getPotionId in interface org.cloudburstmc.api.blockentity.Cauldronpublic void setPotionId(int potionId)
setPotionId in interface org.cloudburstmc.api.blockentity.Cauldronpublic short getPotionType()
getPotionType in interface org.cloudburstmc.api.blockentity.Cauldronpublic void setPotionType(int potionType)
setPotionType in interface org.cloudburstmc.api.blockentity.Cauldronpublic boolean isSplash()
isSplash in interface org.cloudburstmc.api.blockentity.Cauldronpublic void setSplash(boolean splash)
setSplash in interface org.cloudburstmc.api.blockentity.Cauldronpublic org.cloudburstmc.api.util.data.BlockColor getCustomColor()
getCustomColor in interface org.cloudburstmc.api.blockentity.Cauldronpublic void setCustomColor(org.cloudburstmc.api.util.data.BlockColor customColor)
setCustomColor in interface org.cloudburstmc.api.blockentity.Cauldronpublic boolean hasCustomColor()
hasCustomColor in interface org.cloudburstmc.api.blockentity.Cauldronpublic boolean isValid()
isValid in interface org.cloudburstmc.api.blockentity.BlockEntityisValid in class BaseBlockEntitypublic boolean isSpawnable()
isSpawnable in interface org.cloudburstmc.api.blockentity.BlockEntityisSpawnable in class BaseBlockEntityCopyright © 2021. All rights reserved.