本文整理了Java中org.bukkit.entity.Entity.setTicksLived()
方法的一些代码示例,展示了Entity.setTicksLived()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.setTicksLived()
方法的具体详情如下:
包路径:org.bukkit.entity.Entity
类名称:Entity
方法名:setTicksLived
[英]Sets the amount of ticks this entity has lived for.
This is the equivalent to "age" in entities. May not be less than one tick.
[中]设置此实体已存在的刻度数。
这相当于实体中的“年龄”。不得少于一个刻度。
代码示例来源:origin: bergerkiller/BKCommonLib
@Override
public void setTicksLived(int arg0) {
base.setTicksLived(arg0);
}
代码示例来源:origin: EngineHub/CommandHelper
@Override
public void setTicksLived(int value) {
e.setTicksLived(value);
}
代码示例来源:origin: bergerkiller/BKCommonLib
public void setTicksLived(int arg0) {
entity.setTicksLived(arg0);
}
代码示例来源:origin: Dytanic/CloudNet
if (mob.getMob().getTargetGroup().equals(serverInfo.getServiceId().getGroup()))
mob.getEntity().setTicksLived(Integer.MAX_VALUE);
updateCustom(mob.getMob(), mob.getDisplayMessage());
Bukkit.getPluginManager().callEvent(new BukkitMobUpdateEvent(mob.getMob()));
代码示例来源:origin: eccentricdevotion/TARDIS
ent.setTicksLived(m.getAge());
内容来源于网络,如有侵权,请联系作者删除!