diff options
author | sk89q <the.sk89q@gmail.com> | 2011-01-03 17:44:30 +0800 |
---|---|---|
committer | Dinner Bone <dinnerbone@dinnerbone.com> | 2011-01-03 23:16:32 +0800 |
commit | 7b1ab8e62a0707130c5fd8a479e65b4e9f1a7f73 (patch) | |
tree | 1a342c1da85b3141202869c00a3a715b8068a79b /src/main/java | |
parent | 4c5a66f2a65414cc00821c1df55fc9c0c67722ac (diff) | |
download | bukkit-7b1ab8e62a0707130c5fd8a479e65b4e9f1a7f73.tar bukkit-7b1ab8e62a0707130c5fd8a479e65b4e9f1a7f73.tar.gz bukkit-7b1ab8e62a0707130c5fd8a479e65b4e9f1a7f73.tar.lz bukkit-7b1ab8e62a0707130c5fd8a479e65b4e9f1a7f73.tar.xz bukkit-7b1ab8e62a0707130c5fd8a479e65b4e9f1a7f73.zip |
Added LivingEntity.throwEgg() and LivingEntity.throwSnowball().
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/Egg.java | 9 | ||||
-rw-r--r-- | src/main/java/org/bukkit/LivingEntity.java | 10 | ||||
-rw-r--r-- | src/main/java/org/bukkit/Snowball.java | 9 |
3 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Egg.java b/src/main/java/org/bukkit/Egg.java new file mode 100644 index 00000000..dc0beb2e --- /dev/null +++ b/src/main/java/org/bukkit/Egg.java @@ -0,0 +1,9 @@ +package org.bukkit;
+
+/**
+ * Represents an egg.
+ *
+ * @author sk89q
+ */
+public interface Egg extends Entity {
+}
diff --git a/src/main/java/org/bukkit/LivingEntity.java b/src/main/java/org/bukkit/LivingEntity.java index 1fd153c9..e8e6373e 100644 --- a/src/main/java/org/bukkit/LivingEntity.java +++ b/src/main/java/org/bukkit/LivingEntity.java @@ -18,4 +18,14 @@ public interface LivingEntity extends Entity { * @param health New health represented from 0-20 */ public void setHealth(int health); + + /** + * Throws an egg from the entity. + */ + public Egg throwEgg(); + + /** + * Throws a snowball from the entity. + */ + public Snowball throwSnowball(); } diff --git a/src/main/java/org/bukkit/Snowball.java b/src/main/java/org/bukkit/Snowball.java new file mode 100644 index 00000000..cebe0dff --- /dev/null +++ b/src/main/java/org/bukkit/Snowball.java @@ -0,0 +1,9 @@ +package org.bukkit;
+
+/**
+ * Implements a snowball.
+ *
+ * @author sk89q
+ */
+public interface Snowball extends Entity {
+}
|