org.bukkit.entity.Entity.setTicksLived()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(156)

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

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());

相关文章

微信公众号

最新文章

更多