From 7c4860c3b534a54f5d80755a384d70fd50a8aeb8 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 3 Jan 2011 17:44:30 +0800 Subject: [PATCH] Added LivingEntity.throwEgg() and LivingEntity.throwSnowball(). By: sk89q --- paper-api/src/main/java/org/bukkit/Egg.java | 9 +++++++++ paper-api/src/main/java/org/bukkit/LivingEntity.java | 10 ++++++++++ paper-api/src/main/java/org/bukkit/Snowball.java | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 paper-api/src/main/java/org/bukkit/Egg.java create mode 100644 paper-api/src/main/java/org/bukkit/Snowball.java diff --git a/paper-api/src/main/java/org/bukkit/Egg.java b/paper-api/src/main/java/org/bukkit/Egg.java new file mode 100644 index 0000000000..dc0beb2ed4 --- /dev/null +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/LivingEntity.java b/paper-api/src/main/java/org/bukkit/LivingEntity.java index 1fd153c9ff..e8e6373ef6 100644 --- a/paper-api/src/main/java/org/bukkit/LivingEntity.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/Snowball.java b/paper-api/src/main/java/org/bukkit/Snowball.java new file mode 100644 index 0000000000..cebe0dff95 --- /dev/null +++ b/paper-api/src/main/java/org/bukkit/Snowball.java @@ -0,0 +1,9 @@ +package org.bukkit; + +/** + * Implements a snowball. + * + * @author sk89q + */ +public interface Snowball extends Entity { +}