Class SimpleProperty
java.lang.Object
com.ticxo.modelengine.api.animation.property.SimpleProperty
- All Implemented Interfaces:
IAnimationProperty,DataIO
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ticxo.modelengine.api.animation.property.IAnimationProperty
IAnimationProperty.Phase -
Constructor Summary
ConstructorsConstructorDescriptionSimpleProperty(ActiveModel model, BlueprintAnimation blueprintAnimation) SimpleProperty(ActiveModel model, BlueprintAnimation blueprintAnimation, double lerpIn, double lerpOut, double speed) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKeyframe(KeyframeType<?, ?> type, String bone) static SimplePropertycreate(AnimationHandler handler, SavedData data) doubledoubledoubledoubledoubledoubledoublegetModel()getName()@NotNull IAnimationProperty.PhasegetPhase()org.joml.Vector3fgetPositionFrame(String bone) org.joml.Vector3fgetRotationFrame(String bone) org.joml.Vector3fgetScaleFrame(String bone) doublegetSpeed()doublegetTime()inthashCode()booleanisEnded()booleanbooleanbooleanvoidvoidvoidsetForceLoopMode(BlueprintAnimation.LoopMode forceLoopMode) voidsetForceOverride(boolean forceOverride) voidsetLerpInTime(double lerpInTime) voidsetLerpOutTime(double lerpOutTime) voidsetPhase(@NotNull IAnimationProperty.Phase phase) voidsetSpeed(double speed) voidstop()toString()booleanupdate()
-
Constructor Details
-
SimpleProperty
-
SimpleProperty
public SimpleProperty(ActiveModel model, BlueprintAnimation blueprintAnimation, double lerpIn, double lerpOut, double speed)
-
-
Method Details
-
update
public boolean update()- Specified by:
updatein interfaceIAnimationProperty
-
stop
public void stop()- Specified by:
stopin interfaceIAnimationProperty
-
getName
- Specified by:
getNamein interfaceIAnimationProperty
-
containsKeyframe
- Specified by:
containsKeyframein interfaceIAnimationProperty
-
getPositionFrame
- Specified by:
getPositionFramein interfaceIAnimationProperty
-
getRotationFrame
- Specified by:
getRotationFramein interfaceIAnimationProperty
-
getScaleFrame
- Specified by:
getScaleFramein interfaceIAnimationProperty
-
getScriptFrame
- Specified by:
getScriptFramein interfaceIAnimationProperty
-
getLerpInRatio
public double getLerpInRatio()- Specified by:
getLerpInRatioin interfaceIAnimationProperty
-
getLerpOutRatio
public double getLerpOutRatio()- Specified by:
getLerpOutRatioin interfaceIAnimationProperty
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceIAnimationProperty
-
getLoopMode
- Specified by:
getLoopModein interfaceIAnimationProperty
-
isOverride
public boolean isOverride()- Specified by:
isOverridein interfaceIAnimationProperty
-
hashCode
public int hashCode() -
save
-
load
-
create
-
toString
-
getModel
- Specified by:
getModelin interfaceIAnimationProperty
-
getBlueprintAnimation
- Specified by:
getBlueprintAnimationin interfaceIAnimationProperty
-
getLerpIn
public double getLerpIn()- Specified by:
getLerpInin interfaceIAnimationProperty
-
getLerpOut
public double getLerpOut()- Specified by:
getLerpOutin interfaceIAnimationProperty
-
getLerpInTime
public double getLerpInTime()- Specified by:
getLerpInTimein interfaceIAnimationProperty
-
getLerpOutTime
public double getLerpOutTime()- Specified by:
getLerpOutTimein interfaceIAnimationProperty
-
getLastTime
public double getLastTime()- Specified by:
getLastTimein interfaceIAnimationProperty
-
getTime
public double getTime()- Specified by:
getTimein interfaceIAnimationProperty
-
getSpeed
public double getSpeed()- Specified by:
getSpeedin interfaceIAnimationProperty
-
getPhase
- Specified by:
getPhasein interfaceIAnimationProperty
-
getForceLoopMode
- Specified by:
getForceLoopModein interfaceIAnimationProperty
-
isForceOverride
public boolean isForceOverride()- Specified by:
isForceOverridein interfaceIAnimationProperty
-
isEnded
public boolean isEnded()- Specified by:
isEndedin interfaceIAnimationProperty
-
setLerpInTime
public void setLerpInTime(double lerpInTime) - Specified by:
setLerpInTimein interfaceIAnimationProperty
-
setLerpOutTime
public void setLerpOutTime(double lerpOutTime) - Specified by:
setLerpOutTimein interfaceIAnimationProperty
-
setSpeed
public void setSpeed(double speed) - Specified by:
setSpeedin interfaceIAnimationProperty
-
setPhase
-
setForceLoopMode
- Specified by:
setForceLoopModein interfaceIAnimationProperty
-
setForceOverride
public void setForceOverride(boolean forceOverride) - Specified by:
setForceOverridein interfaceIAnimationProperty
-