Java Code Examples for org.bukkit.entity.Villager#Profession
The following examples show how to use
org.bukkit.entity.Villager#Profession .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CraftVillagerZombie.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Override public Villager.Profession getVillagerProfession() { return Villager.Profession.values()[getHandle().getProfession() + Villager.Profession.FARMER.ordinal()]; }
Example 2
Source File: CraftVillagerZombie.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Override public void setVillagerProfession(Villager.Profession profession) { getHandle().setProfession(profession == null ? 0 : profession.ordinal() - Villager.Profession.FARMER.ordinal()); }
Example 3
Source File: CraftZombie.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Override public void setVillagerProfession(Villager.Profession profession) { throw new UnsupportedOperationException("Not supported."); }
Example 4
Source File: CraftZombie.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Override public Villager.Profession getVillagerProfession() { return null; }
Example 5
Source File: EntityVillagerPet.java From SonarPet with GNU General Public License v3.0 | 4 votes |
@Override public void setProfession(Villager.Profession profession) { ((Villager) getBukkitEntity()).setProfession(profession); }
Example 6
Source File: IVillagerPet.java From SonarPet with GNU General Public License v3.0 | votes |
public Villager.Profession getProfession();
Example 7
Source File: IVillagerPet.java From SonarPet with GNU General Public License v3.0 | votes |
public void setProfession(Villager.Profession prof);
Example 8
Source File: IEntityVillagerPet.java From SonarPet with GNU General Public License v3.0 | votes |
public void setProfession(Villager.Profession profession);
Example 9
Source File: IVillagerPet.java From EchoPet with GNU General Public License v3.0 | votes |
public Villager.Profession getProfession();
Example 10
Source File: IVillagerPet.java From EchoPet with GNU General Public License v3.0 | votes |
public void setProfession(Villager.Profession prof);