classpublicPriority 3
ActiveEntityEffect
com.hypixel.hytale.server.core.entity.effect.ActiveEntityEffect
implements Damage.Source
8
Methods
8
Public Methods
11
Fields
4
Constructors
Constants
BuilderCodec<ActiveEntityEffect>CODEC= BuilderCodec.builder(ActiveEntityEffect.class, ActiveEntityEffect::new)
.append(
n...
floatDEFAULT_DURATION= 1.0F
MessageMESSAGE_GENERAL_DAMAGE_CAUSES_UNKNOWN= Message.translation("server.general.damageCauses.unknown")
Constructors
public
ActiveEntityEffect()public
ActiveEntityEffect(String entityEffectId, int entityEffectIndex, float initialDuration, float remainingDuration, boolean infinite, boolean debuff, String statusEffectIcon, float sinceLastDamage, boolean hasBeenDamaged, DamageCalculatorSystems.Sequence sequentialHits, boolean invulnerable)public
ActiveEntityEffect(String entityEffectId, int entityEffectIndex, float duration, boolean debuff, String statusEffectIcon, boolean invulnerable)public
ActiveEntityEffect(String entityEffectId, int entityEffectIndex, boolean infinite, boolean invulnerable)Methods
Public Methods (8)
public
Message getDeathMessage(Damage info, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor)@Nonnull@Override
public
int getEntityEffectIndex()public
float getInitialDuration()public
float getRemainingDuration()public
boolean isDebuff()public
boolean isInfinite()public
boolean isInvulnerable()public
String toString()@Nonnull@Override
Fields
Protected Fields (8)
protected
boolean debuffprotected
String entityEffectIdprotected
int entityEffectIndexprotected
boolean infiniteprotected
float initialDurationprotected
boolean invulnerableprotected
float remainingDurationprotected
String statusEffectIconPrivate/Package Fields (3)
private
boolean hasBeenDamagedprivate
DamageCalculatorSystems.Sequence sequentialHitsprivate
float sinceLastDamage