public class SignBlock extends BaseBlock implements TileEntityBlock
| Constructor and Description |
|---|
SignBlock(int type,
int data)
Construct the sign without text.
|
SignBlock(int type,
int data,
String[] text)
Construct the sign with text.
|
| 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[] |
getText()
Get the text.
|
boolean |
hasNbtData()
Returns whether the block contains NBT data.
|
void |
setNbtData(CompoundTag rootTag)
Set the object's NBT data (tile entity data).
|
void |
setText(String[] text)
Set the text.
|
containsFuzzy, cycleData, equals, equalsFuzzy, flip, flip, getType, inIterable, isAir, rotate90, rotate90Reverse, setTypegetData, getId, hashCode, hasWildcardData, setData, setId, setIdAndData, toStringpublic SignBlock(int type,
int data)
type - type IDdata - data value (orientation)public SignBlock(int type,
int data,
String[] text)
type - type IDdata - data value (orientation)text - lines of textpublic String[] getText()
public void setText(String[] text)
text - the text to setpublic boolean hasNbtData()
NbtValuedNbtValued.getNbtData() must not return
null if this method returns true.hasNbtData in interface NbtValuedhasNbtData in class Blockpublic String getNbtId()
TileEntityBlockgetNbtId in interface TileEntityBlockgetNbtId in class Blockpublic 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 Blockpublic void setNbtData(CompoundTag rootTag) throws DataException
NbtValuedsetNbtData in interface NbtValuedsetNbtData in class BlockrootTag - NBT data, or null if no dataDataException - if possibly the data is invalidCopyright © 2010-2014. All Rights Reserved.