-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathInterpolatedParticleInfluencer.java
More file actions
67 lines (58 loc) · 1.79 KB
/
Copy pathInterpolatedParticleInfluencer.java
File metadata and controls
67 lines (58 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package tonegod.emitter.influencers;
import com.jme3.util.SafeArrayList;
import org.jetbrains.annotations.NotNull;
import tonegod.emitter.interpolation.Interpolation;
/**
* The interface for implementing interpolated particle influencers.
*
* @author JavaSaBr
*/
public interface InterpolatedParticleInfluencer<T extends InfluencerData> extends ParticleInfluencer<T> {
/**
* Get the count of interpolation steps.
*
* @return the count of interpolation steps.
*/
int getStepCount();
/**
* Get an interpolation for the step.
*
* @param index the index of the step.
* @return the interpolation for the step.
* @throws RuntimeException if the index is invalid.
*/
@NotNull Interpolation getInterpolation(int index) throws RuntimeException;
/**
* Update a interpolation for the index.
*
* @param interpolation the new interpolation.
* @param index the index.
* @throws RuntimeException if the index is invalid.
*/
void updateInterpolation(@NotNull Interpolation interpolation, int index) throws RuntimeException;
/**
* Get the list of all exists interpolations.
*
* @return the list of interpolations.
*/
@NotNull SafeArrayList<Interpolation> getInterpolations();
/**
* Is cycle boolean.
*
* @return true if using cycle changing.
*/
boolean isCycle();
/**
* Returns the current duration used between frames for cycled animation
*
* @return the fixed duration
*/
float getFixedDuration();
/**
* Animated texture should cycle and use the provided duration between frames (0 diables
* cycling)
*
* @param fixedDuration duration between frame updates
*/
void setFixedDuration(float fixedDuration);
}