Class GenericParticleData
java.lang.Object
team.lodestar.lodestone.systems.particle.data.GenericParticleData
- Direct Known Subclasses:
SpinParticleData
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGenericParticleData(float startingValue, float middleValue, float endingValue, float coefficient, Easing startToMiddleEasing, Easing middleToEndEasing) -
Method Summary
Modifier and TypeMethodDescriptioncreate(float value) create(float startingValue, float endingValue) create(float startingValue, float middleValue, float endingValue) floatgetProgress(float age, float lifetime) floatgetValue(float age, float lifetime) boolean
-
Field Details
-
startingValue
public final float startingValue -
middleValue
public final float middleValue -
endingValue
public final float endingValue -
coefficient
public final float coefficient -
startToMiddleEasing
-
middleToEndEasing
-
-
Constructor Details
-
GenericParticleData
-
-
Method Details
-
isTrinary
public boolean isTrinary() -
getProgress
public float getProgress(float age, float lifetime) -
getValue
public float getValue(float age, float lifetime) -
create
-
create
public static GenericParticleData.GenericParticleDataBuilder create(float startingValue, float endingValue) -
create
public static GenericParticleData.GenericParticleDataBuilder create(float startingValue, float middleValue, float endingValue)
-