From f9d32acfe5b7369ecccbba023c416dfb6dc02147 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot <noreply+git-craftbukkit@papermc.io> Date: Fri, 18 Mar 2011 17:13:54 -0400 Subject: [PATCH] Implement Sheep.get/setSheared. By: Celtic Minstrel <celtic.minstrel.ca@> --- .../java/org/bukkit/craftbukkit/entity/CraftSheep.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftSheep.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftSheep.java index fa23cf30be..0457e1256c 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftSheep.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftSheep.java @@ -29,4 +29,12 @@ public class CraftSheep extends CraftAnimals implements Sheep { getHandle().a_(color.getData()); } + public boolean isSheared() { + return getHandle().j_(); + } + + public void setSheared(boolean flag) { + getHandle().a(flag); + } + }