EffectiveScreenElement

abstract class EffectiveScreenElement

Base for things drawn on a player's screen ⚠️ Experimental. The core-shader technique and this API may change. through the framework's text.vsh core shader: the element's text color carries its placement (R = x, G = y, B = marker | 5-bit step), which the shader decodes. Subclasses pick the marker and the meaning of the step (see EffectiveScreenImage, EffectiveScreenText). Coordinates are screen fractions 0.0..1.0, top-left origin.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun hide(player: Player)

Hides whatever this element showed via a title.

Link copied to clipboard
open fun isPersistent(player: Player): Boolean

Whether the element stays on player's screen permanently (re-shown automatically on join/respawn/world change).