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

22 lines
749 B
Java

package net.minecraft.potion;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.ai.attributes.AbstractAttributeMap;
public class PotionHealthBoost extends Potion
{
public PotionHealthBoost(boolean isBadEffectIn, int liquidColorIn)
{
super(isBadEffectIn, liquidColorIn);
}
public void removeAttributesModifiersFromEntity(EntityLivingBase entityLivingBaseIn, AbstractAttributeMap attributeMapIn, int amplifier)
{
super.removeAttributesModifiersFromEntity(entityLivingBaseIn, attributeMapIn, amplifier);
if (entityLivingBaseIn.getHealth() > entityLivingBaseIn.getMaxHealth())
{
entityLivingBaseIn.setHealth(entityLivingBaseIn.getMaxHealth());
}
}
}