public class PotionHealth extends Potion
absorption, blindness, confusion, damageBoost, digSlowdown, digSpeed, field_180143_D, field_180144_E, field_180145_F, field_180146_G, field_180147_A, field_180148_B, field_180149_C, field_180151_b, field_180153_z, fireResistance, harm, heal, healthBoost, hunger, id, invisibility, jump, moveSlowdown, moveSpeed, nightVision, poison, potionTypes, regeneration, resistance, saturation, waterBreathing, weakness, wither
Constructor and Description |
---|
PotionHealth(int potionID,
ResourceLocation location,
boolean badEffect,
int potionColor) |
Modifier and Type | Method and Description |
---|---|
boolean |
isInstant()
Returns true if the potion has an instant effect instead of a continuous one (eg Harming)
|
boolean |
isReady(int p_76397_1_,
int p_76397_2_)
checks if Potion effect is ready to be applied this tick.
|
affectEntity, applyAttributesModifiersToEntity, getAttributeModifierAmount, getAttributeModifierMap, getDurationString, getEffectiveness, getId, getLiquidColor, getName, getPotionFromResourceLocation, getPotionLocations, getStatusIconIndex, hasStatusIcon, isBadEffect, isUsable, performEffect, registerPotionAttributeModifier, removeAttributesModifiersFromEntity, renderInventoryEffect, setEffectiveness, setIconIndex, setPotionName, shouldRender, shouldRenderInvText
public PotionHealth(int potionID, ResourceLocation location, boolean badEffect, int potionColor)