ModelScaler

interface ModelScaler

Model scaler

Inheritors

Types

Link copied to clipboard
interface Builder
Builder
Link copied to clipboard
interface BuiltInDeserializer : Function<JsonElement, ModelScaler>
Build-in deserializer
Link copied to clipboard
Composited scaler
Link copied to clipboard
Deserializer
Link copied to clipboard
interface Getter
Getter

Properties

Link copied to clipboard

Functions

Link copied to clipboard
@NotNull
open fun composite(@NotNull scaler: @NotNull ModelScaler): @NotNull ModelScaler
Composites this scaler to another one (a * b)
@NotNull
open fun composite(@NotNull scalers: Array<@NotNull ModelScaler>): @NotNull ModelScaler
Gets the composited scaler (a * b)
Link copied to clipboard
@Nullable
abstract fun data(): @Nullable JsonElement
Gets the data of this scaler
Link copied to clipboard
@NotNull
open fun defaultScaler(): @NotNull ModelScaler
Gets the default scaler (1.
Link copied to clipboard
@NotNull
open fun deserialize(@NotNull element: @NotNull JsonObject): @NotNull ModelScaler
Deserializes scaler from JSON
Link copied to clipboard
@NotNull
open fun entity(): @NotNull ModelScaler
Gets the entity's attribute scaler
Link copied to clipboard
@NotNull
open fun multiply(value: Float): @NotNull ModelScaler
Multiplies this scaler
Link copied to clipboard
@NotNull
abstract fun name(): @NotNull String
Gets this scaler's name
Link copied to clipboard
abstract fun scale(@NotNull tracker: @NotNull Tracker): Float
Gets the scale of this tracker
Link copied to clipboard
@NotNull
open fun serialize(): @NotNull JsonObject
Serializes this scaler to JSON
Link copied to clipboard
@NotNull
open fun value(value: Float): @NotNull ModelScaler
Gets the constant scaler (value)