From 7aa2a077b67b6ca8b8661c78ef42f5073a313bcd Mon Sep 17 00:00:00 2001 From: feildmaster Date: Wed, 5 Dec 2012 18:03:24 -0600 Subject: [PATCH] Add API to get and set collar colors of wolves --- src/main/java/org/bukkit/entity/Wolf.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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); }