HudComponentFactory

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class JsonHudComponentFactory(val name: String, val enabled: Boolean, val singleton: Boolean, alignment: JsonObject, tweaks: Array<HudComponentTweak>?, values: Array<JsonObject>?) : HudComponentFactory

Factory for creating components from JSON deserialization.

Link copied to clipboard
class NativeHudComponentFactory(val name: String, val enabled: Boolean = false, val singleton: Boolean = false, function: () -> HudComponent) : HudComponentFactory

Factory for creating native components from a function.

Properties

Link copied to clipboard
abstract val enabled: Boolean
Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val singleton: Boolean

Functions

Link copied to clipboard

Creates the component instance.