summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/bukkit/entity/Slime.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Slime.java b/src/main/java/org/bukkit/entity/Slime.java
index cbf50c8e..0d87d203 100644
--- a/src/main/java/org/bukkit/entity/Slime.java
+++ b/src/main/java/org/bukkit/entity/Slime.java
@@ -14,4 +14,19 @@ public interface Slime extends LivingEntity {
* @param sz The new size of the slime.
*/
public void setSize(int sz);
+
+ /**
+ * Set the {@link LivingEntity} target for this slime. Set to null to clear
+ * the target.
+ *
+ * @param target the entity to target
+ */
+ public void setTarget(LivingEntity target);
+
+ /**
+ * Get the {@link LivingEntity} this slime is currently targeting.
+ *
+ * @return the current target, or null if no target exists.
+ */
+ public LivingEntity getTarget();
}