Java Code Examples for net.minecraft.village.VillagerProfession#BUTCHER

The following examples show how to use net.minecraft.village.VillagerProfession#BUTCHER . 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: Protocol_1_13_2.java    From multiconnect with MIT License 6 votes vote down vote up
private static VillagerProfession getVillagerProfession(int id) {
    switch (id) {
        case 0:
            return VillagerProfession.FARMER;
        case 1:
            return VillagerProfession.LIBRARIAN;
        case 2:
            return VillagerProfession.CLERIC;
        case 3:
            return VillagerProfession.ARMORER;
        case 4:
            return VillagerProfession.BUTCHER;
        case 5:
        default:
            return VillagerProfession.NITWIT;
    }
}
 
Example 2
Source File: VillagerPonyModel.java    From MineLittlePony with MIT License 5 votes vote down vote up
@Override
public void animateModel(T entity, float limbSwing, float limbSwingAmount, float partialTickTime) {
    boolean special = PonyTextures.isBestPony(entity);

    VillagerProfession profession = entity.getVillagerData().getProfession();

    attributes.visualHeight = PonyTextures.isCrownPony(entity) ? 2.3F : 2;
    apron.visible = !special && profession == VillagerProfession.BUTCHER;
    trinket.visible = !special && !apron.visible && profession != VillagerProfession.NONE && profession != VillagerProfession.NITWIT;
}