Class ActiveEntityEffect
java.lang.Object
com.hypixel.hytale.server.core.entity.effect.ActiveEntityEffect
- All Implemented Interfaces:
Damage.Source
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<ActiveEntityEffect> protected booleanprivate static final floatprotected Stringprotected intprivate booleanprotected booleanprotected floatprotected booleanprivate static final Messageprotected floatprivate DamageCalculatorSystems.Sequenceprivate floatprotected String -
Constructor Summary
ConstructorsConstructorDescriptionActiveEntityEffect(String entityEffectId, int entityEffectIndex, boolean infinite, boolean invulnerable) ActiveEntityEffect(String entityEffectId, int entityEffectIndex, float duration, boolean debuff, String statusEffectIcon, boolean invulnerable) ActiveEntityEffect(String entityEffectId, int entityEffectIndex, float initialDuration, float remainingDuration, boolean infinite, boolean debuff, String statusEffectIcon, float sinceLastDamage, boolean hasBeenDamaged, DamageCalculatorSystems.Sequence sequentialHits, boolean invulnerable) -
Method Summary
Modifier and TypeMethodDescriptionprivate intcalculateCyclesToRun(EntityEffect entityEffect, float dt) getDeathMessage(Damage info, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) intfloatfloatbooleanisDebuff()booleanbooleanvoidtick(CommandBuffer<EntityStore> commandBuffer, Ref<EntityStore> ref, EntityEffect entityEffect, EntityStatMap entityStatMapComponent, float dt) private voidtickDamage(CommandBuffer<EntityStore> commandBuffer, Ref<EntityStore> ref, EntityEffect entityEffect, int cyclesToRun) private static voidtickStatChanges(CommandBuffer<EntityStore> commandBuffer, Ref<EntityStore> ref, EntityEffect entityEffect, EntityStatMap entityStatMapComponent, int cyclesToRun) toString()
-
Field Details
-
CODEC
-
DEFAULT_DURATION
private static final float DEFAULT_DURATION- See Also:
-
MESSAGE_GENERAL_DAMAGE_CAUSES_UNKNOWN
-
entityEffectId
-
entityEffectIndex
protected int entityEffectIndex -
initialDuration
protected float initialDuration -
remainingDuration
protected float remainingDuration -
infinite
protected boolean infinite -
debuff
protected boolean debuff -
statusEffectIcon
-
sinceLastDamage
private float sinceLastDamage -
hasBeenDamaged
private boolean hasBeenDamaged -
invulnerable
protected boolean invulnerable -
sequentialHits
-
-
Constructor Details
-
ActiveEntityEffect
public ActiveEntityEffect() -
ActiveEntityEffect
public ActiveEntityEffect(@Nonnull String entityEffectId, int entityEffectIndex, float initialDuration, float remainingDuration, boolean infinite, boolean debuff, @Nullable String statusEffectIcon, float sinceLastDamage, boolean hasBeenDamaged, @Nonnull DamageCalculatorSystems.Sequence sequentialHits, boolean invulnerable) -
ActiveEntityEffect
-
ActiveEntityEffect
public ActiveEntityEffect(@Nonnull String entityEffectId, int entityEffectIndex, boolean infinite, boolean invulnerable)
-
-
Method Details
-
tick
public void tick(@Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Ref<EntityStore> ref, @Nonnull EntityEffect entityEffect, @Nonnull EntityStatMap entityStatMapComponent, float dt) -
calculateCyclesToRun
-
tickStatChanges
private static void tickStatChanges(@Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Ref<EntityStore> ref, @Nonnull EntityEffect entityEffect, @Nonnull EntityStatMap entityStatMapComponent, int cyclesToRun) -
tickDamage
private void tickDamage(@Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Ref<EntityStore> ref, @Nonnull EntityEffect entityEffect, int cyclesToRun) -
getEntityEffectIndex
public int getEntityEffectIndex() -
getInitialDuration
public float getInitialDuration() -
getRemainingDuration
public float getRemainingDuration() -
isInfinite
public boolean isInfinite() -
isDebuff
public boolean isDebuff() -
isInvulnerable
public boolean isInvulnerable() -
getDeathMessage
@Nonnull public Message getDeathMessage(@Nonnull Damage info, @Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
getDeathMessagein interfaceDamage.Source
-
toString
-