Interface ILivingEntity

All Known Implementing Classes:
CrystallizeShardEntity, DendroCoreEntity, EnderDragonEntityMixin, HostileEntity, LivingEntity, LivingEntityMixin, MobEntity, PathAwareEntity, PlayerEntityMixin, PrioritizedLivingEntityMixin, PrioritizedPlayerEntityMixin, SevenElementsEntity, WitherEntityMixin

public interface ILivingEntity
  • Method Details

    • sevenelements$getPlannedAttacker

      @Nullable default @Nullable Entity sevenelements$getPlannedAttacker()
      Gets the "planned" attacker. This is updated at the very start of the damage method, meaning that the attacker may not be able to attack after all succeeding conditions are checked.

      This is the attacker of the most recent DamageSource passed through LivingEntity#damage.
      See Also:
    • sevenelements$getPlannedDamageSource

      @Nullable default @Nullable DamageSource sevenelements$getPlannedDamageSource()
      Gets the "planned" damage source. This is updated at the very start of the damage method, meaning that the damage source may not be applied after all succeeding conditions are checked.

      This is the most recent DamageSource passed through LivingEntity#damage.
    • sevenelements$setBlockedByCrystallizeShield

      default void sevenelements$setBlockedByCrystallizeShield(boolean blocked)
      Sets whether the damage was blocked by the Crystallize Shield.

      To only be used by subclasses of LivingEntity that don't call upon LivingEntity#applyDamage.
    • sevenelements$isWet

      default boolean sevenelements$isWet()
      Returns whether this entity is touching water, is being rained on, or is touching a bubble column.

      Seven Elements's reimplementation of Entity#isWet, on living entities handled via Mixin and Interface Injection.
      Returns:
      whether this entity is touching water, is being rained on, or is touching a bubble column
      See Also: