Files
PrimalSorcery/build/tmp/recompileMc/sources/net/minecraft/potion/PotionAttackDamage.java
Mohammad-Ali Minaie b86dedad2f base mod created
2018-10-08 09:07:47 -04:00

19 lines
550 B
Java

package net.minecraft.potion;
import net.minecraft.entity.ai.attributes.AttributeModifier;
public class PotionAttackDamage extends Potion
{
protected final double bonusPerLevel;
protected PotionAttackDamage(boolean isBadEffectIn, int liquidColorIn, double bonusPerLevelIn)
{
super(isBadEffectIn, liquidColorIn);
this.bonusPerLevel = bonusPerLevelIn;
}
public double getAttributeModifierAmount(int amplifier, AttributeModifier modifier)
{
return this.bonusPerLevel * (double)(amplifier + 1);
}
}