Package-level declarations

Player-screen effects: EffectiveScreenEffects (full-screen fade with a mid-fade callback, camera shake with easing), EffectiveScreenImage and EffectiveScreenText (an image or text at any screen position via the pack's text core shader).

Types

Link copied to clipboard

Client-side screen effects: full-screen camera fades and camera shake.

Link copied to clipboard
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.

Link copied to clipboard

Base class for an image shown on a player's screen. ⚠️ Experimental. The core-shader technique, this API and its behaviour may change; not guaranteed across clients or with shader packs. Registers itself on construction under getNamespacedName (<plugin>:<name>) and refuses duplicates; its PNG is added to the plugin's generated pack as a font glyph (glyph).

Link copied to clipboard

Plain white text placed anywhere on a player's screen ⚠️ Experimental. See EffectiveScreenImage — same caveats. (see EffectiveScreenElement). The shader shifts the whole string, keeping its layout, so that its centre lands at x/y. scale multiplies the size the text would have in its transport (a title is 4× GUI text), quantized to 1/8 in 0.125..4.0. Blue 128..159 is reserved. Text is always white and unshadowed.