本文整理了Java中me.libraryaddict.disguise.disguisetypes.watchers.ZombieVillagerWatcher
类的一些代码示例,展示了ZombieVillagerWatcher
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZombieVillagerWatcher
类的具体详情如下:
包路径:me.libraryaddict.disguise.disguisetypes.watchers.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];
}
内容来源于网络,如有侵权,请联系作者删除!