PotionHealthBoost .java

net.minecraft.potion.PotionHealthBoost (class, 24 lines): members: removeAttributesModifiersFromEntity. imports: BaseAttributeMap, EntityLivingBase.

net.minecraft.potionclass24 linescommonextends Potion829 B

API Surface (1)

void removeAttributesModifiersFromEntity(EntityLivingBase entityLivingBaseIn, BaseAttributeMap p_111187_2_, int amplifier)

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

PotionHealthBoost.java24 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.potion;
2
3
import net.minecraft.entity.EntityLivingBase;
4
import net.minecraft.entity.ai.attributes.BaseAttributeMap;
5
import net.minecraft.util.ResourceLocation;
6
7
public class PotionHealthBoost extends Potion
8
{
9
    public PotionHealthBoost(int potionID, ResourceLocation location, boolean badEffect, int potionColor)
10
    {
11
        super(potionID, location, badEffect, potionColor);
12
    }
13
14
    public void removeAttributesModifiersFromEntity(EntityLivingBase entityLivingBaseIn, BaseAttributeMap p_111187_2_, int amplifier)
15
    {
16
        super.removeAttributesModifiersFromEntity(entityLivingBaseIn, p_111187_2_, amplifier);
17
18
        if (entityLivingBaseIn.getHealth() > entityLivingBaseIn.getMaxHealth())
19
        {
20
            entityLivingBaseIn.setHealth(entityLivingBaseIn.getMaxHealth());
21
        }
22
    }
23
}
24

Deobfuscated MCP 1.8.9 source of PotionHealthBoost from Marcelektro/MavenMCP-1.8.9 (net/minecraft/potion/PotionHealthBoost.java), stored verbatim.