mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-08-10 22:35:34 +00:00
Add initial settings files for particle styles
This commit is contained in:
parent
f7b4a38b68
commit
950a39f6d6
43 changed files with 660 additions and 451 deletions
|
@ -1,5 +1,6 @@
|
|||
package dev.esophose.playerparticles.styles;
|
||||
|
||||
import dev.esophose.playerparticles.config.CommentedFileConfiguration;
|
||||
import dev.esophose.playerparticles.particles.PParticle;
|
||||
import dev.esophose.playerparticles.particles.ParticleEffect;
|
||||
import dev.esophose.playerparticles.particles.ParticlePair;
|
||||
|
@ -7,7 +8,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
import org.bukkit.Location;
|
||||
|
||||
public class ParticleStyleInvocation implements ParticleStyle {
|
||||
public class ParticleStyleInvocation extends DefaultParticleStyle {
|
||||
|
||||
private int points = 6;
|
||||
private double radius = 3.5;
|
||||
|
@ -15,6 +16,10 @@ public class ParticleStyleInvocation implements ParticleStyle {
|
|||
private int circleStep = 0;
|
||||
private int numSteps = 120;
|
||||
|
||||
public ParticleStyleInvocation() {
|
||||
super("invocation", true, true, 0.5);
|
||||
}
|
||||
|
||||
public List<PParticle> getParticles(ParticlePair particle, Location location) {
|
||||
List<PParticle> particles = new ArrayList<>();
|
||||
double speed = getSpeedByEffect(particle.getEffect());
|
||||
|
@ -88,20 +93,14 @@ public class ParticleStyleInvocation implements ParticleStyle {
|
|||
circleStep = (circleStep + 1) % numSteps;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return "invocation";
|
||||
@Override
|
||||
protected void setDefaultSettings(CommentedFileConfiguration config) {
|
||||
|
||||
}
|
||||
|
||||
public boolean canBeFixed() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean canToggleWithMovement() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public double getFixedEffectOffset() {
|
||||
return 0.5;
|
||||
@Override
|
||||
protected void loadSettings(CommentedFileConfiguration config) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue