diff options
author | momothereal <momothereal.mc@gmail.com> | 2016-11-19 18:53:34 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-11-19 18:53:34 +1100 |
commit | e4039b9e0c07901a0e274e804569f50f709087ad (patch) | |
tree | 955f9ffcd001b92642dd3d6c0c9dea33f7eae908 | |
parent | 1282945eea67f490ffef52e8da9845eaec43a593 (diff) | |
download | bukkit-e4039b9e0c07901a0e274e804569f50f709087ad.tar bukkit-e4039b9e0c07901a0e274e804569f50f709087ad.tar.gz bukkit-e4039b9e0c07901a0e274e804569f50f709087ad.tar.lz bukkit-e4039b9e0c07901a0e274e804569f50f709087ad.tar.xz bukkit-e4039b9e0c07901a0e274e804569f50f709087ad.zip |
Add additional APIs for Evoker / EvokerFangs
-rw-r--r-- | src/main/java/org/bukkit/entity/Evoker.java | 40 | ||||
-rw-r--r-- | src/main/java/org/bukkit/entity/EvokerFangs.java | 17 |
2 files changed, 55 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/entity/Evoker.java b/src/main/java/org/bukkit/entity/Evoker.java index 4b7fd3ae..9d593013 100644 --- a/src/main/java/org/bukkit/entity/Evoker.java +++ b/src/main/java/org/bukkit/entity/Evoker.java @@ -3,4 +3,42 @@ package org.bukkit.entity; /** * Represents an Evoker. */ -public interface Evoker extends Monster { } +public interface Evoker extends Monster { + + /** + * Represents the current spell the Evoker is using. + */ + public enum Spell { + + /** + * No spell is being evoked. + */ + NONE, + /** + * The spell that summons Vexes. + */ + SUMMON, + /** + * The spell that summons Fangs. + */ + FANGS, + /** + * The "wololo" spell. + */ + WOLOLO; + } + + /** + * Gets the {@link Spell} the Evoker is currently using. + * + * @return the current spell + */ + Spell getCurrentSpell(); + + /** + * Sets the {@link Spell} the Evoker is currently using. + * + * @param spell the spell the evoker should be using + */ + void setCurrentSpell(Spell spell); +} diff --git a/src/main/java/org/bukkit/entity/EvokerFangs.java b/src/main/java/org/bukkit/entity/EvokerFangs.java index e82e3966..6b6c1b97 100644 --- a/src/main/java/org/bukkit/entity/EvokerFangs.java +++ b/src/main/java/org/bukkit/entity/EvokerFangs.java @@ -3,4 +3,19 @@ package org.bukkit.entity; /** * Represents Evoker Fangs. */ -public interface EvokerFangs extends Entity { } +public interface EvokerFangs extends Entity { + + /** + * Gets the {@link LivingEntity} which summoned the fangs. + * + * @return the {@link LivingEntity} which summoned the fangs + */ + LivingEntity getOwner(); + + /** + * Sets the {@link LivingEntity} which summoned the fangs. + * + * @param owner the {@link LivingEntity} which summoned the fangs + */ + void setOwner(LivingEntity owner); +} |