Interface IEffectHandHeldItem


public interface IEffectHandHeldItem
The interface Effect handheld item.
  • Method Summary

    Modifier and Type
    Method
    Description
    default EffectList
    getEffectsForSelfOnAttack(net.minecraft.world.damagesource.DamageSource source, net.minecraft.world.entity.LivingEntity owner, float amount)
    Gets effects for self on attack.
    default EffectList
    getEffectsForTargetOnAttack(net.minecraft.world.damagesource.DamageSource source, net.minecraft.world.entity.LivingEntity owner, float amount)
    Gets effects for target on attack.
    default EffectList
    getEffectsWhenInHand(net.minecraft.world.entity.LivingEntity entity)
    Gets effects when in hand.
  • Method Details

    • getEffectsWhenInHand

      default EffectList getEffectsWhenInHand(net.minecraft.world.entity.LivingEntity entity)
      Gets effects when in hand.
      Parameters:
      entity - the LivingEntity item holder
      Returns:
      the effects when in hand
    • getEffectsForSelfOnAttack

      default EffectList getEffectsForSelfOnAttack(net.minecraft.world.damagesource.DamageSource source, net.minecraft.world.entity.LivingEntity owner, float amount)
      Gets effects for self on attack.
      Parameters:
      source - the source
      owner - the owner of item
      amount - the amount of damage is about to deal
      Returns:
      the effects for self on attack
    • getEffectsForTargetOnAttack

      default EffectList getEffectsForTargetOnAttack(net.minecraft.world.damagesource.DamageSource source, net.minecraft.world.entity.LivingEntity owner, float amount)
      Gets effects for target on attack.
      Parameters:
      source - the source
      owner - the owner of item
      amount - the amount of damage is about to deal
      Returns:
      the effects for target on attack