of

@NotNull
open fun of(@NotNull rotator: @NotNull ModelRotation): @NotNull ModelRotator.Getter

Creates a constant rotation getter.

Return

the getter

Since

1.15.2

Parameters

rotator

the rotation


@NotNull
open fun of(@NotNull rotator: @NotNull Supplier<ModelRotation>): @NotNull ModelRotator.Getter

Creates a supplier-based rotation getter.

Return

the getter

Since

1.15.2

Parameters

rotator

the supplier


@NotNull
open fun of(@NotNull rotator: @NotNull (ModelRotation) -> ModelRotation): @NotNull ModelRotator.Getter

Creates a function-based rotation getter.

Return

the getter

Since

1.15.2

Parameters

rotator

the function