public class SkullBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.Skull
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
SkullBlockEntity(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 |
|---|---|
int |
getMouthTickCount() |
float |
getRotation() |
int |
getSkullType() |
boolean |
isMouthMoving() |
boolean |
isSpawnable() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setMouthMoving(boolean mouthMoving) |
void |
setMouthTickCount(int mouthTickCount) |
void |
setRotation(float rotation) |
void |
setSkullType(int skullType) |
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 SkullBlockEntity(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 boolean isValid()
isValid in interface org.cloudburstmc.api.blockentity.BlockEntityisValid in class BaseBlockEntitypublic float getRotation()
getRotation in interface org.cloudburstmc.api.blockentity.Skullpublic void setRotation(float rotation)
setRotation in interface org.cloudburstmc.api.blockentity.Skullpublic int getMouthTickCount()
public void setMouthTickCount(int mouthTickCount)
public boolean isMouthMoving()
public void setMouthMoving(boolean mouthMoving)
public int getSkullType()
getSkullType in interface org.cloudburstmc.api.blockentity.Skullpublic void setSkullType(int skullType)
setSkullType in interface org.cloudburstmc.api.blockentity.Skullpublic boolean isSpawnable()
isSpawnable in interface org.cloudburstmc.api.blockentity.BlockEntityisSpawnable in class BaseBlockEntityCopyright © 2021. All rights reserved.