Class FullEffectArmorSet

java.lang.Object
me.cybersteve.equiplib.armorset.base.EffectArmorSet
me.cybersteve.equiplib.armorset.impl.FullEffectArmorSet
All Implemented Interfaces:
Comparable<EffectArmorSet>, IEffectArmorSetExtension

public class FullEffectArmorSet extends EffectArmorSet
The type Full effect armor set.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.commons.lang3.function.TriFunction<net.minecraft.world.damagesource.DamageSource,net.minecraft.world.entity.LivingEntity,Float,EffectList>
    The function that gets effects on hit for attacker.
    protected org.apache.commons.lang3.function.TriFunction<net.minecraft.world.damagesource.DamageSource,net.minecraft.world.entity.LivingEntity,Float,EffectList>
    The function that gets effects on hit for self.
    protected Function<net.minecraft.world.entity.LivingEntity,EffectList>
    The function that gets effects when wearing full set.

    Fields inherited from class me.cybersteve.equiplib.armorset.base.EffectArmorSet

    id
  • Constructor Summary

    Constructors
    Constructor
    Description
    FullEffectArmorSet(net.minecraft.resources.ResourceLocation id, Function<net.minecraft.world.entity.LivingEntity,EffectList> whenWearing, org.apache.commons.lang3.function.TriFunction<net.minecraft.world.damagesource.DamageSource,net.minecraft.world.entity.LivingEntity,Float,EffectList> onHitForSelf, org.apache.commons.lang3.function.TriFunction<net.minecraft.world.damagesource.DamageSource,net.minecraft.world.entity.LivingEntity,Float,EffectList> onHitForAttacker)
    Instantiates a new Full effect armor set.
  • Method Summary

    Modifier and Type
    Method
    Description
    getEffectsForAttackerWhenHit(net.minecraft.world.damagesource.DamageSource source, net.minecraft.world.entity.LivingEntity target, float amount)
    Gets effects for attacker when hit.
    getEffectsForSelfWhenHit(net.minecraft.world.damagesource.DamageSource source, net.minecraft.world.entity.LivingEntity target, float amount)
    Gets effects for self when hit.
    getEffectsWhenWearing(net.minecraft.world.entity.LivingEntity entity)
    Gets effects when wearing.

    Methods inherited from class me.cybersteve.equiplib.armorset.base.EffectArmorSet

    compareTo, equals, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • whenWearing

      protected Function<net.minecraft.world.entity.LivingEntity,EffectList> whenWearing
      The function that gets effects when wearing full set.
    • onHitForAttacker

      protected org.apache.commons.lang3.function.TriFunction<net.minecraft.world.damagesource.DamageSource,net.minecraft.world.entity.LivingEntity,Float,EffectList> onHitForAttacker
      The function that gets effects on hit for attacker.
    • onHitForSelf

      protected org.apache.commons.lang3.function.TriFunction<net.minecraft.world.damagesource.DamageSource,net.minecraft.world.entity.LivingEntity,Float,EffectList> onHitForSelf
      The function that gets effects on hit for self.
  • Constructor Details

    • FullEffectArmorSet

      public FullEffectArmorSet(net.minecraft.resources.ResourceLocation id, Function<net.minecraft.world.entity.LivingEntity,EffectList> whenWearing, org.apache.commons.lang3.function.TriFunction<net.minecraft.world.damagesource.DamageSource,net.minecraft.world.entity.LivingEntity,Float,EffectList> onHitForSelf, org.apache.commons.lang3.function.TriFunction<net.minecraft.world.damagesource.DamageSource,net.minecraft.world.entity.LivingEntity,Float,EffectList> onHitForAttacker)
      Instantiates a new Full effect armor set.
      Parameters:
      id - the id
      whenWearing - the when wearing
      onHitForSelf - the on hit for self
      onHitForAttacker - the on hit for attacker
  • Method Details

    • getEffectsWhenWearing

      public EffectList getEffectsWhenWearing(net.minecraft.world.entity.LivingEntity entity)
      Description copied from interface: IEffectArmorSetExtension
      Gets effects when wearing.
      Parameters:
      entity - the LivingEntity that is currently wearing the ArmorSet
      Returns:
      the effects when wearing
    • getEffectsForSelfWhenHit

      public EffectList getEffectsForSelfWhenHit(net.minecraft.world.damagesource.DamageSource source, net.minecraft.world.entity.LivingEntity target, float amount)
      Description copied from interface: IEffectArmorSetExtension
      Gets effects for self when hit.
      Parameters:
      source - the DamageSource
      target - the set wearer LivingEntity
      amount - the amount of damage wearer is about to receive
      Returns:
      the effects for self when hit
    • getEffectsForAttackerWhenHit

      public EffectList getEffectsForAttackerWhenHit(net.minecraft.world.damagesource.DamageSource source, net.minecraft.world.entity.LivingEntity target, float amount)
      Description copied from interface: IEffectArmorSetExtension
      Gets effects for attacker when hit.
      Parameters:
      source - the DamageSource
      target - the set wearer LivingEntity
      amount - the amount of damage wearer is about to receive
      Returns:
      the effects for attacker when hit