use of org.terasology.particles.components.affectors.VelocityAffectorComponent in project Terasology by MovingBlocks.
the class ParticleUpdaterImplTest method getTestGeneratorsAndAffectors.
private Iterator<Component> getTestGeneratorsAndAffectors() {
Collection<Component> components = new LinkedList<>();
components.add(new EnergyRangeGeneratorComponent(0.5f, 1f));
components.add(new VelocityAffectorComponent());
EnergyRangeGeneratorFunction energyRangeGeneratorFunction = new EnergyRangeGeneratorFunction();
registeredGeneratorFunctions.put(((GeneratorFunction) energyRangeGeneratorFunction).getComponentClass(), energyRangeGeneratorFunction);
VelocityAffectorFunction velocityAffectorFunction = new VelocityAffectorFunction();
registeredAffectorFunctions.put(((AffectorFunction) velocityAffectorFunction).getComponentClass(), velocityAffectorFunction);
return components.iterator();
}
Aggregations