Commits
md_5 authored dcc4266e331
51 51 | */ |
52 52 | void setRiches(int riches); |
53 53 | |
54 54 | /** |
55 55 | * Represents the various different Villager professions there may be. |
56 56 | * Villagers have different trading options depending on their profession, |
57 57 | */ |
58 58 | public enum Profession { |
59 59 | /** |
60 60 | * Normal. <b>Reserved for Zombies.</b> |
61 + | * @deprecated Unused |
61 62 | */ |
63 + | |
62 64 | NORMAL(true), |
63 65 | /** |
64 66 | * Farmer profession. Wears a brown robe. |
65 67 | */ |
66 68 | FARMER(false), |
67 69 | /** |
68 70 | * Librarian profession. Wears a white robe. |
69 71 | */ |
70 72 | LIBRARIAN(false), |
71 73 | /** |
79 81 | /** |
80 82 | * Butcher profession. Wears a white apron. |
81 83 | */ |
82 84 | BUTCHER(false), |
83 85 | /** |
84 86 | * Nitwit profession. Wears a green apron, cannot trade. |
85 87 | */ |
86 88 | NITWIT(false), |
87 89 | /** |
88 90 | * Husk. <b>Reserved for Zombies</b> |
91 + | * @deprecated Unused |
89 92 | */ |
93 + | |
90 94 | HUSK(true); |
91 95 | private final boolean zombie; |
92 96 | |
93 97 | private Profession(boolean zombie) { |
94 98 | this.zombie = zombie; |
95 99 | } |
96 100 | |
97 101 | /** |
98 102 | * Returns if this profession can only be used by zombies. |
99 103 | * |
100 104 | * @return zombie profession status |
105 + | * @deprecated Unused |
101 106 | */ |
107 + | |
102 108 | public boolean isZombie() { |
103 109 | return zombie; |
104 110 | } |
105 111 | } |
106 112 | } |