diff options
author | feildmaster <admin@feildmaster.com> | 2012-12-05 18:03:24 -0600 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-12-05 18:03:24 -0600 |
commit | 7aa2a077b67b6ca8b8661c78ef42f5073a313bcd (patch) | |
tree | 15233ed3c08f261c538ea88e870d841078bdc823 /src/main | |
parent | 516bcd8eb75116c9f8a15f6cd6753b02f91ed087 (diff) | |
download | bukkit-7aa2a077b67b6ca8b8661c78ef42f5073a313bcd.tar bukkit-7aa2a077b67b6ca8b8661c78ef42f5073a313bcd.tar.gz bukkit-7aa2a077b67b6ca8b8661c78ef42f5073a313bcd.tar.lz bukkit-7aa2a077b67b6ca8b8661c78ef42f5073a313bcd.tar.xz bukkit-7aa2a077b67b6ca8b8661c78ef42f5073a313bcd.zip |
Add API to get and set collar colors of wolves
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/entity/Wolf.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Wolf.java b/src/main/java/org/bukkit/entity/Wolf.java index 455a2e28..3cf0063b 100644 --- a/src/main/java/org/bukkit/entity/Wolf.java +++ b/src/main/java/org/bukkit/entity/Wolf.java @@ -1,5 +1,7 @@ package org.bukkit.entity; +import org.bukkit.DyeColor; + /** * Represents a Wolf */ @@ -35,4 +37,17 @@ public interface Wolf extends Animals, Tameable { */ public void setSitting(boolean sitting); + /** + * Get the collar color of this wolf + * + * @return the color of the collar + */ + public DyeColor getCollarColor(); + + /** + * Set the collar color of this wolf + * + * @param color the color to apply + */ + public void setCollarColor(DyeColor color); } |