52
paper-api/src/main/java/org/bukkit/entity/Spellcaster.java
Normal file
52
paper-api/src/main/java/org/bukkit/entity/Spellcaster.java
Normal file
@@ -0,0 +1,52 @@
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a spell casting "Illager".
|
||||
*/
|
||||
public interface Spellcaster extends Illager {
|
||||
|
||||
/**
|
||||
* Represents the current spell the entity is using.
|
||||
*/
|
||||
public enum Spell {
|
||||
|
||||
/**
|
||||
* No spell is being used..
|
||||
*/
|
||||
NONE,
|
||||
/**
|
||||
* The spell that summons Vexes.
|
||||
*/
|
||||
SUMMON_VEX,
|
||||
/**
|
||||
* The spell that summons Fangs.
|
||||
*/
|
||||
FANGS,
|
||||
/**
|
||||
* The "wololo" spell.
|
||||
*/
|
||||
WOLOLO,
|
||||
/**
|
||||
* The spell that makes the casting entity invisible.
|
||||
*/
|
||||
DISAPPEAR,
|
||||
/**
|
||||
* The spell that makes the target blind.
|
||||
*/
|
||||
BLINDNESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the {@link Spell} the entity is currently using.
|
||||
*
|
||||
* @return the current spell
|
||||
*/
|
||||
Spell getSpell();
|
||||
|
||||
/**
|
||||
* Sets the {@link Spell} the entity is currently using.
|
||||
*
|
||||
* @param spell the spell the entity should be using
|
||||
*/
|
||||
void setSpell(Spell spell);
|
||||
}
|
||||
Reference in New Issue
Block a user