Interface Sign
- All Superinterfaces:
BlockEntity
,CopyableDataHolder
,DataHolder
,DataHolder.Mutable
,DataSerializable
,Locatable
,Nameable
,SerializableDataHolder
,SerializableDataHolder.Mutable
,ValueContainer
Represents a sign.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolder
DataHolder.Immutable<I extends DataHolder.Immutable<I>>, DataHolder.Mutable
Nested classes/interfaces inherited from interface org.spongepowered.api.data.SerializableDataHolder
SerializableDataHolder.Immutable<I extends SerializableDataHolder.Immutable<I>>, SerializableDataHolder.Mutable
-
Method Summary
Modifier and TypeMethodDescriptiondefault Sign.SignText
backText()
Gets the back sideSign.SignText
default Sign.SignText
Gets the front sideSign.SignText
default Value.Mutable
<Boolean> Gets whether the front sideSign.SignText
hasglowing text
default ListValue.Mutable
<Component> lines()
default Value.Mutable
<Boolean> waxed()
Gets whether this sign is waxed.Methods inherited from interface org.spongepowered.api.block.entity.BlockEntity
block, copy, createArchetype, isRemoved, locatableBlock, mirror, mirror, remove, rotate, rotate, type
Methods inherited from interface org.spongepowered.api.data.DataHolder.Mutable
copyFrom, copyFrom, offer, offer, offer, offer, offerAll, offerAll, offerAll, offerAll, offerAll, offerAll, offerSingle, offerSingle, offerSingle, offerSingle, remove, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeKey, removeKey, removeSingle, removeSingle, transform, transform, tryOffer, tryOffer, tryOffer, undo
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
Methods inherited from interface org.spongepowered.api.world.Locatable
blockPosition, location, serverLocation, world
Methods inherited from interface org.spongepowered.api.data.SerializableDataHolder
validateRawData
Methods inherited from interface org.spongepowered.api.data.SerializableDataHolder.Mutable
setRawData
-
Method Details
-
lines
- Returns:
- The list of text lines
-
glowingText
Gets whether the front sideSign.SignText
hasglowing text
- Returns:
- Whether this sign has glowing text
-
waxed
Gets whether this sign is waxed.- Returns:
- true when this sign is waxed.
-
backText
Gets the back sideSign.SignText
- Returns:
- the back side sign-text
-
frontText
Gets the front sideSign.SignText
- Returns:
- the back side sign-text
-