Package org.bukkit.block
Interface Sign
- All Superinterfaces:
BlockState
,Colorable
,Metadatable
,PersistentDataHolder
,TileState
- All Known Subinterfaces:
HangingSign
Represents a captured state of either a SignPost or a WallSign.
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Deprecated.A sign may have multiple writable sides now.getLine
(int index) Deprecated.A sign may have multiple writable sides now.String[]
getLines()
Deprecated.A sign may have multiple writable sides now.Return the side of the sign.boolean
Deprecated.useisWaxed()
insteadboolean
Deprecated.A sign may have multiple writable sides now.boolean
isWaxed()
Gets whether or not this sign has been waxed.void
Deprecated.A sign may have multiple writable sides now.void
setEditable
(boolean editable) Deprecated.usesetWaxed(boolean)
insteadvoid
setGlowingText
(boolean glowing) Deprecated.A sign may have multiple writable sides now.void
Deprecated.A sign may have multiple writable sides now.void
setWaxed
(boolean waxed) Sets whether or not this sign has been waxed.Methods inherited from interface org.bukkit.block.BlockState
copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer
-
Method Details
-
getLines
Deprecated.A sign may have multiple writable sides now. UsegetSide(Side)
andSignSide.getLines()
.Gets all the lines of text currently on theSide.FRONT
of this sign.- Returns:
- Array of Strings containing each line of text
-
getLine
Deprecated.A sign may have multiple writable sides now. UsegetSide(Side)
andSignSide.getLine(int)
.Gets the line of text at the specified index.For example, getLine(0) will return the first line of text on the
Side.FRONT
.- Parameters:
index
- Line number to get the text from, starting at 0- Returns:
- Text on the given line
- Throws:
IndexOutOfBoundsException
- Thrown when the line does not exist
-
setLine
Deprecated.A sign may have multiple writable sides now. UsegetSide(Side)
andSignSide.setLine(int, String)
.Sets the line of text at the specified index.For example, setLine(0, "Line One") will set the first line of text to "Line One".
- Parameters:
index
- Line number to set the text at, starting from 0line
- New text to set at the specified index- Throws:
IndexOutOfBoundsException
- If the index is out of the range 0..3
-
isEditable
Deprecated.useisWaxed()
insteadMarks whether this sign can be edited by players.- Returns:
- if this sign is currently editable
-
setEditable
Deprecated.usesetWaxed(boolean)
insteadMarks whether this sign can be edited by players.- Parameters:
editable
- if this sign is currently editable
-
isWaxed
boolean isWaxed()Gets whether or not this sign has been waxed. If a sign has been waxed, it cannot be edited by a player.- Returns:
- if this sign is waxed
-
setWaxed
void setWaxed(boolean waxed) Sets whether or not this sign has been waxed. If a sign has been waxed, it cannot be edited by a player.- Parameters:
waxed
- if this sign is waxed
-
isGlowingText
Deprecated.A sign may have multiple writable sides now. UsegetSide(Side)
andSignSide.isGlowingText()
.Gets whether this sign has glowing text. Only affects theSide.FRONT
.- Returns:
- if this sign has glowing text
-
setGlowingText
Deprecated.A sign may have multiple writable sides now. UsegetSide(Side)
andSignSide.setGlowingText(boolean)
.Sets whether this sign has glowing text. Only affects theSide.FRONT
.- Parameters:
glowing
- if this sign has glowing text
-
getColor
Deprecated.A sign may have multiple writable sides now. UsegetSide(Side)
andColorable.getColor()
.Gets the color of this object.
This may be null to represent the default color of an object, if the object has a special default color (e.g Shulkers). -
setColor
Deprecated.A sign may have multiple writable sides now. UsegetSide(Side)
andColorable.setColor(org.bukkit.DyeColor)
.Sets the color of this object to the specified DyeColor.
This may be null to represent the default color of an object, if the object has a special default color (e.g Shulkers). -
getSide
Return the side of the sign.- Parameters:
side
- the side of the sign- Returns:
- the selected side of the sign
-