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 EffectTypeprivate final intprivate StringFields 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_) voidaddAttributeModifiers(LivingEntity p_111185_1_, AttributeModifierManager p_111185_2_, int p_111185_3_) voidapplyEffectTick(LivingEntity p_76394_1_, int p_76394_2_) voidapplyInstantenousEffect(Entity p_180793_1_, Entity p_180793_2_, LivingEntity p_180793_3_, int p_180793_4_, double p_180793_5_) static EffectbyId(int p_188412_0_) doublegetAttributeModifierValue(int p_111183_1_, AttributeModifier p_111183_2_) intgetColor()static intprotected StringbooleanbooleanisDurationEffectTick(int p_76397_1_, int p_76397_2_) booleanvoidremoveAttributeModifiers(LivingEntity p_111187_1_, AttributeModifierManager p_111187_2_, int p_111187_3_) Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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()
-