13
0
geforkt von Mirrors/Paper

Clarify what the Villager.Profession enum can actually do.

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2016-06-09 12:20:59 +10:00
Ursprung 7d3852dda8
Commit 245a19e4af
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -115,7 +115,7 @@ public interface Villager extends Ageable, NPC, InventoryHolder {
*/ */
public enum Profession { public enum Profession {
/** /**
* Villager without a profession. * Normal. <b>Reserved for Zombies.</b>
*/ */
NORMAL, NORMAL,
/** /**
@ -139,7 +139,7 @@ public interface Villager extends Ageable, NPC, InventoryHolder {
*/ */
BUTCHER, BUTCHER,
/** /**
* Really a zombie. * Husk. <b>Reserved for Zombies</b>
*/ */
HUSK; HUSK;
} }

Datei anzeigen

@ -30,7 +30,7 @@ public interface Zombie extends Monster {
* Sets whether the zombie is a villager * Sets whether the zombie is a villager
* *
* @param flag Whether the zombie is a villager * @param flag Whether the zombie is a villager
* @deprecated Defaults to a basic villager * @deprecated Defaults to a {@link Villager.Profession#NORMAL}
*/ */
@Deprecated @Deprecated
public void setVillager(boolean flag); public void setVillager(boolean flag);