Class ParticleFlowEmitter
java.lang.Object
dev.prozilla.pine.core.component.Component
dev.prozilla.pine.core.component.particle.ParticleEmitter
dev.prozilla.pine.core.component.particle.ParticleFlowEmitter
- All Implemented Interfaces:
Lifecycle
,Printable
,ApplicationContext
,ApplicationProvider
,ComponentsContext
,ComponentsProvider
,EntityContext
,EntityProvider
,SceneContext
,SceneProvider
Continuously spawns particles
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
boolean
static final VariableProperty
<Float> boolean
float
Fields inherited from class dev.prozilla.pine.core.component.particle.ParticleEmitter
count, DEFAULT_COUNT, particlePrefab
-
Constructor Summary
ConstructorsConstructorDescriptionParticleFlowEmitter
(ParticlePrefab particlePrefab) ParticleFlowEmitter
(ParticlePrefab particlePrefab, VariableProperty<Float> spawnDelay) ParticleFlowEmitter
(ParticlePrefab particlePrefab, VariableProperty<Float> spawnDelay, VariableProperty<Integer> count) -
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, update, update
Methods inherited from interface dev.prozilla.pine.core.scene.SceneProvider
getCameraData, getWorld
-
Field Details
-
spawnDelay
-
timeUntilSpawn
public float timeUntilSpawn -
isSpawning
public boolean isSpawning -
origin
-
applyTimeScale
public boolean applyTimeScale -
DEFAULT_SPAWN_DELAY
-
APPLY_TIME_SCALE_DEFAULT
public static final boolean APPLY_TIME_SCALE_DEFAULT- See Also:
-
-
Constructor Details
-
ParticleFlowEmitter
-
ParticleFlowEmitter
-
ParticleFlowEmitter
public ParticleFlowEmitter(ParticlePrefab particlePrefab, VariableProperty<Float> spawnDelay, VariableProperty<Integer> count)
-
-
Method Details
-
start
public void start()Start timer for spawning particles. -
startImmediate
public void startImmediate()Start spawning particles immediately. -
stop
public void stop()Stop spawning particles.
-