From f7b70eb07bf5f803f6920f8937a3bac0a85edc8d Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 18 Mar 2011 17:12:00 -0400 Subject: [PATCH] Add setSheared() to Sheep and setSize() to Slimes. By: Celtic Minstrel --- paper-api/src/main/java/org/bukkit/entity/Sheep.java | 11 ++++++++++- paper-api/src/main/java/org/bukkit/entity/Slime.java | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Sheep.java b/paper-api/src/main/java/org/bukkit/entity/Sheep.java index 98f58ebfb8..bae446805b 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Sheep.java +++ b/paper-api/src/main/java/org/bukkit/entity/Sheep.java @@ -11,5 +11,14 @@ import org.bukkit.material.Colorable; * */ public interface Sheep extends Animals, Colorable { - + /** + * @author Celtic Minstrel + * @return Whether the sheep is sheared. + */ + public boolean isSheared(); + /** + * @author Celtic Minstrel + * @param flag Whether to shear the sheep + */ + public void setSheared(boolean flag); } diff --git a/paper-api/src/main/java/org/bukkit/entity/Slime.java b/paper-api/src/main/java/org/bukkit/entity/Slime.java index 1ac9d8b497..1401ea63ef 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Slime.java +++ b/paper-api/src/main/java/org/bukkit/entity/Slime.java @@ -10,5 +10,14 @@ package org.bukkit.entity; * */ public interface Slime extends LivingEntity { - + /** + * @author Celtic Minstrel + * @return The size of the slime + */ + public int getSize(); + /** + * @author Celtic Minstrel + * @param sz The new size of the slime. + */ + public void setSize(int sz); }