base mod created
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user