mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 05:31:32 +01:00
SPIGOT-2376: Way to distinguish Zombie professions.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
09cb84067f
commit
718ccb042a
1 changed files with 21 additions and 7 deletions
|
@ -117,30 +117,44 @@ public interface Villager extends Ageable, NPC, InventoryHolder {
|
||||||
/**
|
/**
|
||||||
* Normal. <b>Reserved for Zombies.</b>
|
* Normal. <b>Reserved for Zombies.</b>
|
||||||
*/
|
*/
|
||||||
NORMAL,
|
NORMAL(true),
|
||||||
/**
|
/**
|
||||||
* Farmer profession. Wears a brown robe.
|
* Farmer profession. Wears a brown robe.
|
||||||
*/
|
*/
|
||||||
FARMER,
|
FARMER(false),
|
||||||
/**
|
/**
|
||||||
* Librarian profession. Wears a white robe.
|
* Librarian profession. Wears a white robe.
|
||||||
*/
|
*/
|
||||||
LIBRARIAN,
|
LIBRARIAN(false),
|
||||||
/**
|
/**
|
||||||
* Priest profession. Wears a purple robe.
|
* Priest profession. Wears a purple robe.
|
||||||
*/
|
*/
|
||||||
PRIEST,
|
PRIEST(false),
|
||||||
/**
|
/**
|
||||||
* Blacksmith profession. Wears a black apron.
|
* Blacksmith profession. Wears a black apron.
|
||||||
*/
|
*/
|
||||||
BLACKSMITH,
|
BLACKSMITH(false),
|
||||||
/**
|
/**
|
||||||
* Butcher profession. Wears a white apron.
|
* Butcher profession. Wears a white apron.
|
||||||
*/
|
*/
|
||||||
BUTCHER,
|
BUTCHER(false),
|
||||||
/**
|
/**
|
||||||
* Husk. <b>Reserved for Zombies</b>
|
* Husk. <b>Reserved for Zombies</b>
|
||||||
*/
|
*/
|
||||||
HUSK;
|
HUSK(true);
|
||||||
|
private final boolean zombie;
|
||||||
|
|
||||||
|
private Profession(boolean zombie) {
|
||||||
|
this.zombie = zombie;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns if this profession can only be used by zombies.
|
||||||
|
*
|
||||||
|
* @return zombie profession status
|
||||||
|
*/
|
||||||
|
public boolean isZombie() {
|
||||||
|
return zombie;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue