Interface IEffectHandHeldItem
public interface IEffectHandHeldItem
The interface Effect handheld item.
-
Method Summary
Modifier and TypeMethodDescriptiondefault EffectListgetEffectsForSelfOnAttack(net.minecraft.world.damagesource.DamageSource source, net.minecraft.world.entity.LivingEntity owner, float amount) Gets effects for self on attack.default EffectListgetEffectsForTargetOnAttack(net.minecraft.world.damagesource.DamageSource source, net.minecraft.world.entity.LivingEntity owner, float amount) Gets effects for target on attack.default EffectListgetEffectsWhenInHand(net.minecraft.world.entity.LivingEntity entity) Gets effects when in hand.
-
Method Details
-
getEffectsWhenInHand
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 sourceowner- the owner of itemamount- 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 sourceowner- the owner of itemamount- the amount of damage is about to deal- Returns:
- the effects for target on attack
-