Class LivingEntityMixin

java.lang.Object
net.minecraft.entity.Entity
io.github.xrickastley.sevenelements.mixin.LivingEntityMixin
All Implemented Interfaces:
ILivingEntity, AttachmentTarget, ComponentsAccess, DataTracked, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable, org.ladysnake.cca.api.v3.component.ComponentAccess

public abstract class LivingEntityMixin extends Entity implements ILivingEntity
  • Field Details

    • sevenelements$subdamage

      private float sevenelements$subdamage
    • sevenelements$blockedByCrystallizeShield

      private boolean sevenelements$blockedByCrystallizeShield
  • Constructor Details

  • Method Details

    • addToLivingAttributes

      private static DefaultAttributeContainer.Builder addToLivingAttributes(DefaultAttributeContainer.Builder builder)
    • triggerEntityOnRemoved

      private void triggerEntityOnRemoved(Collection<StatusEffectInstance> effects, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci, StatusEffectInstance effect)
    • applyNaturalElements

      private void applyNaturalElements(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    • resetCrystallizeShieldBlockedState

      private void resetCrystallizeShieldBlockedState(ServerWorld world, DamageSource source, float amount, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
    • applyCrystallizeShield

      private float applyCrystallizeShield(float amount, DamageSource source)
    • cancelIfFullyBlocked

      private void cancelIfFullyBlocked(ServerWorld world, DamageSource source, float amount, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
    • preventKnockbackIfCrystallize

      private boolean preventKnockbackIfCrystallize(boolean original, DamageSource source, com.llamalad7.mixinextras.sugar.ref.LocalBooleanRef hasCrystallizeShield)
    • elementDamageHandler

      private void elementDamageHandler(ServerWorld world, DamageSource source, float _amount, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci, float amount)
    • changeTimeUntilRegen

      private int changeTimeUntilRegen(int original, DamageSource source)
    • sevenelements$triggerDendroCoreReactions

      private void sevenelements$triggerDendroCoreReactions(ServerWorld world, DamageSource source)
    • sevenelements$setBlockedByCrystallizeShield

      public void sevenelements$setBlockedByCrystallizeShield(boolean blocked)
      Description copied from interface: ILivingEntity
      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.
      Specified by:
      sevenelements$setBlockedByCrystallizeShield in interface ILivingEntity
    • sevenelements$isWet

      public boolean sevenelements$isWet()
      Description copied from interface: ILivingEntity
      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.
      Specified by:
      sevenelements$isWet in interface ILivingEntity
      Returns:
      whether this entity is touching water, is being rained on, or is touching a bubble column
      See Also: