Package net.minecraft.potion
Class Effect
- All Implemented Interfaces:
IForgeEffect
,IForgeRegistryEntry<Effect>
- Direct Known Subclasses:
AbsorptionEffect
,AttackDamageEffect
,HealthBoostEffect
,InstantEffect
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Attribute,
AttributeModifier> private final EffectType
private final int
private String
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributeModifier
(Attribute p_220304_1_, String p_220304_2_, double p_220304_3_, AttributeModifier.Operation p_220304_5_) void
addAttributeModifiers
(LivingEntity p_111185_1_, AttributeModifierManager p_111185_2_, int p_111185_3_) void
applyEffectTick
(LivingEntity p_76394_1_, int p_76394_2_) void
applyInstantenousEffect
(Entity p_180793_1_, Entity p_180793_2_, LivingEntity p_180793_3_, int p_180793_4_, double p_180793_5_) static Effect
byId
(int p_188412_0_) double
getAttributeModifierValue
(int p_111183_1_, AttributeModifier p_111183_2_) int
getColor()
static int
protected String
boolean
boolean
isDurationEffectTick
(int p_76397_1_, int p_76397_2_) boolean
void
removeAttributeModifiers
(LivingEntity p_111187_1_, AttributeModifierManager p_111187_2_, int p_111187_3_) Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEffect
getCurativeItems, getEffect, getGuiSortColor, renderHUDEffect, renderInventoryEffect, shouldRender, shouldRenderHUD, shouldRenderInvText
-
Field Details
-
attributeModifiers
-
category
-
color
private final int color -
descriptionId
-
-
Constructor Details
-
Effect
-
-
Method Details
-
byId
-
getId
-
applyEffectTick
-
applyInstantenousEffect
public void applyInstantenousEffect(@Nullable Entity p_180793_1_, @Nullable Entity p_180793_2_, LivingEntity p_180793_3_, int p_180793_4_, double p_180793_5_) -
isDurationEffectTick
public boolean isDurationEffectTick(int p_76397_1_, int p_76397_2_) -
isInstantenous
public boolean isInstantenous() -
getOrCreateDescriptionId
-
getDescriptionId
-
getDisplayName
-
getCategory
-
getColor
public int getColor() -
addAttributeModifier
public Effect addAttributeModifier(Attribute p_220304_1_, String p_220304_2_, double p_220304_3_, AttributeModifier.Operation p_220304_5_) -
getAttributeModifiers
-
removeAttributeModifiers
public void removeAttributeModifiers(LivingEntity p_111187_1_, AttributeModifierManager p_111187_2_, int p_111187_3_) -
addAttributeModifiers
public void addAttributeModifiers(LivingEntity p_111185_1_, AttributeModifierManager p_111185_2_, int p_111185_3_) -
getAttributeModifierValue
-
isBeneficial
public boolean isBeneficial()
-