Uses of Class
net.neoforged.neoforge.common.EffectCure
Package
Description
-
Uses of EffectCure in net.minecraft.world.effect
Modifier and TypeFieldDescriptionprivate final Set
<EffectCure> MobEffectInstance.cures
private final Optional
<Set<EffectCure>> MobEffectInstance.Details.cures
The field for thecures
record component. -
Uses of EffectCure in net.minecraft.world.entity
Modifier 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
Modifier 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.Modifier 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
Modifier and TypeMethodDescriptionstatic EffectCure
Gets or creates a new EffectCure for the given name.Modifier and TypeMethodDescriptionstatic Collection
<EffectCure> EffectCure.getAllCures()
Returns all registered cures. -
Uses of EffectCure in net.neoforged.neoforge.common.extensions
Modifier 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
Modifier 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
Modifier 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.ModifierConstructorDescriptionRemove
(LivingEntity living, Holder<MobEffect> effect, @Nullable EffectCure cure) Remove
(LivingEntity living, MobEffectInstance effectInstance, @Nullable EffectCure cure)