mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-30 19:40:37 +01:00
remove PotionEffect color API as it was removed upstream
appears that value was never even used anyways
This commit is contained in:
parent
f09645d934
commit
913a75a412
1 changed files with 8 additions and 11 deletions
|
@ -5,7 +5,7 @@ Subject: [PATCH] PotionEffect clone methods
|
|||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/potion/PotionEffect.java b/src/main/java/org/bukkit/potion/PotionEffect.java
|
||||
index 86616f1b8..35984ef6c 100644
|
||||
index 86616f1b8..efb55d29c 100644
|
||||
--- a/src/main/java/org/bukkit/potion/PotionEffect.java
|
||||
+++ b/src/main/java/org/bukkit/potion/PotionEffect.java
|
||||
@@ -0,0 +0,0 @@ public class PotionEffect implements ConfigurationSerializable {
|
||||
|
@ -14,25 +14,22 @@ index 86616f1b8..35984ef6c 100644
|
|||
|
||||
+ // Paper start
|
||||
+ public PotionEffect withType(PotionEffectType type) {
|
||||
+ return new PotionEffect(type, duration, amplifier, ambient, particles, color);
|
||||
+ return new PotionEffect(type, duration, amplifier, ambient, particles, icon);
|
||||
+ }
|
||||
+ public PotionEffect withDuration(int duration) {
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, color);
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, icon);
|
||||
+ }
|
||||
+ public PotionEffect withAmplifier(int amplifier) {
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, color);
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, icon);
|
||||
+ }
|
||||
+ public PotionEffect withAmbient(boolean ambient) {
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, color);
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, icon);
|
||||
+ }
|
||||
+ public PotionEffect withParticles(boolean particles) {
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, color);
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, icon);
|
||||
+ }
|
||||
+ public PotionEffect withParticles(boolean particles, Color color) {
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, color);
|
||||
+ }
|
||||
+ public PotionEffect withColor(Color color) {
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, color);
|
||||
+ public PotionEffect withIcon(boolean icon) {
|
||||
+ return new PotionEffect(this.type, duration, amplifier, ambient, particles, icon);
|
||||
+ }
|
||||
+ // Paper end
|
||||
+
|
||||
|
|
Loading…
Add table
Reference in a new issue