summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCeltic Minstrel <celtic.minstrel.ca@>2011-03-18 17:13:54 -0400
committerErik Broes <erikbroes@grum.nl>2011-03-26 17:54:03 +0100
commit47497aa3f93083ce7d51a1509d03dd8ceb074bcf (patch)
tree07805248cb542a47caad3589a59237b9847eadbe /src
parent9f30c9f8f4de30467dec9bb32101bf540c274c38 (diff)
downloadcraftbukkit-47497aa3f93083ce7d51a1509d03dd8ceb074bcf.tar
craftbukkit-47497aa3f93083ce7d51a1509d03dd8ceb074bcf.tar.gz
craftbukkit-47497aa3f93083ce7d51a1509d03dd8ceb074bcf.tar.lz
craftbukkit-47497aa3f93083ce7d51a1509d03dd8ceb074bcf.tar.xz
craftbukkit-47497aa3f93083ce7d51a1509d03dd8ceb074bcf.zip
Implement Sheep.get/setSheared.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftSheep.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftSheep.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftSheep.java
index fa23cf30..0457e125 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftSheep.java
+++ b/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);
+ }
+
}