mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-08-06 20:42:56 +00:00
Locale refactoring
This commit is contained in:
parent
ea4c8e293c
commit
ad4b8a9def
109 changed files with 1266 additions and 3384 deletions
|
@ -1,14 +1,11 @@
|
|||
package dev.esophose.playerparticles.styles;
|
||||
|
||||
import dev.esophose.playerparticles.particles.ParticlePair;
|
||||
import dev.esophose.playerparticles.particles.PParticle;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import dev.esophose.playerparticles.styles.api.PParticle;
|
||||
import org.bukkit.Location;
|
||||
|
||||
import dev.esophose.playerparticles.particles.ParticlePair;
|
||||
import dev.esophose.playerparticles.styles.api.ParticleStyle;
|
||||
|
||||
public class ParticleStyleQuadhelix implements ParticleStyle {
|
||||
|
||||
private static double[] cos, sin;
|
||||
|
@ -32,7 +29,7 @@ public class ParticleStyleQuadhelix implements ParticleStyle {
|
|||
}
|
||||
|
||||
public List<PParticle> getParticles(ParticlePair particle, Location location) {
|
||||
List<PParticle> particles = new ArrayList<PParticle>();
|
||||
List<PParticle> particles = new ArrayList<>();
|
||||
for (int i = 0; i < orbs; i++) {
|
||||
int step = (stepX + (maxStepX / orbs) * i) % maxStepX;
|
||||
double dx = cos[step] * ((60 - Math.abs(stepY)) / (double)maxStepY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue