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