Fix api compile

This commit is contained in:
Jason Penilla 2024-04-23 14:47:29 -07:00
parent f2350fe0d1
commit 5cfd92b240
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8
3 changed files with 8 additions and 12 deletions

View file

@ -10,7 +10,7 @@ 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
new file mode 100644
index 0000000000000000000000000000000000000000..507343f971fd42eada8ce3346b025daa9aadb7a2
index 0000000000000000000000000000000000000000..e63aabacac12a153ee8f413b529629192cea6900
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/ParticleBuilder.java
@@ -0,0 +1,579 @@
@ -473,7 +473,7 @@ index 0000000000000000000000000000000000000000..507343f971fd42eada8ce3346b025daa
+ */
+ @NotNull
+ public ParticleBuilder color(@Nullable Color color, float size) {
+ if (particle != Particle.REDSTONE && color != null) {
+ if (particle != Particle.DUST && color != null) {
+ throw new IllegalStateException("Color may only be set on REDSTONE");
+ }
+