You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
Java
26 lines
1.0 KiB
Java
package net.minecraft.potion;
|
|
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
import net.minecraft.entity.ai.attributes.BaseAttributeMap;
|
|
|
|
public class PotionAbsoption extends Potion
|
|
{
|
|
private static final String __OBFID = "CL_00001524";
|
|
|
|
protected PotionAbsoption(int p_i1569_1_, boolean p_i1569_2_, int p_i1569_3_)
|
|
{
|
|
super(p_i1569_1_, p_i1569_2_, p_i1569_3_);
|
|
}
|
|
|
|
public void removeAttributesModifiersFromEntity(EntityLivingBase p_111187_1_, BaseAttributeMap p_111187_2_, int p_111187_3_)
|
|
{
|
|
p_111187_1_.setAbsorptionAmount(p_111187_1_.getAbsorptionAmount() - (float)(4 * (p_111187_3_ + 1)));
|
|
super.removeAttributesModifiersFromEntity(p_111187_1_, p_111187_2_, p_111187_3_);
|
|
}
|
|
|
|
public void applyAttributesModifiersToEntity(EntityLivingBase p_111185_1_, BaseAttributeMap p_111185_2_, int p_111185_3_)
|
|
{
|
|
p_111185_1_.setAbsorptionAmount(p_111185_1_.getAbsorptionAmount() + (float)(4 * (p_111185_3_ + 1)));
|
|
super.applyAttributesModifiersToEntity(p_111185_1_, p_111185_2_, p_111185_3_);
|
|
}
|
|
} |