Decorated

A Drawable-like interface used to render a icon, alert symbol, or other type of small decoration visual.

This can be used in place of drawable or other rendering interface for a larger rendered area if desirable. It's not hard-locked to being used on small objects, but Fzzy Config treats this interface internally as used on 20x20 and smaller areas.

Author

fzzyhmstrs

Since

0.6.0

Inheritors

Types

Link copied to clipboard
class DecoratedOffset(val decorated: Decorated, val offsetX: Int = 0, val offsetY: Int)

A decorated wrapped with rendering position offsets. This is used in several places for the modder to define positional offsets for rendering their decoration in the proper place

Functions

Link copied to clipboard
abstract fun renderDecoration(context: DrawContext, x: Int, y: Int, delta: Float, enabled: Boolean, selected: Boolean)

Renders the decoration. Notably, this provides active and selected context for rendering different things based on those states.