Minecraft 1.12-pre2 API Changes

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2017-05-14 12:00:00 +10:00
parent 05d2efaa86
commit 75a18fd5ad
29 changed files with 785 additions and 36 deletions

View 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);
}