From 02f0647216dfe7515e3d7fa75a618faf6f010a7c Mon Sep 17 00:00:00 2001 From: Senmori Date: Thu, 15 Feb 2018 20:30:21 -0500 Subject: Add setTarget and getTarget to Slime. --- src/main/java/org/bukkit/entity/Slime.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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(); } -- cgit v1.2.3