Uses of Class
net.neoforged.neoforge.common.EffectCure
Packages that use EffectCure
Package
Description
-
Uses of EffectCure in net.minecraft.world.effect
Fields in net.minecraft.world.effect with type parameters of type EffectCureModifier and TypeFieldDescriptionprivate final Set
<EffectCure> MobEffectInstance.cures
private final Optional
<Set<EffectCure>> MobEffectInstance.Details.cures
The field for thecures
record component.Methods in net.minecraft.world.effect that return types with arguments of type EffectCure -
Uses of EffectCure in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type EffectCureModifier and TypeMethodDescriptionboolean
LivingEntity.removeEffectsCuredBy
(EffectCure cure) Removes all potion effects that have the givenEffectCure
in their set of cures -
Uses of EffectCure in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common declared as EffectCureModifier and TypeFieldDescriptionstatic final EffectCure
EffectCures.HONEY
Cure used when a honey bottle is consumed.static final EffectCure
EffectCures.MILK
Cure used when a milk bucket is consumed.static final EffectCure
EffectCures.PROTECTED_BY_TOTEM
Cure used when a totem of undying protects the player from death.Fields in net.neoforged.neoforge.common with type parameters of type EffectCureModifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec
<EffectCure> EffectCure.CODEC
private static final Map
<String, EffectCure> EffectCure.CURES
static final Set
<EffectCure> EffectCures.DEFAULT_CURES
static final StreamCodec
<io.netty.buffer.ByteBuf, EffectCure> EffectCure.STREAM_CODEC
Methods in net.neoforged.neoforge.common that return EffectCureModifier and TypeMethodDescriptionstatic EffectCure
Gets or creates a new EffectCure for the given name.Methods in net.neoforged.neoforge.common that return types with arguments of type EffectCureModifier and TypeMethodDescriptionstatic Collection
<EffectCure> EffectCure.getAllCures()
Returns all registered cures. -
Uses of EffectCure in net.neoforged.neoforge.common.extensions
Method parameters in net.neoforged.neoforge.common.extensions with type arguments of type EffectCureModifier and TypeMethodDescriptiondefault void
IMobEffectExtension.fillEffectCures
(Set<EffectCure> cures, MobEffectInstance effectInstance) Fill the given set with theEffectCure
s this effect should be curable with by default -
Uses of EffectCure in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type EffectCureModifier and TypeMethodDescriptionstatic boolean
EventHooks.onEffectRemoved
(LivingEntity entity, Holder<MobEffect> effect, @Nullable EffectCure cure) static boolean
EventHooks.onEffectRemoved
(LivingEntity entity, MobEffectInstance effectInstance, @Nullable EffectCure cure) -
Uses of EffectCure in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as EffectCureMethods in net.neoforged.neoforge.event.entity.living that return EffectCureModifier and TypeMethodDescription@Nullable EffectCure
MobEffectEvent.Remove.getCure()
Returns theEffectCure
the effect is being cured by. Null if the effect is not removed due to being cured.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type EffectCureModifierConstructorDescriptionRemove
(LivingEntity living, Holder<MobEffect> effect, @Nullable EffectCure cure) Remove
(LivingEntity living, MobEffectInstance effectInstance, @Nullable EffectCure cure)