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.curesprivate final Optional<Set<EffectCure>> MobEffectInstance.Details.curesThe field for thecuresrecord 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 TypeMethodDescriptionbooleanLivingEntity.removeEffectsCuredBy(EffectCure cure) Removes all potion effects that have the givenEffectCurein their set of cures -
Uses of EffectCure in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common declared as EffectCureModifier and TypeFieldDescriptionstatic final EffectCureEffectCures.HONEYCure used when a honey bottle is consumed.static final EffectCureEffectCures.MILKCure used when a milk bucket is consumed.static final EffectCureEffectCures.PROTECTED_BY_TOTEMCure 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.CODECprivate static final Map<String, EffectCure> EffectCure.CURESstatic final Set<EffectCure> EffectCures.DEFAULT_CURESstatic final StreamCodec<io.netty.buffer.ByteBuf, EffectCure> EffectCure.STREAM_CODECMethods in net.neoforged.neoforge.common that return EffectCureModifier and TypeMethodDescriptionstatic EffectCureGets 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 voidIMobEffectExtension.fillEffectCures(Set<EffectCure> cures, MobEffectInstance effectInstance) Fill the given set with theEffectCures 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 booleanEventHooks.onEffectRemoved(LivingEntity entity, Holder<MobEffect> effect, @Nullable EffectCure cure) static booleanEventHooks.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 EffectCureMobEffectEvent.Remove.getCure()Returns theEffectCurethe 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)