Interface LivingEntityEvent.StatusEffectAdded

Enclosing interface:
LivingEntityEvent

public static interface LivingEntityEvent.StatusEffectAdded
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    invoke(net.minecraft.entity.LivingEntity entity, net.minecraft.entity.effect.StatusEffectInstance effect, @Nullable net.minecraft.entity.Entity source)
    A TEvent that is invoked after a StatusEffectInstance has been added to a LivingEntity.
  • Method Details

    • invoke

      void invoke(net.minecraft.entity.LivingEntity entity, net.minecraft.entity.effect.StatusEffectInstance effect, @Nullable @Nullable net.minecraft.entity.Entity source)
      A TEvent that is invoked after a StatusEffectInstance has been added to a LivingEntity.
      Parameters:
      entity - The LivingEntity that received the effect.
      effect - The StatusEffectInstance.
      source - An optional Entity that was the cause of the effect.