Class LivingEntityMixin

java.lang.Object
net.minecraft.entity.Entity
io.github.xrickastley.sevenelements.mixin.LivingEntityMixin
All Implemented Interfaces:
ILivingEntity, AttachmentTarget, DataTracked, ScoreHolder, Nameable, EntityLike, 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)
    • 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