Optional
_options: JSONLikeObjectReadonly
identifierThe identifier of the trait.
Static
Readonly
identifierThe identifier of the trait.
Static
Readonly
typesThe type identifiers that this trait is compatible with by default.
Optional
onCalled when the trait is added to an object.
Optional
onCalled when the trait is random ticked by the dimension.
Optional
onCalled when the trait is removed from an object.
Optional
onCalled when the trait is ticked by the dimension.
The details about the tick event.
Sets the probability of this trait being randomly ticked each tick.
The numerator of the probability fraction.
The denominator of the probability fraction.
Wether this trait should be randomly ticked this tick.
A factor to multiply the chance by. Default is 1.
True if the trait should be randomly ticked, false otherwise.
Creates a new instance of the trait.