Deprecate some methods which are likely to require changes in the future

Ref http://mojang.com/2016/08/minecraft-snapshot-16w32a/

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2016-08-12 18:22:33 +10:00
parent e74f8f6b5e
commit 24f6f4f05c
4 changed files with 21 additions and 1 deletions

View File

@@ -23,14 +23,16 @@ public interface Zombie extends Monster {
* Gets whether the zombie is a villager
*
* @return Whether the zombie is a villager
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/
@Deprecated
public boolean isVillager();
/**
* Sets whether the zombie is a villager
*
* @param flag Whether the zombie is a villager
* @deprecated Defaults to a {@link Villager.Profession#NORMAL}
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/
@Deprecated
public void setVillager(boolean flag);
@@ -39,7 +41,9 @@ public interface Zombie extends Monster {
* Sets whether the zombie is a villager
*
* @param profession the profession of the villager or null to clear
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/
@Deprecated
public void setVillagerProfession(Villager.Profession profession);
/**
@@ -47,6 +51,8 @@ public interface Zombie extends Monster {
* zombie is a villager
*
* @return the profession or null
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/
@Deprecated
public Villager.Profession getVillagerProfession();
}