Give each particle set a unique id for the db

This commit is contained in:
2022-01-13 20:10:56 +01:00
parent d424e7d768
commit 2fe8b0d367
3 changed files with 33 additions and 7 deletions
@@ -13,17 +13,19 @@ public class ParticleSet {
private final List<Frame> frames;
private final int delay, repeat;
private final APartType particlesType;
private final APartType aPartType;
private final String uniqueId;
private int ticksUntilNextFrame;
private final boolean shouldRepeat;
private final String permission;
private final ItemStack itemStack;
private int ticksUntilNextFrame;
public ParticleSet(List<Frame> frames, int delay, int repeat, APartType particlesType, String permission, ItemStack itemStack) {
public ParticleSet(List<Frame> frames, int delay, int repeat, APartType aPartType, String uniqueId, String permission, ItemStack itemStack) {
this.frames = frames;
this.delay = delay;
this.repeat = repeat;
this.particlesType = particlesType;
this.aPartType = aPartType;
this.uniqueId = uniqueId;
this.shouldRepeat = repeat < 0;
this.permission = permission;
this.itemStack = itemStack;
@@ -40,6 +42,10 @@ public class ParticleSet {
frameSpawnerPlayer.runTaskTimerAsynchronously(AltitudeParticles.getInstance(), 0, delay);
}
public APartType getAPartType() {
return aPartType;
}
public String getPermission() {
return permission;
}