-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParticleSettings.java
77 lines (69 loc) · 2.5 KB
/
ParticleSettings.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package fi.natroutter.natlibs.objects;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.bukkit.Color;
import org.bukkit.Material;
import org.bukkit.Particle;
import org.bukkit.inventory.ItemStack;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ParticleSettings {
private Particle particle = Particle.FLAME;
private int count = 1;
private double offsetX = 0;
private double offsetY = 0;
private double offsetZ = 0;
private double speed = 0;
private Particle.DustOptions dustOptions = new Particle.DustOptions(Color.fromRGB(255,255,255), 1);
private Particle.DustTransition dustTransition = new Particle.DustTransition(Color.fromRGB(255,255,255), Color.fromRGB(0,0,0), 1);
private ItemStack item = new ItemStack(Material.REDSTONE_BLOCK);
private int note = 6;
private Color spellColor = Color.fromRGB(255,0,0);
public ParticleSettings(Particle particle, int count, double OffsetX, double OffsetY, double OffsetZ, double Speed) {
this.particle = particle;
this.count = count;
this.offsetX = OffsetX;
this.offsetY = OffsetY;
this.offsetZ = OffsetZ;
this.speed = Speed;
}
public ParticleSettings(Particle particle, int count, double OffsetX, double OffsetY, double OffsetZ, double Speed, Particle.DustOptions dustOptions) {
this.particle = particle;
this.count = count;
this.offsetX = OffsetX;
this.offsetY = OffsetY;
this.offsetZ = OffsetZ;
this.speed = Speed;
this.dustOptions = dustOptions;
}
public ParticleSettings(ParticleSettings settings, Particle particle) {
this.particle = particle;
this.count = settings.getCount();
this.offsetX = settings.getOffsetX();
this.offsetY = settings.getOffsetY();
this.offsetZ = settings.getOffsetZ();
this.speed = settings.getSpeed();
this.dustOptions = settings.getDustOptions();
this.dustTransition = settings.getDustTransition();
this.item = settings.getItem();
this.note = settings.getNote();
this.spellColor = settings.getSpellColor();
}
public ParticleSettings(ParticleSettings settings) {
this.particle = settings.getParticle();
this.count = settings.getCount();
this.offsetX = settings.getOffsetX();
this.offsetY = settings.getOffsetY();
this.offsetZ = settings.getOffsetZ();
this.speed = settings.getSpeed();
this.dustOptions = settings.getDustOptions();
this.dustTransition = settings.getDustTransition();
this.item = settings.getItem();
this.note = settings.getNote();
this.spellColor = settings.getSpellColor();
}
}