public class ActiveEntityEffect implements Damage.Source
Class ActiveEntityEffect. Provides activeentityeffect functionality for the Hytale server.
java.lang.Object > ActiveEntityEffect
Field Summary
entityEffectId
Field entityEffectId.
entityEffectIndex
Field entityEffectIndex.
initialDuration
Field initialDuration.
remainingDuration
Field remainingDuration.
infinite
Field infinite.
debuff
Field debuff.
statusEffectIcon
Field statusEffectIcon.
sinceLastDamage
Field sinceLastDamage.
hasBeenDamaged
Field hasBeenDamaged.
invulnerable
Field invulnerable.
sequentialHits
Field sequentialHits.
cyclesToRun
Field cyclesToRun.
damageCalculatorCooldown
Field damageCalculatorCooldown.
entityStats
Field entityStats.
statModifierEffects
Field statModifierEffects.
damageCalculator
Field damageCalculator.
relativeDamage
Field relativeDamage.
world
Field world.
damageEffects
Field damageEffects.
queueDamageCalculator
Field queueDamageCalculator.
hits
Field hits.
damageSequence
Field damageSequence.
entityEffect
Field entityEffect.
locale
Field locale.
reason
Field reason.
Method Detail
ActiveEntityEffect
public
ActiveEntityEffect
()
Method ActiveEntityEffect.
tick
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 CommandBuffercommandBuffer@Nonnull final Refref@Nonnull final EntityEffectentityEffect@Nonnull final EntityStatMapentityStatMapComponentfinal floatdt
calculateCyclesToRun
Method calculateCyclesToRun.
- Parameters:
@Nonnull final EntityEffectentityEffectfinal floatdt
if
else
if
(!this.hasBeenDamaged)
Method if.
- Parameters:
!this.hasBeenDamaged!this.hasBeenDamaged
tickStatChanges
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 CommandBuffercommandBuffer@Nonnull final Refref@Nonnull final EntityEffectentityEffect@Nonnull final EntityStatMapentityStatMapComponentfinal intcyclesToRun
tickDamage
void
tickDamage
(@Nonnull final CommandBuffer commandBuffer, @Nonnull final Ref ref, @Nonnull final EntityEffect entityEffect, final int cyclesToRun)
Method tickDamage.
- Parameters:
@Nonnull final CommandBuffercommandBuffer@Nonnull final Refref@Nonnull final EntityEffectentityEffectfinal intcyclesToRun
getEntityEffectIndex
int
getEntityEffectIndex
()
Method getEntityEffectIndex.
getInitialDuration
float
getInitialDuration
()
Method getInitialDuration.
getRemainingDuration
float
getRemainingDuration
()
Method getRemainingDuration.
isInfinite
boolean
isInfinite
()
Method isInfinite.
isDebuff
boolean
isDebuff
()
Method isDebuff.
isInvulnerable
boolean
isInvulnerable
()
Method isInvulnerable.
getDeathMessage
Message
getDeathMessage
(@Nonnull final Damage info, @Nonnull final Ref targetRef, @Nonnull final ComponentAccessor componentAccessor)
Method getDeathMessage.
- Parameters:
@Nonnull final Damageinfo@Nonnull final ReftargetRef@Nonnull final ComponentAccessorcomponentAccessor
toString
String
toString
()
Method toString.