ModelPlaceholder

Represents animation variable placeholders defined in a model file.

These placeholders allow for defining reusable values or expressions that can be referenced within Molang scripts in animations.

Since

1.15.2

Parameters

variables

a map of placeholder variable names to their string values

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
An empty placeholder instance with no variables.
Link copied to clipboard
val PARSER: JsonDeserializer<ModelPlaceholder>
A JSON deserializer for parsing placeholders from a multi-line string.

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun parseVariable(@NotNull expression: @NotNull String): @NotNull String
Replaces all placeholder variables in a given expression with their corresponding values.
Link copied to clipboard
abstract fun toString(): String