summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenmori <thesenmori@gmail.com>2018-02-15 20:30:21 -0500
committermd_5 <git@md-5.net>2018-03-03 21:50:51 +1100
commit02f0647216dfe7515e3d7fa75a618faf6f010a7c (patch)
treeb3bcc9d5fce23a07b26fa7aa2b4b4c6afed50387
parent4751f9046965f288f477d331e5fd176bcbab85a7 (diff)
downloadbukkit-02f0647216dfe7515e3d7fa75a618faf6f010a7c.tar
bukkit-02f0647216dfe7515e3d7fa75a618faf6f010a7c.tar.gz
bukkit-02f0647216dfe7515e3d7fa75a618faf6f010a7c.tar.lz
bukkit-02f0647216dfe7515e3d7fa75a618faf6f010a7c.tar.xz
bukkit-02f0647216dfe7515e3d7fa75a618faf6f010a7c.zip
Add setTarget and getTarget to Slime.
-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();
}