Class ParticleRenderer
java.lang.Object
dev.prozilla.pine.core.component.Component
dev.prozilla.pine.core.component.particle.ParticleRenderer
- All Implemented Interfaces:
Lifecycle
,Printable
,ApplicationContext
,ApplicationProvider
,ComponentsContext
,ComponentsProvider
,EntityContext
,EntityProvider
,SceneContext
,SceneProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
boolean
Whether to animate the sprite of this particle depending on its remaining lifetime.static final boolean
boolean
static final int
static final int
int
Amount of frames in the texture of this particle.int
Initial frame of the sprite of this particle.float
float
Remaining life of this particle, in seconds.Current velocity vector. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.prozilla.pine.core.component.Component
equals, getApplication, getEntity, getName, getScene, hashCode, setActive, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.prozilla.pine.core.ApplicationProvider
getConfig, getInput, getLogger, getModManager, getRenderer, getTimer, getTracker, getWindow
Methods inherited from interface dev.prozilla.pine.core.component.ComponentsProvider
getComponent, getComponentInParent, getComponentInParent, getComponents, getComponentsInChildren
Methods inherited from interface dev.prozilla.pine.core.entity.EntityContext
isDescendantOf
Methods inherited from interface dev.prozilla.pine.core.entity.EntityProvider
getChildWithTag, getFirstChild, getLastChild, getParentWithTag, getTransform, isDescendantOf
Methods inherited from interface dev.prozilla.pine.common.Lifecycle
destroy, init, init, input, input, render, render, start, update, update
Methods inherited from interface dev.prozilla.pine.core.scene.SceneProvider
getCameraData, getWorld
-
Field Details
-
initialLifetime
public float initialLifetime -
lifetime
public float lifetimeRemaining life of this particle, in seconds. -
velocity
Current velocity vector. -
applyTimeScale
public boolean applyTimeScale -
frameCount
public int frameCountAmount of frames in the texture of this particle. -
animateSprite
public boolean animateSpriteWhether to animate the sprite of this particle depending on its remaining lifetime. -
initialFrame
public int initialFrameInitial frame of the sprite of this particle. -
scaleAnimation
-
colorAnimation
-
DEFAULT_FRAME_COUNT
public static final int DEFAULT_FRAME_COUNT- See Also:
-
ANIMATE_SPRITE_DEFAULT
public static final boolean ANIMATE_SPRITE_DEFAULT- See Also:
-
DEFAULT_INITIAL_FRAME
public static final int DEFAULT_INITIAL_FRAME- See Also:
-
APPLY_TIME_SCALE_DEFAULT
public static final boolean APPLY_TIME_SCALE_DEFAULT- See Also:
-
-
Constructor Details
-
ParticleRenderer
public ParticleRenderer(float lifetime)
-
-
Method Details
-
setLifetime
public void setLifetime(float lifetime) -
kill
public void kill()
-