Interface ILivingEntity
- All Known Implementing Classes:
CrystallizeShardEntity,DendroCoreEntity,EnderDragonEntityMixin,HostileEntity,LivingEntity,LivingEntityMixin,MobEntity,PathAwareEntity,PlayerEntityMixin,PrioritizedLivingEntityMixin,PrioritizedPlayerEntityMixin,SevenElementsEntity,WitherEntityMixin
public interface ILivingEntity
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable EntityGets the "planned" attacker.default @Nullable DamageSourceGets the "planned" damage source.default booleanReturns whether this entity is touching water, is being rained on, or is touching a bubble column.default voidsevenelements$setBlockedByCrystallizeShield(boolean blocked) Sets whether the damage was blocked by the Crystallize Shield.
-
Method Details
-
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 recentDamageSourcepassed throughLivingEntity#damage.- See Also:
-
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 recentDamageSourcepassed throughLivingEntity#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 ofLivingEntitythat don't call uponLivingEntity#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 ofEntity#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:
-