diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-24 20:16:16 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-24 20:16:16 +0000 |
commit | c4f220b3ee3baced230dd8ede5ef9558b13d7192 (patch) | |
tree | 18f02371e698f1409550cdfb4341518393ea7e75 /src/main/java/org | |
parent | e8004b049436147f81a634c4e1b09fea8aac2237 (diff) | |
download | bukkit-c4f220b3ee3baced230dd8ede5ef9558b13d7192.tar bukkit-c4f220b3ee3baced230dd8ede5ef9558b13d7192.tar.gz bukkit-c4f220b3ee3baced230dd8ede5ef9558b13d7192.tar.lz bukkit-c4f220b3ee3baced230dd8ede5ef9558b13d7192.tar.xz bukkit-c4f220b3ee3baced230dd8ede5ef9558b13d7192.zip |
Added new set/get age methods to Animals
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/entity/Animals.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/entity/Animals.java b/src/main/java/org/bukkit/entity/Animals.java index d0786388..f23db9bc 100644 --- a/src/main/java/org/bukkit/entity/Animals.java +++ b/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); +} |