Class FullEffectArmorSet
java.lang.Object
me.cybersteve.equiplib.armorset.base.EffectArmorSet
me.cybersteve.equiplib.armorset.impl.FullEffectArmorSet
- All Implemented Interfaces:
Comparable<EffectArmorSet>,IEffectArmorSetExtension
The type Full effect armor set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected 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
ConstructorsConstructorDescriptionFullEffectArmorSet(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 TypeMethodDescriptiongetEffectsForAttackerWhenHit(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
-
Field Details
-
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, onHitForAttackerFloat, EffectList> 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, onHitForSelfFloat, EffectList> 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 idwhenWearing- the when wearingonHitForSelf- the on hit for selfonHitForAttacker- the on hit for attacker
-
-
Method Details
-
getEffectsWhenWearing
Description copied from interface:IEffectArmorSetExtensionGets 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:IEffectArmorSetExtensionGets effects for self when hit.- Parameters:
source- the DamageSourcetarget- the set wearer LivingEntityamount- 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:IEffectArmorSetExtensionGets effects for attacker when hit.- Parameters:
source- the DamageSourcetarget- the set wearer LivingEntityamount- the amount of damage wearer is about to receive- Returns:
- the effects for attacker when hit
-