me.libraryaddict.disguise.disguisetypes.watchers.ZombieVillagerWatcher类的使用及代码示例

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

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

ZombieVillagerWatcher介绍

暂无

代码示例

代码示例来源:origin: libraryaddict/LibsDisguises

/**
 * Is this zombie a villager?
 *
 * @return
 */
public boolean isVillager() {
  return ((int) getData(MetaIndex.ZOMBIE_VILLAGER_PROFESSION)) != 0;
}

代码示例来源:origin: libraryaddict/LibsDisguises

public void setShaking(boolean shaking) {
  setData(MetaIndex.ZOMBIE_VILLAGER_SHAKING, shaking);
  sendData(MetaIndex.ZOMBIE_VILLAGER_SHAKING);
}

代码示例来源:origin: eccentricdevotion/TARDIS

case ZOMBIE_VILLAGER:
  ZombieVillagerWatcher zvw = (ZombieVillagerWatcher) livingWatcher;
  zvw.setBaby(getBaby(inv));
  zvw.setProfession(getProfession(inv));
  break;
case SNOWMAN:

代码示例来源: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: libraryaddict/LibsDisguises

/**
 * Sets the profession of this zombie, in turn turning it into a Zombie Villager
 *
 * @param id
 */
@Deprecated
public void setProfession(int id) {
  setData(MetaIndex.ZOMBIE_VILLAGER_PROFESSION, id);
  sendData(MetaIndex.ZOMBIE_VILLAGER_PROFESSION);
}

代码示例来源:origin: libraryaddict/LibsDisguises

public boolean isShaking() {
  return getData(MetaIndex.ZOMBIE_VILLAGER_SHAKING);
}

代码示例来源:origin: libraryaddict/LibsDisguises

/**
 * Only returns a valid value if this zombie is a villager.
 *
 * @return
 */
public Profession getProfession() {
  return Profession.values()[getData(MetaIndex.ZOMBIE_VILLAGER_PROFESSION) + 1];
}

相关文章

ZombieVillagerWatcher类方法