From 3cf005da6411bfc6f5b498da5ffea6f1d48e2438 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 5 Dec 2012 18:03:24 -0600 Subject: [PATCH] Add API to get and set collar colors of wolves By: feildmaster --- .../src/main/java/org/bukkit/entity/Wolf.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Wolf.java b/paper-api/src/main/java/org/bukkit/entity/Wolf.java index 455a2e2824..3cf0063b65 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Wolf.java +++ b/paper-api/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); }