@Deprecated public class SkullBlock extends BaseBlock
Constructor and Description |
---|
SkullBlock(BlockState state)
Deprecated.
Construct the skull block with a default type of skelton.
|
SkullBlock(BlockState blockState,
java.lang.String owner)
Deprecated.
Construct the skull block with a given rotation and owner.
|
Modifier and Type | Method and Description |
---|---|
CompoundTag |
getNbtData()
Deprecated.
Get the object's NBT data (tile entity data).
|
java.lang.String |
getNbtId()
Deprecated.
Return the name of the title entity ID.
|
java.lang.String |
getOwner()
Deprecated.
Get the skull's owner.
|
boolean |
hasNbtData()
Deprecated.
Returns whether the block contains NBT data.
|
void |
setNbtData(CompoundTag rootTag)
Deprecated.
Set the object's NBT data (tile entity data).
|
void |
setOwner(java.lang.String owner)
Deprecated.
Set the skull's owner.
|
equals, equalsFuzzy, getBlockType, getNbtReference, getState, getStates, hashCode, setNbtReference, toBaseBlock, toBaseBlock, toImmutableState, toString, with
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
applyBlock, getAsString, toBaseBlock, toBaseBlock
public SkullBlock(BlockState state)
state
- BlockState to setpublic SkullBlock(BlockState blockState, java.lang.String owner)
blockState
- BlockState to setowner
- name of playerpublic void setOwner(java.lang.String owner)
owner
- player name to set the skull topublic java.lang.String getOwner()
public boolean hasNbtData()
NbtValued
NbtValued.getNbtData()
must not return null if this method returns true.public java.lang.String getNbtId()
TileEntityBlock
getNbtId
in interface TileEntityBlock
getNbtId
in class BaseBlock
public CompoundTag getNbtData()
NbtValued
NbtValued.setNbtData(CompoundTag)
so that the instance knows of the changes. Making changes without
calling NbtValued.setNbtData(CompoundTag)
could have unintended
consequences.
NbtValued.hasNbtData()
must return true if and only if method does
not return null.
public void setNbtData(CompoundTag rootTag)
NbtValued
rootTag
- NBT data, or null if no data