ActiveEntityEffect

public class ActiveEntityEffect implements Damage.Source

Class ActiveEntityEffect. Provides activeentityeffect functionality for the Hytale server.

java.lang.Object > ActiveEntityEffect

Field Summary

entityEffectId

protected String entityEffectId

Field entityEffectId.

entityEffectIndex

protected int entityEffectIndex

Field entityEffectIndex.

initialDuration

protected float initialDuration

Field initialDuration.

remainingDuration

protected float remainingDuration

Field remainingDuration.

infinite

protected boolean infinite

Field infinite.

debuff

protected boolean debuff

Field debuff.

statusEffectIcon

protected String statusEffectIcon

Field statusEffectIcon.

sinceLastDamage

private float sinceLastDamage

Field sinceLastDamage.

hasBeenDamaged

private boolean hasBeenDamaged

Field hasBeenDamaged.

invulnerable

protected boolean invulnerable

Field invulnerable.

sequentialHits

private DamageCalculatorSystems.Sequence sequentialHits

Field sequentialHits.

cyclesToRun

final int cyclesToRun

Field cyclesToRun.

damageCalculatorCooldown

final float damageCalculatorCooldown

Field damageCalculatorCooldown.

entityStats

final Int2FloatMap entityStats

Field entityStats.

statModifierEffects

final DamageEffects statModifierEffects

Field statModifierEffects.

damageCalculator

final DamageCalculator damageCalculator

Field damageCalculator.

relativeDamage

final Object2FloatMap relativeDamage

Field relativeDamage.

world

final World world

Field world.

damageEffects

final DamageEffects damageEffects

Field damageEffects.

queueDamageCalculator

final Damage[] queueDamageCalculator

Field queueDamageCalculator.

hits

final Damage[] hits

Field hits.

damageSequence

final DamageCalculatorSystems.DamageSequence damageSequence

Field damageSequence.

entityEffect

final EntityEffect entityEffect

Field entityEffect.

locale

final String locale

Field locale.

reason

final String reason

Field reason.

Method Detail

ActiveEntityEffect

public public ActiveEntityEffect ()

Method ActiveEntityEffect.

tick

public void tick (@Nonnull final CommandBuffer commandBuffer, @Nonnull final Ref ref, @Nonnull final EntityEffect entityEffect, @Nonnull final EntityStatMap entityStatMapComponent, final float dt)

Method tick.

Parameters:
@Nonnull final CommandBuffer commandBuffer
@Nonnull final Ref ref
@Nonnull final EntityEffect entityEffect
@Nonnull final EntityStatMap entityStatMapComponent
final float dt

calculateCyclesToRun

private int calculateCyclesToRun (@Nonnull final EntityEffect entityEffect, final float dt)

Method calculateCyclesToRun.

Parameters:
@Nonnull final EntityEffect entityEffect
final float dt

if

public else if (!this.hasBeenDamaged)

Method if.

Parameters:
!this.hasBeenDamaged !this.hasBeenDamaged

tickStatChanges

static void tickStatChanges (@Nonnull final CommandBuffer commandBuffer, @Nonnull final Ref ref, @Nonnull final EntityEffect entityEffect, @Nonnull final EntityStatMap entityStatMapComponent, final int cyclesToRun)

Method tickStatChanges.

Parameters:
@Nonnull final CommandBuffer commandBuffer
@Nonnull final Ref ref
@Nonnull final EntityEffect entityEffect
@Nonnull final EntityStatMap entityStatMapComponent
final int cyclesToRun

tickDamage

private void tickDamage (@Nonnull final CommandBuffer commandBuffer, @Nonnull final Ref ref, @Nonnull final EntityEffect entityEffect, final int cyclesToRun)

Method tickDamage.

Parameters:
@Nonnull final CommandBuffer commandBuffer
@Nonnull final Ref ref
@Nonnull final EntityEffect entityEffect
final int cyclesToRun

getEntityEffectIndex

public int getEntityEffectIndex ()

Method getEntityEffectIndex.

getInitialDuration

public float getInitialDuration ()

Method getInitialDuration.

getRemainingDuration

public float getRemainingDuration ()

Method getRemainingDuration.

isInfinite

public boolean isInfinite ()

Method isInfinite.

isDebuff

public boolean isDebuff ()

Method isDebuff.

isInvulnerable

public boolean isInvulnerable ()

Method isInvulnerable.

getDeathMessage

public Message getDeathMessage (@Nonnull final Damage info, @Nonnull final Ref targetRef, @Nonnull final ComponentAccessor componentAccessor)

Method getDeathMessage.

Parameters:
@Nonnull final Damage info
@Nonnull final Ref targetRef
@Nonnull final ComponentAccessor componentAccessor

toString

public String toString ()

Method toString.