2017-06-11 00:11:10 +02:00
|
|
|
From e4a91b4babe80ccab09955b6069d1498676c5e53 Mon Sep 17 00:00:00 2001
|
2017-01-20 16:01:53 +01:00
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Sat, 14 Jan 2017 16:15:20 -0600
|
|
|
|
Subject: [PATCH] Add fromBottle flag to Experience Orbs
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/ExperienceOrb.java b/src/main/java/org/bukkit/entity/ExperienceOrb.java
|
2017-06-11 00:11:10 +02:00
|
|
|
index c286edfd..e8a83c06 100644
|
2017-01-20 16:01:53 +01:00
|
|
|
--- a/src/main/java/org/bukkit/entity/ExperienceOrb.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/ExperienceOrb.java
|
2017-06-11 00:11:10 +02:00
|
|
|
@@ -18,4 +18,11 @@ public interface ExperienceOrb extends Entity {
|
2017-01-20 16:01:53 +01:00
|
|
|
* @param value Amount of experience
|
|
|
|
*/
|
|
|
|
public void setExperience(int value);
|
|
|
|
+
|
|
|
|
+ /**
|
2017-06-11 00:11:10 +02:00
|
|
|
+ * Check if this orb was spawned from a {@link ThrownExpBottle}
|
|
|
|
+ *
|
|
|
|
+ * @return if orb was spawned from a bottle
|
2017-01-20 16:01:53 +01:00
|
|
|
+ */
|
|
|
|
+ public boolean isFromBottle();
|
|
|
|
}
|
|
|
|
--
|
2017-06-11 00:11:10 +02:00
|
|
|
2.13.0.windows.1
|
2017-01-20 16:01:53 +01:00
|
|
|
|