Class MirrorModifier

All Implemented Interfaces:
IAnimation

public class MirrorModifier extends AbstractModifier
  • Field Details

  • 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: IAnimation
      Get the transformed value to a model part, transform type.
      Specified by:
      get3DTransform in interface IAnimation
      Overrides:
      get3DTransform in class AnimationContainer<IAnimation>
      Parameters:
      modelName - The questionable model part
      type - Transform type
      tickDelta - Time since the last tick. 0-1
      value0 - The value before the transform. For identity transform return with it.
      Returns:
      The new transform value
    • get3DTransform

      @NotNull public @NotNull Vec3f get3DTransform(@NotNull @NotNull PartKey partKey, @NotNull @NotNull TransformType type, float tickDelta, @NotNull @NotNull Vec3f value0)
      Description copied from interface: IAnimation
      Get the transformed value to a model part, transform type.

      API note
      DO NOT CALL super.get3DTransform() as the default implementation will be removed.

      Specified by:
      get3DTransform in interface IAnimation
      Overrides:
      get3DTransform in class AnimationContainer<IAnimation>
      Parameters:
      partKey - The questionable model part
      type - Transform type
      tickDelta - Time since the last tick. 0-1
      value0 - The value before the transform. For identity transform return with it.
      Returns:
      The new transform value
    • getFirstPersonConfiguration

      @NotNull public @NotNull FirstPersonConfiguration getFirstPersonConfiguration(float tickDelta)
      Specified by:
      getFirstPersonConfiguration in interface IAnimation
      Overrides:
      getFirstPersonConfiguration in class AnimationContainer<IAnimation>
      Parameters:
      tickDelta -
      Returns:
      current first person configuration, only requested when playing this animation
    • transformVector

      protected Vec3f transformVector(Vec3f value0, TransformType type)