From 6dc24a62f4662f288cff1397db80eca5a2520bd8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 9 Jun 2016 12:20:59 +1000 Subject: Clarify what the Villager.Profession enum can actually do. --- src/main/java/org/bukkit/entity/Villager.java | 4 ++-- src/main/java/org/bukkit/entity/Zombie.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/bukkit/entity/Villager.java b/src/main/java/org/bukkit/entity/Villager.java index 92a80096..dfabb460 100644 --- a/src/main/java/org/bukkit/entity/Villager.java +++ b/src/main/java/org/bukkit/entity/Villager.java @@ -115,7 +115,7 @@ public interface Villager extends Ageable, NPC, InventoryHolder { */ public enum Profession { /** - * Villager without a profession. + * Normal. Reserved for Zombies. */ NORMAL, /** @@ -139,7 +139,7 @@ public interface Villager extends Ageable, NPC, InventoryHolder { */ BUTCHER, /** - * Really a zombie. + * Husk. Reserved for Zombies */ HUSK; } diff --git a/src/main/java/org/bukkit/entity/Zombie.java b/src/main/java/org/bukkit/entity/Zombie.java index 3bd53e19..a897d434 100644 --- a/src/main/java/org/bukkit/entity/Zombie.java +++ b/src/main/java/org/bukkit/entity/Zombie.java @@ -30,7 +30,7 @@ public interface Zombie extends Monster { * Sets 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 public void setVillager(boolean flag); -- cgit v1.2.3