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 TypeMethodDescriptionbooleanbooleancontainsKeyframe(KeyframeType<?, ?> type, UUID boneUuid) static SimplePropertycreate(AnimationHandler handler, SavedData data) doubledoubledoubledoubledoubledoubledoublegetModel()getName()@NotNull IAnimationProperty.PhasegetPhase()org.joml.Vector3fgetPositionFrame(ModelBone bone, BlueprintBone blueprintBone) org.joml.Vector3fgetRotationFrame(ModelBone bone, BlueprintBone blueprintBone) org.joml.Vector3fgetScaleFrame(ModelBone bone, BlueprintBone blueprintBone) doublegetSpeed()doublegetTime()org.joml.Vector3fgetVelocityFrame(ModelBone bone, BlueprintBone blueprintBone) inthashCode()booleanbooleanisEnded()booleanbooleanbooleanbooleanbooleanbooleanvoidvoidvoidsetEmptyZero(boolean emptyZero) voidsetForceLoopMode(BlueprintAnimation.LoopMode forceLoopMode) voidsetForceOverride(BlueprintAnimation.OverrideMode forceOverride) voidsetIgnoreDeath(boolean ignoreDeath) voidsetLerpIn(double lerpIn) voidsetLerpInTime(double lerpInTime) voidsetLerpOut(double lerpOut) voidsetLerpOutTime(double lerpOutTime) voidsetMergeLerp(boolean mergeLerp) voidsetOnEndTask(Runnable onEndTask) voidsetPhase(@NotNull IAnimationProperty.Phase phase) voidsetSkipLastFrame(boolean skipLastFrame) voidsetSpeed(double speed) voidstop()toString()booleanupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.ticxo.modelengine.api.animation.property.IAnimationProperty
getBlueprintBone, getPositionFrame, getRotationFrame, getScaleFrame, getVelocityFrame
-
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
-
canReplace
public boolean canReplace()- Specified by:
canReplacein interfaceIAnimationProperty
-
containsKeyframe
- Specified by:
containsKeyframein interfaceIAnimationProperty
-
getPositionFrame
- Specified by:
getPositionFramein interfaceIAnimationProperty
-
getVelocityFrame
- Specified by:
getVelocityFramein 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
-
getName
- Specified by:
getNamein 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
-
getForceOverride
- Specified by:
getForceOverridein interfaceIAnimationProperty
-
isEmptyZero
public boolean isEmptyZero()- Specified by:
isEmptyZeroin interfaceIAnimationProperty
-
isSkipLastFrame
public boolean isSkipLastFrame()- Specified by:
isSkipLastFramein interfaceIAnimationProperty
-
isMergeLerp
public boolean isMergeLerp()- Specified by:
isMergeLerpin interfaceIAnimationProperty
-
isIgnoreDeath
public boolean isIgnoreDeath()- Specified by:
isIgnoreDeathin interfaceIAnimationProperty
-
isStopping
public boolean isStopping() -
isEnded
public boolean isEnded()- Specified by:
isEndedin interfaceIAnimationProperty
-
setLerpIn
public void setLerpIn(double lerpIn) - Specified by:
setLerpInin interfaceIAnimationProperty
-
setLerpOut
public void setLerpOut(double lerpOut) - Specified by:
setLerpOutin 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
- Specified by:
setForceOverridein interfaceIAnimationProperty
-
setEmptyZero
public void setEmptyZero(boolean emptyZero) - Specified by:
setEmptyZeroin interfaceIAnimationProperty
-
setSkipLastFrame
public void setSkipLastFrame(boolean skipLastFrame) - Specified by:
setSkipLastFramein interfaceIAnimationProperty
-
setMergeLerp
public void setMergeLerp(boolean mergeLerp) - Specified by:
setMergeLerpin interfaceIAnimationProperty
-
setIgnoreDeath
public void setIgnoreDeath(boolean ignoreDeath) - Specified by:
setIgnoreDeathin interfaceIAnimationProperty
-
getOnEndTask
-
setOnEndTask
-