public abstract class ConfigurablePotion extends net.minecraft.potion.Potion implements IConfigurable
| Modifier and Type | Field and Description |
|---|---|
protected ExtendedConfig |
eConfig |
blindness, confusion, damageBoost, digSlowdown, digSpeed, field_76405_D, field_76406_E, field_76407_F, field_76408_G, field_76409_A, field_76410_B, field_76411_C, field_76423_b, field_76434_w, field_76442_z, field_76443_y, field_76444_x, fireResistance, harm, heal, hunger, id, invisibility, jump, moveSlowdown, moveSpeed, nightVision, poison, potionTypes, regeneration, resistance, waterBreathing, weakness, wither| Modifier | Constructor and Description |
|---|---|
protected |
ConfigurablePotion(ExtendedConfig<PotionConfig> eConfig,
boolean badEffect,
int color,
int iconIndex)
Make a new Enchantment instance
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAmplifier(net.minecraft.entity.EntityLivingBase entity) |
int |
getAmplifier(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.potion.Potion potion) |
ExtendedConfig<?> |
getConfig() |
int |
getStatusIconIndex() |
boolean |
isActiveOn(net.minecraft.entity.EntityLivingBase entity) |
boolean |
isActiveOn(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.potion.Potion potion) |
void |
onEntityUpdate(net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent event) |
protected abstract void |
onUpdate(net.minecraft.entity.EntityLivingBase entity) |
affectEntity, applyAttributesModifiersToEntity, func_111183_a, func_111184_a, func_111186_k, getDurationString, getEffectiveness, getId, getLiquidColor, getName, hasStatusIcon, isBadEffect, isInstant, isReady, isUsable, performEffect, removeAttributesModifiersFromEntity, renderInventoryEffect, setEffectiveness, setIconIndex, setPotionName, shouldRenderInvTextprotected ExtendedConfig eConfig
protected ConfigurablePotion(ExtendedConfig<PotionConfig> eConfig, boolean badEffect, int color, int iconIndex)
eConfig - Config for this enchantment.badEffect - If the potion effect is bad.color - The color of the potion.iconIndex - The sprite index of the icon.public int getStatusIconIndex()
getStatusIconIndex in class net.minecraft.potion.Potionpublic ExtendedConfig<?> getConfig()
getConfig in interface IConfigurablepublic boolean isActiveOn(net.minecraft.entity.EntityLivingBase entity)
public boolean isActiveOn(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.potion.Potion potion)
public int getAmplifier(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.potion.Potion potion)
public int getAmplifier(net.minecraft.entity.EntityLivingBase entity)
protected abstract void onUpdate(net.minecraft.entity.EntityLivingBase entity)
public void onEntityUpdate(net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent event)