public class SkullEntity extends BlockEntity
block
Constructor and Description |
---|
SkullEntity(GlowBlock block) |
Modifier and Type | Method and Description |
---|---|
GlowPlayerProfile |
getOwner() |
byte |
getRotation() |
GlowBlockState |
getState()
Create a new BlockState which will correspond to this block entity.
|
byte |
getType() |
void |
loadNbt(CompoundTag tag)
Read this BlockEntity's data from the saved tag.
|
void |
saveNbt(CompoundTag tag)
Save this BlockEntity's data to NBT.
|
void |
setOwner(GlowPlayerProfile owner) |
void |
setRotation(byte rotation) |
void |
setType(byte type) |
void |
update(GlowPlayer player)
Update this BlockEntity's visible state to the given player.
|
destroy, getBlock, pulse, setSaveId, updateInRange
public SkullEntity(GlowBlock block)
public void loadNbt(CompoundTag tag)
BlockEntity
loadNbt
in class BlockEntity
tag
- The tag to load from.public void saveNbt(CompoundTag tag)
BlockEntity
saveNbt
in class BlockEntity
tag
- The tag to save to.public GlowBlockState getState()
BlockEntity
getState
in class BlockEntity
public void update(GlowPlayer player)
BlockEntity
update
in class BlockEntity
player
- The player to update.public void setOwner(GlowPlayerProfile owner)
public byte getType()
public void setType(byte type)
public byte getRotation()
public void setRotation(byte rotation)
public GlowPlayerProfile getOwner()
Copyright © 2021. All rights reserved.