File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
src/main/java/dev/wolfieboy09/qstorage/api/registry/gas Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ public class GasBuilder implements GasInfo {
1111 private boolean flammable = false ;
1212 private boolean heavyGas = false ;
1313 private List <MobEffectInstance > effects = new LinkedList <>();
14+ private float range = 3 ;
15+ private float pSpeed = 0.01f ;
16+
1417
1518 public GasBuilder () {}
1619
@@ -39,6 +42,16 @@ public GasBuilder effects(MobEffectInstance ... effects) {
3942 return this ;
4043 }
4144
45+ public GasBuilder range (float range ) {
46+ this .range = range ;
47+ return this ;
48+ }
49+
50+ public GasBuilder particleSpeed (float pSpeed ) {
51+ this .pSpeed = pSpeed ;
52+ return this ;
53+ }
54+
4255 /**
4356 * Creates the {@link Gas} instance.
4457 * @return the {@link Gas} data from the builder.
@@ -71,4 +84,14 @@ public int tint() {
7184 public List <MobEffectInstance > effects () {
7285 return this .effects ;
7386 }
87+
88+ @ Override
89+ public float gasRange () {
90+ return this .range ;
91+ }
92+
93+ @ Override
94+ public float particleSpeed () {
95+ return this .pSpeed ;
96+ }
7497}
Original file line number Diff line number Diff line change @@ -24,4 +24,12 @@ default int tint() {
2424 default List <MobEffectInstance > effects () {
2525 return List .of ();
2626 }
27+
28+ default float gasRange () {
29+ return 3.0f ;
30+ }
31+
32+ default float particleSpeed () {
33+ return 0.01f ;
34+ }
2735}
You can’t perform that action at this time.
0 commit comments