Getter

interface Getter

Functional interface for calculating rotation.

Since

1.15.2

Properties

Link copied to clipboard
Default getter returning the input rotation.

Functions

Link copied to clipboard
@NotNull
abstract fun apply(@NotNull tracker: @NotNull Tracker, @NotNull modelRotation: @NotNull ModelRotation): @NotNull ModelRotation
Calculates the rotation.
Link copied to clipboard
@NotNull
open fun of(@NotNull rotator: @NotNull (ModelRotation) -> ModelRotation): @NotNull ModelRotator.Getter
Creates a function-based rotation getter.
@NotNull
open fun of(@NotNull rotator: @NotNull Supplier<ModelRotation>): @NotNull ModelRotator.Getter
Creates a supplier-based rotation getter.
@NotNull
open fun of(@NotNull rotator: @NotNull ModelRotation): @NotNull ModelRotator.Getter
Creates a constant rotation getter.