From 34f857ad15deabec6091592b9fe95e40be945334 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 24 Nov 2011 20:16:16 +0000 Subject: [PATCH] Added new set/get age methods to Animals By: Nathan Adams --- .../src/main/java/org/bukkit/entity/Animals.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Animals.java b/paper-api/src/main/java/org/bukkit/entity/Animals.java index d078638805..f23db9bc16 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Animals.java +++ b/paper-api/src/main/java/org/bukkit/entity/Animals.java @@ -4,4 +4,18 @@ package org.bukkit.entity; * Represents an Animal. * */ -public interface Animals extends Creature {} +public interface Animals extends Creature { + /** + * Gets the age of this animal. + * + * @return Age + */ + public int getAge(); + + /** + * Sets the age of this animal. + * + * @param age New age + */ + public void setAge(int age); +}