me.libraryaddict.disguise.disguisetypes.watchers.ZombieVillagerWatcher.setProfession()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(75)

本文整理了Java中me.libraryaddict.disguise.disguisetypes.watchers.ZombieVillagerWatcher.setProfession()方法的一些代码示例,展示了ZombieVillagerWatcher.setProfession()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZombieVillagerWatcher.setProfession()方法的具体详情如下:
包路径:me.libraryaddict.disguise.disguisetypes.watchers.ZombieVillagerWatcher
类名称:ZombieVillagerWatcher
方法名:setProfession

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:

相关文章

ZombieVillagerWatcher类方法