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
-
Field Summary
FieldsFields inherited from class dev.prozilla.pine.common.property.animated.AnimatedProperty
curve, time -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatget()Returns the primitive value of this property.floatRestarts the animation and returns the current value.floatgetUpdated(float deltaTime) Updates the animation and returns the current value.Methods inherited from class dev.prozilla.pine.common.property.animated.AnimatedProperty
getCurve, getFactor, hasFinished, restart, setDuration, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.property.animated.AnimatedPropertyBase
getRestartedValue, getUpdatedValueMethods inherited from interface dev.prozilla.pine.common.property.FloatProperty
getValue, getValueOr, has, hasProperty, isZeroProperty, map, replaceNull, requireValueMethods inherited from interface dev.prozilla.pine.common.property.NonNullProperty
isNotNull, isNotNullPropertyMethods inherited from interface dev.prozilla.pine.common.property.Property
hasValue, hasValueProperty, isNull, map, snapshot, toStringProperty
-
Field Details
-
start
protected float start -
end
protected float end
-
-
Constructor Details
-
AnimatedFloatProperty
-
-
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:FloatPropertyReturns the primitive value of this property.- Specified by:
getin interfaceFloatProperty- Returns:
- The primitive value of this property.
-