gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-13 10:17:04 27 4
gpt4 key购买 nike

本文整理了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];
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com