本文整理了Java中me.libraryaddict.disguise.disguisetypes.watchers.ZombieVillagerWatcher.setProfession()
方法的一些代码示例,展示了ZombieVillagerWatcher.setProfession()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZombieVillagerWatcher.setProfession()
方法的具体详情如下:
包路径:me.libraryaddict.disguise.disguisetypes.watchers.ZombieVillagerWatcher
类名称:ZombieVillagerWatcher
方法名:setProfession
[英]Sets the profession of this zombie, in turn turning it into a Zombie Villager
[中]设定了这个僵尸的职业,反过来又把它变成了一个僵尸村民
代码示例来源:origin: libraryaddict/LibsDisguises
/**
* Sets the profession of this zombie, in turn turning it into a Zombie Villager
*
* @param profession
*/
public void setProfession(Profession profession) {
setProfession(profession.ordinal() - 1);
}
}
代码示例来源:origin: eccentricdevotion/TARDIS
ZombieVillagerWatcher zvw = (ZombieVillagerWatcher) livingWatcher;
zvw.setBaby(getBaby(inv));
zvw.setProfession(getProfession(inv));
break;
case SNOWMAN:
内容来源于网络,如有侵权,请联系作者删除!