Class SkullBlockEntity
java.lang.Object
org.cloudburstmc.server.blockentity.BaseBlockEntity
org.cloudburstmc.server.blockentity.SkullBlockEntity
- All Implemented Interfaces:
org.cloudburstmc.api.blockentity.BlockEntity,org.cloudburstmc.api.blockentity.Skull
public class SkullBlockEntity
extends BaseBlockEntity
implements org.cloudburstmc.api.blockentity.Skull
Created by Snake1999 on 2016/2/3.
Package cn.nukkit.blockentity in project Nukkit.
-
Field Summary
Fields inherited from class org.cloudburstmc.server.blockentity.BaseBlockEntity
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing -
Constructor Summary
ConstructorsConstructorDescriptionSkullBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position) -
Method Summary
Modifier and TypeMethodDescriptionintfloatintbooleanbooleanbooleanisValid()voidloadAdditionalData(com.nukkitx.nbt.NbtMap tag)voidsaveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)voidsetMouthMoving(boolean mouthMoving)voidsetMouthTickCount(int mouthTickCount)voidsetRotation(float rotation)voidsetSkullType(int skullType)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
-
SkullBlockEntity
public SkullBlockEntity(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
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Specified by:
isValidin classBaseBlockEntity
-
getRotation
public float getRotation()- Specified by:
getRotationin interfaceorg.cloudburstmc.api.blockentity.Skull
-
setRotation
public void setRotation(float rotation)- Specified by:
setRotationin interfaceorg.cloudburstmc.api.blockentity.Skull
-
getMouthTickCount
public int getMouthTickCount() -
setMouthTickCount
public void setMouthTickCount(int mouthTickCount) -
isMouthMoving
public boolean isMouthMoving() -
setMouthMoving
public void setMouthMoving(boolean mouthMoving) -
getSkullType
public int getSkullType()- Specified by:
getSkullTypein interfaceorg.cloudburstmc.api.blockentity.Skull
-
setSkullType
public void setSkullType(int skullType)- Specified by:
setSkullTypein interfaceorg.cloudburstmc.api.blockentity.Skull
-
isSpawnable
public boolean isSpawnable()- Specified by:
isSpawnablein interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Overrides:
isSpawnablein classBaseBlockEntity
-