Class CauldronBlockEntity
java.lang.Object
org.cloudburstmc.server.blockentity.BaseBlockEntity
org.cloudburstmc.server.blockentity.CauldronBlockEntity
- All Implemented Interfaces:
org.cloudburstmc.api.blockentity.BlockEntity,org.cloudburstmc.api.blockentity.Cauldron
public class CauldronBlockEntity
extends BaseBlockEntity
implements org.cloudburstmc.api.blockentity.Cauldron
author: CreeperFace
Nukkit Project
-
Field Summary
Fields inherited from class org.cloudburstmc.server.blockentity.BaseBlockEntity
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing -
Constructor Summary
ConstructorsConstructorDescriptionCauldronBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position) -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.api.util.data.BlockColorshortshortbooleanbooleanbooleanisSplash()booleanisValid()voidloadAdditionalData(com.nukkitx.nbt.NbtMap tag)voidsaveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)voidsetCustomColor(org.cloudburstmc.api.util.data.BlockColor customColor)voidsetPotionId(int potionId)voidsetPotionType(int potionType)voidsetSplash(boolean splash)Methods inherited from class org.cloudburstmc.server.blockentity.BaseBlockEntity
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, updateNbtMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.blockentity.BlockEntity
close, getBlock, getBlockState, getCustomName, getLevel, getPosition, getType, hasCustomName, isClosed, isMovable, onBreak, onUpdate, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll
-
Constructor Details
-
CauldronBlockEntity
public CauldronBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position)
-
-
Method Details
-
loadAdditionalData
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)- Overrides:
loadAdditionalDatain classBaseBlockEntity
-
saveAdditionalData
public void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)- Overrides:
saveAdditionalDatain classBaseBlockEntity
-
getPotionId
public short getPotionId()- Specified by:
getPotionIdin interfaceorg.cloudburstmc.api.blockentity.Cauldron
-
setPotionId
public void setPotionId(int potionId)- Specified by:
setPotionIdin interfaceorg.cloudburstmc.api.blockentity.Cauldron
-
getPotionType
public short getPotionType()- Specified by:
getPotionTypein interfaceorg.cloudburstmc.api.blockentity.Cauldron
-
setPotionType
public void setPotionType(int potionType)- Specified by:
setPotionTypein interfaceorg.cloudburstmc.api.blockentity.Cauldron
-
isSplash
public boolean isSplash()- Specified by:
isSplashin interfaceorg.cloudburstmc.api.blockentity.Cauldron
-
setSplash
public void setSplash(boolean splash)- Specified by:
setSplashin interfaceorg.cloudburstmc.api.blockentity.Cauldron
-
getCustomColor
public org.cloudburstmc.api.util.data.BlockColor getCustomColor()- Specified by:
getCustomColorin interfaceorg.cloudburstmc.api.blockentity.Cauldron
-
setCustomColor
public void setCustomColor(org.cloudburstmc.api.util.data.BlockColor customColor)- Specified by:
setCustomColorin interfaceorg.cloudburstmc.api.blockentity.Cauldron
-
hasCustomColor
public boolean hasCustomColor()- Specified by:
hasCustomColorin interfaceorg.cloudburstmc.api.blockentity.Cauldron
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Specified by:
isValidin classBaseBlockEntity
-
isSpawnable
public boolean isSpawnable()- Specified by:
isSpawnablein interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Overrides:
isSpawnablein classBaseBlockEntity
-