Class MirrorModifier
java.lang.Object
dev.kosmx.playerAnim.api.layered.AnimationContainer<IAnimation>
dev.kosmx.playerAnim.api.layered.modifier.AbstractModifier
dev.kosmx.playerAnim.api.layered.modifier.MirrorModifier
- All Implemented Interfaces:
IAnimation
-
Field Summary
FieldsFields inherited from class dev.kosmx.playerAnim.api.layered.modifier.AbstractModifier
hostFields inherited from class dev.kosmx.playerAnim.api.layered.AnimationContainer
anim -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Vec3fget3DTransform(@NotNull String modelName, @NotNull TransformType type, float tickDelta, @NotNull Vec3f value0) Get the transformed value to a model part, transform type.@NotNull FirstPersonConfigurationgetFirstPersonConfiguration(float tickDelta) protected Vec3ftransformVector(Vec3f value0, TransformType type) Methods inherited from class dev.kosmx.playerAnim.api.layered.modifier.AbstractModifier
canRemoveMethods inherited from class dev.kosmx.playerAnim.api.layered.AnimationContainer
getAnim, getFirstPersonMode, isActive, setAnim, setupAnim, tick
-
Field Details
-
mirrorMap
-
-
Constructor Details
-
MirrorModifier
public MirrorModifier()
-
-
Method Details
-
get3DTransform
@NotNull public @NotNull Vec3f get3DTransform(@NotNull @NotNull String modelName, @NotNull @NotNull TransformType type, float tickDelta, @NotNull @NotNull Vec3f value0) Description copied from interface:IAnimationGet the transformed value to a model part, transform type.- Specified by:
get3DTransformin interfaceIAnimation- Overrides:
get3DTransformin classAnimationContainer<IAnimation>- Parameters:
modelName- The questionable model parttype- Transform typetickDelta- Time since the last tick. 0-1value0- The value before the transform. For identity transform return with it.- Returns:
- The new transform value
-
getFirstPersonConfiguration
- Specified by:
getFirstPersonConfigurationin interfaceIAnimation- Overrides:
getFirstPersonConfigurationin classAnimationContainer<IAnimation>- Parameters:
tickDelta-- Returns:
- current first person configuration, only requested when playing this animation
-
transformVector
-