summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFearThe1337 <admin@fearthe1337.com>2014-12-04 12:55:49 +0100
committermd_5 <git@md-5.net>2014-12-24 09:00:31 +1100
commitc6b3d1795300fd11c6c5697293b740e10476aca1 (patch)
treeb01a7e770090d117bf4207b9b54254528d9d6e6b /src
parentd4c3dd53a89ac747f1af4e5c2a7a797336a18699 (diff)
downloadbukkit-c6b3d1795300fd11c6c5697293b740e10476aca1.tar
bukkit-c6b3d1795300fd11c6c5697293b740e10476aca1.tar.gz
bukkit-c6b3d1795300fd11c6c5697293b740e10476aca1.tar.lz
bukkit-c6b3d1795300fd11c6c5697293b740e10476aca1.tar.xz
bukkit-c6b3d1795300fd11c6c5697293b740e10476aca1.zip
Add RabbitType API.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/Rabbit.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Rabbit.java b/src/main/java/org/bukkit/entity/Rabbit.java
index 7c3e3daa..1c8d1fcc 100644
--- a/src/main/java/org/bukkit/entity/Rabbit.java
+++ b/src/main/java/org/bukkit/entity/Rabbit.java
@@ -1,4 +1,49 @@
package org.bukkit.entity;
public interface Rabbit extends Animals {
+
+ /**
+ * @return The type of rabbit.
+ */
+ public Type getRabbitType();
+
+ /**
+ * @param type Sets the type of rabbit for this entity.
+ */
+ public void setRabbitType(Type type);
+
+ /**
+ * Represents the various types a Rabbit might be.
+ */
+ public enum Type {
+
+ /**
+ * Chocolate colored rabbit.
+ */
+ BROWN,
+ /**
+ * Pure white rabbit.
+ */
+ WHITE,
+ /**
+ * Black rabbit.
+ */
+ BLACK,
+ /**
+ * Black with white patches, or white with black patches?
+ */
+ BLACK_AND_WHITE,
+ /**
+ * Golden bunny.
+ */
+ GOLD,
+ /**
+ * Salt and pepper colored, whatever that means.
+ */
+ SALT_AND_PEPPER,
+ /**
+ * Rabbit with pure white fur, blood red horizontal eyes, and is hostile to players.
+ */
+ THE_KILLER_BUNNY
+ }
}