Add force getter to ParticleBuilder (#6300)
This commit is contained in:
parent
ed1dc272e6
commit
112b6a508a
|
@ -10,10 +10,10 @@ This adds a new Builder API which is much friendlier to use.
|
||||||
|
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/ParticleBuilder.java b/src/main/java/com/destroystokyo/paper/ParticleBuilder.java
|
diff --git a/src/main/java/com/destroystokyo/paper/ParticleBuilder.java b/src/main/java/com/destroystokyo/paper/ParticleBuilder.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..06f1602f5b327705f726d0a99dd6b95e1554d382
|
index 0000000000000000000000000000000000000000..f45b8cfd1611345e8d81ecb8297a586f05eb5dc6
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/ParticleBuilder.java
|
+++ b/src/main/java/com/destroystokyo/paper/ParticleBuilder.java
|
||||||
@@ -0,0 +1,478 @@
|
@@ -0,0 +1,485 @@
|
||||||
+package com.destroystokyo.paper;
|
+package com.destroystokyo.paper;
|
||||||
+
|
+
|
||||||
+import com.google.common.collect.Lists;
|
+import com.google.common.collect.Lists;
|
||||||
|
@ -430,6 +430,13 @@ index 0000000000000000000000000000000000000000..06f1602f5b327705f726d0a99dd6b95e
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ /**
|
+ /**
|
||||||
|
+ * @return whether the particle is forcefully shown to players.
|
||||||
|
+ */
|
||||||
|
+ public boolean force() {
|
||||||
|
+ return force;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ /**
|
||||||
+ * Sets whether the particle is forcefully shown to the player. If forced, the particle will show
|
+ * Sets whether the particle is forcefully shown to the player. If forced, the particle will show
|
||||||
+ * faraway, as far as the player's view distance allows. If false, the particle will show
|
+ * faraway, as far as the player's view distance allows. If false, the particle will show
|
||||||
+ * according to the client's particle settings.
|
+ * according to the client's particle settings.
|
||||||
|
|
Loading…
Reference in New Issue