public class SkullBlock extends BaseBlock implements TileEntityBlock
| Constructor and Description |
|---|
SkullBlock(int data)
Construct the skull block with a default type of skelton.
|
SkullBlock(int data,
byte type)
Construct the skull block with a given type.
|
SkullBlock(int data,
byte type,
byte rot)
Construct the skull block with a given type and rotation.
|
SkullBlock(int data,
byte rot,
String owner)
Construct the skull block with a given rotation and owner.
|
| Modifier and Type | Method and Description |
|---|---|
CompoundTag |
getNbtData()
Get the object's NBT data (tile entity data).
|
String |
getNbtId()
Return the name of the title entity ID.
|
String |
getOwner()
Get the skull's owner.
|
byte |
getRot()
Get rotation of skull.
|
byte |
getSkullType()
Get the type of skull.
|
boolean |
hasNbtData()
Returns whether the block contains NBT data.
|
void |
setNbtData(CompoundTag rootTag)
Set the object's NBT data (tile entity data).
|
void |
setOwner(String owner)
Set the skull's owner.
|
void |
setRot(byte rot)
Set the rotation of skull.
|
void |
setSkullType(byte skullType)
Set the type of skull;
|
containsFuzzy, cycleData, equals, equalsFuzzy, flip, flip, getData, getId, getType, hashCode, hasWildcardData, inIterable, internalSetData, internalSetId, isAir, rotate90, rotate90Reverse, setData, setId, setIdAndData, setType, toStringpublic SkullBlock(int data)
data - data value to set, controls placementpublic SkullBlock(int data,
byte type)
data - data value to set, controls placementtype - type of skullpublic SkullBlock(int data,
byte type,
byte rot)
data - data value to set, controls placementtype - type of skullrot - rotation (if on floor)public SkullBlock(int data,
byte rot,
String owner)
data - data value to set, controls placementrot - rotation of skullowner - name of playerpublic void setOwner(String owner)
owner - player name to set the skull topublic String getOwner()
public byte getSkullType()
public void setSkullType(byte skullType)
skullType - the skullType to setpublic byte getRot()
public void setRot(byte rot)
rot - the rotation to setpublic boolean hasNbtData()
NbtValuedNbtValued.getNbtData()
must not return null if this method returns true.hasNbtData in interface NbtValuedhasNbtData in class BaseBlockpublic String getNbtId()
TileEntityBlockgetNbtId in interface TileEntityBlockgetNbtId in class BaseBlockpublic CompoundTag getNbtData()
NbtValuedNbtValued.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.
getNbtData in interface NbtValuedgetNbtData in class BaseBlockpublic void setNbtData(CompoundTag rootTag)
NbtValuedsetNbtData in interface NbtValuedsetNbtData in class BaseBlockrootTag - NBT data, or null if no dataCopyright © 2010-2014. All Rights Reserved.