
net.minecraft.server.MobEffectAttackDamage Maven / Gradle / Ivy
package net.minecraft.server;
public class MobEffectAttackDamage extends MobEffectList {
protected MobEffectAttackDamage(int i, MinecraftKey minecraftkey, boolean flag, int j) {
super(i, minecraftkey, flag, j);
}
public double a(int i, AttributeModifier attributemodifier) {
return this.id == MobEffectList.WEAKNESS.id ? (double) (-0.5F * (float) (i + 1)) : 1.3D * (double) (i + 1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy