diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-15 05:48:52 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-15 05:48:52 +0100 |
commit | 86a3286a98785af545f676fe49861427dbaf3324 (patch) | |
tree | 233c9b9e0d9263deeaaa455cb85e70ac49ef70b6 /src/main/java/org | |
parent | 0abbb7ad7af06b96e2c801c1b31024e308cb7e54 (diff) | |
download | bukkit-86a3286a98785af545f676fe49861427dbaf3324.tar bukkit-86a3286a98785af545f676fe49861427dbaf3324.tar.gz bukkit-86a3286a98785af545f676fe49861427dbaf3324.tar.lz bukkit-86a3286a98785af545f676fe49861427dbaf3324.tar.xz bukkit-86a3286a98785af545f676fe49861427dbaf3324.zip |
Added methods for getting/setting how much exp is contained within an orb
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/entity/ExperienceOrb.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/entity/ExperienceOrb.java b/src/main/java/org/bukkit/entity/ExperienceOrb.java index 03bed688..4093e998 100644 --- a/src/main/java/org/bukkit/entity/ExperienceOrb.java +++ b/src/main/java/org/bukkit/entity/ExperienceOrb.java @@ -3,4 +3,18 @@ package org.bukkit.entity; /** * Represents an Experience Orb. */ -public interface ExperienceOrb extends Entity {} +public interface ExperienceOrb extends Entity { + /** + * Gets how much experience is contained within this orb + * + * @return Amount of experience + */ + public int getExperience(); + + /** + * Sets how much experience is contained within this orb + * + * @param value Amount of experience + */ + public void setExperience(int value); +} |