Interface Sign
- All Superinterfaces:
BlockEntity, CopyableDataHolder, DataHolder, DataHolder.Mutable, DataSerializable, Locatable, Nameable, SerializableDataHolder, SerializableDataHolder.Mutable, ValueContainer
Represents a sign.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface DataHolder
DataHolder.Immutable<I>, DataHolder.MutableNested classes/interfaces inherited from interface SerializableDataHolder
SerializableDataHolder.Immutable<I>, SerializableDataHolder.Mutable -
Method Summary
Modifier and TypeMethodDescriptiondefault Sign.SignTextbackText()Gets the back sideSign.SignTextdefault Sign.SignTextGets the front sideSign.SignTextdefault Value.Mutable<Boolean> Gets whether the front sideSign.SignTexthasglowing textdefault ListValue.Mutable<Component> lines()default Value.Mutable<Boolean> waxed()Gets whether this sign is waxed.Methods inherited from interface BlockEntity
block, canTick, copy, createArchetype, isRemoved, isTicking, locatableBlock, mirror, mirror, remove, rotate, rotate, setTicking, typeMethods inherited from interface 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, undoMethods inherited from interface DataSerializable
contentVersion, toContainer, toViewMethods inherited from interface Locatable
blockPosition, location, serverLocation, worldMethods inherited from interface SerializableDataHolder
validateRawDataMethods inherited from interface SerializableDataHolder.Mutable
setRawDataMethods inherited from interface ValueContainer
get, getDouble, getInt, getKeys, getLong, getOrElse, getOrNull, getValue, getValues, require, requireValue, streamKeys, streamValues, supports, supports
-
Method Details
-
lines
- Returns:
- The list of text lines
-
glowingText
Gets whether the front sideSign.SignTexthasglowing text- Returns:
- Whether this sign has glowing text
-
waxed
Gets whether this sign is waxed.- Returns:
- true when this sign is waxed.
-
backText
-
frontText
Gets the front sideSign.SignText- Returns:
- the back side sign-text
-