public class Effect extends ForgeRegistryEntry<Effect> implements IForgeEffect
Modifier and Type | Field and Description |
---|---|
private java.util.Map<IAttribute,AttributeModifier> |
attributeModifierMap |
private int |
liquidColor |
private java.lang.String |
name |
private EffectType |
type |
delegate
Modifier | Constructor and Description |
---|---|
protected |
Effect(EffectType typeIn,
int liquidColorIn) |
Modifier and Type | Method and Description |
---|---|
Effect |
addAttributesModifier(IAttribute attributeIn,
java.lang.String uuid,
double amount,
AttributeModifier.Operation operation) |
void |
affectEntity(Entity source,
Entity indirectSource,
LivingEntity entityLivingBaseIn,
int amplifier,
double health) |
void |
applyAttributesModifiersToEntity(LivingEntity entityLivingBaseIn,
AbstractAttributeMap attributeMapIn,
int amplifier) |
static Effect |
get(int potionID) |
double |
getAttributeModifierAmount(int amplifier,
AttributeModifier modifier) |
java.util.Map<IAttribute,AttributeModifier> |
getAttributeModifierMap() |
ITextComponent |
getDisplayName() |
EffectType |
getEffectType() |
static int |
getId(Effect potionIn) |
int |
getLiquidColor() |
java.lang.String |
getName() |
protected java.lang.String |
getOrCreateDescriptionId() |
boolean |
isBeneficial() |
boolean |
isInstant() |
boolean |
isReady(int duration,
int amplifier) |
void |
performEffect(LivingEntity entityLivingBaseIn,
int amplifier) |
void |
removeAttributesModifiersFromEntity(LivingEntity entityLivingBaseIn,
AbstractAttributeMap attributeMapIn,
int amplifier) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurativeItems, getEffect, getGuiSortColor, renderHUDEffect, renderInventoryEffect, shouldRender, shouldRenderHUD, shouldRenderInvText
private final java.util.Map<IAttribute,AttributeModifier> attributeModifierMap
private final EffectType type
private final int liquidColor
@Nullable private java.lang.String name
protected Effect(EffectType typeIn, int liquidColorIn)
@Nullable public static Effect get(int potionID)
public static int getId(Effect potionIn)
public void performEffect(LivingEntity entityLivingBaseIn, int amplifier)
public void affectEntity(@Nullable Entity source, @Nullable Entity indirectSource, LivingEntity entityLivingBaseIn, int amplifier, double health)
public boolean isReady(int duration, int amplifier)
public boolean isInstant()
protected java.lang.String getOrCreateDescriptionId()
public java.lang.String getName()
public ITextComponent getDisplayName()
public EffectType getEffectType()
public int getLiquidColor()
public Effect addAttributesModifier(IAttribute attributeIn, java.lang.String uuid, double amount, AttributeModifier.Operation operation)
public java.util.Map<IAttribute,AttributeModifier> getAttributeModifierMap()
public void removeAttributesModifiersFromEntity(LivingEntity entityLivingBaseIn, AbstractAttributeMap attributeMapIn, int amplifier)
public void applyAttributesModifiersToEntity(LivingEntity entityLivingBaseIn, AbstractAttributeMap attributeMapIn, int amplifier)
public double getAttributeModifierAmount(int amplifier, AttributeModifier modifier)
public boolean isBeneficial()