Package kr.toxicity.model.api.tracker
Interface ModelRotator
- All Superinterfaces:
BiFunction<Tracker,ModelRotation, ModelRotation>
- All Known Implementing Classes:
ModelRotator.SourcedRotator
public sealed interface ModelRotator
extends BiFunction<Tracker,ModelRotation,ModelRotation>
permits ModelRotator.SourcedRotator (not exhaustive)
Model rotator
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic final classstatic interfacestatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModelRotatorDefault rotatorstatic final ModelRotator.Deserializerstatic final ModelRotatorEmpty rotatorstatic final ModelRotatorPitch rotatorstatic final ModelRotatorYaw rotator -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull ModelRotation@NotNull ModelRotationapply(@NotNull Tracker tracker, @NotNull ModelRotation rotation) @Nullable com.google.gson.JsonElementdata()static @NotNull ModelRotatordeserialize(@NotNull com.google.gson.JsonObject object) static @NotNull ModelRotatorlazy(long mills) @NotNull Stringname()default @NotNull ModelRotatorroot()default @NotNull com.google.gson.JsonObject@Nullable ModelRotatorsource()default @NotNull ModelRotatorthen(@NotNull ModelRotator rotator) Methods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
DESERIALIZER
-
DEFAULT
Default rotator -
EMPTY
Empty rotator -
PITCH
Pitch rotator -
YAW
Yaw rotator
-
-
Method Details
-
deserialize
@NotNull static @NotNull ModelRotator deserialize(@NotNull @NotNull com.google.gson.JsonObject object) -
lazy
-
name
-
source
-
data
@Nullable @Nullable com.google.gson.JsonElement data() -
root
-
serialize
@NotNull default @NotNull com.google.gson.JsonObject serialize() -
apply
-
apply
@NotNull @NotNull ModelRotation apply(@NotNull @NotNull Tracker tracker, @NotNull @NotNull ModelRotation rotation) - Specified by:
applyin interfaceBiFunction<Tracker,ModelRotation, ModelRotation>
-
then
-