本文整理了Java中org.bukkit.entity.Entity.getFireTicks()
方法的一些代码示例,展示了Entity.getFireTicks()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.getFireTicks()
方法的具体详情如下:
包路径:org.bukkit.entity.Entity
类名称:Entity
方法名:getFireTicks
[英]Returns the entity's current fire ticks (ticks before the entity stops being on fire).
[中]返回实体的当前火焰标记(实体停止燃烧前的标记)。
代码示例来源:origin: EngineHub/CommandHelper
@Override
public int getFireTicks() {
return e.getFireTicks();
}
代码示例来源:origin: bergerkiller/BKCommonLib
@Override
public int getFireTicks() {
return base.getFireTicks();
}
代码示例来源:origin: bergerkiller/BKCommonLib
public int getFireTicks() {
return entity.getFireTicks();
}
代码示例来源:origin: ProjectKorra/ProjectKorra
public static void handleFlames() {
for (final Entity entity : INSTANCES.keySet()) {
if (entity.getFireTicks() <= 0) {
INSTANCES.remove(entity);
}
}
}
代码示例来源:origin: ProjectKorra/ProjectKorra
public static void dealFlameDamage(final Entity entity) {
if (INSTANCES.containsKey(entity) && entity instanceof LivingEntity) {
if (entity instanceof Player) {
if (!HeatControl.canBurn((Player) entity)) {
return;
}
}
final LivingEntity Lentity = (LivingEntity) entity;
final Player source = INSTANCES.get(entity);
// damages the entity.
DamageHandler.damageEntity(Lentity, source, DAMAGE, CoreAbility.getAbilitiesByElement(Element.FIRE).get(0));
if (entity.getFireTicks() > MAX_TICKS) {
entity.setFireTicks(MAX_TICKS);
}
}
}
代码示例来源:origin: libraryaddict/LibsDisguises
if (entity.getFireTicks() > 0) {
watcher.setBurning(true);
代码示例来源:origin: elBukkit/MagicPlugin
@Override
public SpellResult perform(CastContext context)
{
int ticks = duration * 20 / 1000;
Entity entity = context.getTargetEntity();
MageController controller = context.getController();
boolean isElemental = controller.isElemental(entity);
if (!isElemental && entity.getFireTicks() == ticks)
{
return SpellResult.NO_TARGET;
}
context.registerDamaged(entity);
if (isElemental) {
Mage mage = context.getMage();
controller.damageElemental(entity, 0, ticks, mage.getCommandSender());
} else {
entity.setFireTicks(ticks);
}
return SpellResult.CAST;
}
代码示例来源:origin: ProjectKorra/ProjectKorra
ProjectKorra.flightHandler.createInstance((Player) entity, this.player, 1000L, this.getName());
if (entity.getFireTicks() > 0) {
entity.getWorld().playEffect(entity.getLocation(), Effect.EXTINGUISH, 0);
代码示例来源:origin: ProjectKorra/ProjectKorra
entity.setFallDistance(0);
if (entity.getFireTicks() > 0) {
entity.getWorld().playEffect(entity.getLocation(), Effect.EXTINGUISH, 0);
代码示例来源:origin: ProjectKorra/ProjectKorra
if (entity.getFireTicks() > 0) {
entity.getWorld().playEffect(entity.getLocation(), Effect.EXTINGUISH, 0);
代码示例来源:origin: ProjectKorra/ProjectKorra
if (entity.getFireTicks() > 0) {
entity.getWorld().playEffect(entity.getLocation(), Effect.EXTINGUISH, 0);
代码示例来源:origin: elBukkit/MagicPlugin
this.type = entity.getType();
this.location = location;
this.fireTicks = entity.getFireTicks();
this.isSilent = CompatibilityUtils.isSilent(entity);
this.canPickupItems = (entity instanceof Creature) ? ((Creature)entity).getCanPickupItems() : false;
内容来源于网络,如有侵权,请联系作者删除!