diff options
author | Erik Broes <erikbroes@grum.nl> | 2012-01-05 19:27:22 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2012-01-17 19:44:18 +0100 |
commit | ef6353043218a44a6528e7d54452f96c48ac7c75 (patch) | |
tree | 812cbf7bde338c4332b166b107928f537ad16b1a /src/main/java/org | |
parent | f73a9bac8fd05d33553fd312f5f27339be6550d5 (diff) | |
download | bukkit-ef6353043218a44a6528e7d54452f96c48ac7c75.tar bukkit-ef6353043218a44a6528e7d54452f96c48ac7c75.tar.gz bukkit-ef6353043218a44a6528e7d54452f96c48ac7c75.tar.lz bukkit-ef6353043218a44a6528e7d54452f96c48ac7c75.tar.xz bukkit-ef6353043218a44a6528e7d54452f96c48ac7c75.zip |
[Bleeding] Add Animals: setAgeLock(bool), bool getAgeLock, void setBaby, void setAdult, void setBreed(bool), bool canBreed and bool isAdult.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/entity/Animals.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Animals.java b/src/main/java/org/bukkit/entity/Animals.java index 9ce52193..a2e71029 100644 --- a/src/main/java/org/bukkit/entity/Animals.java +++ b/src/main/java/org/bukkit/entity/Animals.java @@ -17,4 +17,49 @@ public interface Animals extends Creature { * @param age New age */ public void setAge(int age); + + /** + * Lock the age of the animal, setting this will prevent the animal from maturing or getting ready for mating. + * + * @param lock new lock + */ + public void setAgeLock(boolean lock); + + /** + * Gets the current agelock. + * + * @return the current agelock + */ + public boolean getAgeLock(); + + /** + * Sets the age of the animal to a baby + */ + public void setBaby(); + + /** + * Sets the age of the animal to an adult + */ + public void setAdult(); + + /** + * Returns true if the animal is an adult. + * + * @return return true if the animal is an adult + */ + public boolean isAdult(); + + /** + * Return the ability to breed of the animal. + * + * @return the ability to breed of the animal + */ + public boolean canBreed(); + + /** + * Set breedability of the animal, if the animal is a baby and set to breed it will instantly grow up. + * + * @param breed breedability of the animal + */ + public void setBreed(boolean breed); } |