mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 12:12:08 -07:00
More ThrownPotion API
This commit is contained in:
@@ -3,6 +3,7 @@ From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
|
||||
Date: Wed, 26 May 2021 19:34:43 -0400
|
||||
Subject: [PATCH] More Projectile API
|
||||
|
||||
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/Firework.java b/src/main/java/org/bukkit/entity/Firework.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
@@ -99,6 +100,15 @@ diff --git a/src/main/java/org/bukkit/entity/ThrownPotion.java b/src/main/java/o
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/ThrownPotion.java
|
||||
+++ b/src/main/java/org/bukkit/entity/ThrownPotion.java
|
||||
@@ -0,0 +0,0 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* Represents a thrown potion bottle
|
||||
*/
|
||||
-public interface ThrownPotion extends Projectile {
|
||||
+public interface ThrownPotion extends ThrowableProjectile { // Paper - extend ThrowableProjectile
|
||||
|
||||
/**
|
||||
* Returns the effects that are applied by this potion.
|
||||
@@ -0,0 +0,0 @@ public interface ThrownPotion extends Projectile {
|
||||
|
||||
/**
|
||||
@@ -131,5 +141,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @param meta potion meta
|
||||
+ */
|
||||
+ void setPotionMeta(@NotNull org.bukkit.inventory.meta.PotionMeta meta);
|
||||
+
|
||||
+ /**
|
||||
+ * Splashes the potion at its current location.
|
||||
+ */
|
||||
+ void splash();
|
||||
+ // Paper end
|
||||
}
|
||||
|
Reference in New Issue
Block a user