Class AnimatedFloatProperty

java.lang.Object
dev.prozilla.pine.common.property.animated.AnimatedProperty<Float>
dev.prozilla.pine.common.property.animated.AnimatedFloatProperty
All Implemented Interfaces:
Updatable, AnimatedPropertyBase<Float>, FloatProperty, NonNullProperty<Float>, Property<Float>, Functor<Float>
Direct Known Subclasses:
TransitionedFloatProperty

public class AnimatedFloatProperty extends AnimatedProperty<Float> implements FloatProperty
  • Field Details

    • start

      protected float start
    • end

      protected float end
  • Constructor Details

    • AnimatedFloatProperty

      public AnimatedFloatProperty(float start, float end, AnimationCurve curve)
  • Method Details

    • getRestarted

      public float getRestarted()
      Restarts the animation and returns the current value.
    • getUpdated

      public float getUpdated(float deltaTime)
      Updates the animation and returns the current value.
      Parameters:
      deltaTime - Delta time in seconds.
    • get

      public float get()
      Description copied from interface: FloatProperty
      Returns the primitive value of this property.
      Specified by:
      get in interface FloatProperty
      Returns:
      The primitive value of this property.