|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Sign
Represents either a SignPost or a WallSign
| Method Summary | |
|---|---|
String |
getLine(int index)
Gets the line of text at the specified index. |
String[] |
getLines()
Gets all the lines of text currently on this sign. |
void |
setLine(int index,
String line)
Sets the line of text at the specified index. |
| Methods inherited from interface org.bukkit.block.BlockState |
|---|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, setData, setRawData, setType, setTypeId, update, update |
| Methods inherited from interface org.bukkit.metadata.Metadatable |
|---|
getMetadata, hasMetadata, removeMetadata, setMetadata |
| Method Detail |
|---|
String[] getLines()
String getLine(int index)
throws IndexOutOfBoundsException
index - Line number to get the text from, starting at 0
IndexOutOfBoundsException - Thrown when the line does not exist
void setLine(int index,
String line)
throws IndexOutOfBoundsException
index - Line number to set the text at, starting from 0line - New text to set at the specified index
IndexOutOfBoundsException - If the index is out of the range 0..3
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||