Sign

interface Sign : BlockEntity

A sign.

Functions

Link copied to clipboard
abstract fun getLine(index: Int): Component

Gets the line of text on this sign at the given index.

Link copied to clipboard
abstract fun setLine(index: Int, line: Component)

Sets the line of text on this sign at the given index to the given line.

Properties

Link copied to clipboard
abstract val block: Block

The block that this entity is bound to.

Link copied to clipboard
abstract var color: DyeColor

The colour that this sign is dyed.

Link copied to clipboard
abstract var isEditable: Boolean

Whether this sign is editable.

Link copied to clipboard
abstract var isTextGlowing: Boolean

Whether this sign has text that is glowing.

Link copied to clipboard
abstract val lines: Collection<Component>

The lines of text on this sign.

Link copied to clipboard
abstract val position: Vec3i

The position of this block entity.

Link copied to clipboard
abstract val type: BlockEntityType<*>

The type of this block entity.

Link copied to clipboard
abstract val world: World

The world this block entity is in.