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 TypeMethodDescriptionboolean
containsKeyframe
(KeyframeType<?, ?> type, String bone) static SimpleProperty
create
(AnimationHandler handler, SavedData data) double
double
double
double
double
double
double
getModel()
getName()
@NotNull IAnimationProperty.Phase
getPhase()
org.joml.Vector3f
getPositionFrame
(String bone) org.joml.Vector3f
getRotationFrame
(String bone) org.joml.Vector3f
getScaleFrame
(String bone) double
getSpeed()
double
getTime()
int
hashCode()
boolean
isEnded()
boolean
boolean
boolean
void
void
void
setForceLoopMode
(BlueprintAnimation.LoopMode forceLoopMode) void
setForceOverride
(boolean forceOverride) void
setLerpInTime
(double lerpInTime) void
setLerpOutTime
(double lerpOutTime) void
setPhase
(@NotNull IAnimationProperty.Phase phase) void
setSpeed
(double speed) void
stop()
toString()
boolean
update()
-
Constructor Details
-
SimpleProperty
-
SimpleProperty
public SimpleProperty(ActiveModel model, BlueprintAnimation blueprintAnimation, double lerpIn, double lerpOut, double speed)
-
-
Method Details
-
update
public boolean update()- Specified by:
update
in interfaceIAnimationProperty
-
stop
public void stop()- Specified by:
stop
in interfaceIAnimationProperty
-
getName
- Specified by:
getName
in interfaceIAnimationProperty
-
containsKeyframe
- Specified by:
containsKeyframe
in interfaceIAnimationProperty
-
getPositionFrame
- Specified by:
getPositionFrame
in interfaceIAnimationProperty
-
getRotationFrame
- Specified by:
getRotationFrame
in interfaceIAnimationProperty
-
getScaleFrame
- Specified by:
getScaleFrame
in interfaceIAnimationProperty
-
getScriptFrame
- Specified by:
getScriptFrame
in interfaceIAnimationProperty
-
getLerpInRatio
public double getLerpInRatio()- Specified by:
getLerpInRatio
in interfaceIAnimationProperty
-
getLerpOutRatio
public double getLerpOutRatio()- Specified by:
getLerpOutRatio
in interfaceIAnimationProperty
-
isFinished
public boolean isFinished()- Specified by:
isFinished
in interfaceIAnimationProperty
-
getLoopMode
- Specified by:
getLoopMode
in interfaceIAnimationProperty
-
isOverride
public boolean isOverride()- Specified by:
isOverride
in interfaceIAnimationProperty
-
hashCode
public int hashCode() -
save
-
load
-
create
-
toString
-
getModel
- Specified by:
getModel
in interfaceIAnimationProperty
-
getBlueprintAnimation
- Specified by:
getBlueprintAnimation
in interfaceIAnimationProperty
-
getLerpIn
public double getLerpIn()- Specified by:
getLerpIn
in interfaceIAnimationProperty
-
getLerpOut
public double getLerpOut()- Specified by:
getLerpOut
in interfaceIAnimationProperty
-
getLerpInTime
public double getLerpInTime()- Specified by:
getLerpInTime
in interfaceIAnimationProperty
-
getLerpOutTime
public double getLerpOutTime()- Specified by:
getLerpOutTime
in interfaceIAnimationProperty
-
getLastTime
public double getLastTime()- Specified by:
getLastTime
in interfaceIAnimationProperty
-
getTime
public double getTime()- Specified by:
getTime
in interfaceIAnimationProperty
-
getSpeed
public double getSpeed()- Specified by:
getSpeed
in interfaceIAnimationProperty
-
getPhase
- Specified by:
getPhase
in interfaceIAnimationProperty
-
getForceLoopMode
- Specified by:
getForceLoopMode
in interfaceIAnimationProperty
-
isForceOverride
public boolean isForceOverride()- Specified by:
isForceOverride
in interfaceIAnimationProperty
-
isEnded
public boolean isEnded()- Specified by:
isEnded
in interfaceIAnimationProperty
-
setLerpInTime
public void setLerpInTime(double lerpInTime) - Specified by:
setLerpInTime
in interfaceIAnimationProperty
-
setLerpOutTime
public void setLerpOutTime(double lerpOutTime) - Specified by:
setLerpOutTime
in interfaceIAnimationProperty
-
setSpeed
public void setSpeed(double speed) - Specified by:
setSpeed
in interfaceIAnimationProperty
-
setPhase
-
setForceLoopMode
- Specified by:
setForceLoopMode
in interfaceIAnimationProperty
-
setForceOverride
public void setForceOverride(boolean forceOverride) - Specified by:
setForceOverride
in interfaceIAnimationProperty
-