Class EffectParticleModificationEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
net.neoforged.neoforge.event.entity.living.EffectParticleModificationEvent
Fires for each effect to allow modification or replacement of the particle options (you can set it to null to reset it to default).
This event is not
This event is fired on the
This event is not
ICancellableEvent
.
This event is fired on the
NeoForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.minecraft.world.effect.MobEffectInstance
private boolean
private net.minecraft.core.particles.ParticleOptions
private final net.minecraft.core.particles.ParticleOptions
-
Constructor Summary
ConstructorsConstructorDescriptionEffectParticleModificationEvent
(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.effect.MobEffectInstance effect) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.effect.MobEffectInstance
net.minecraft.core.particles.ParticleOptions
net.minecraft.core.particles.ParticleOptions
boolean
void
setParticleOptions
(@Nullable net.minecraft.core.particles.ParticleOptions options) void
setVisible
(boolean visible) Methods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
-
Field Details
-
effect
private final net.minecraft.world.effect.MobEffectInstance effect -
originalOptions
private final net.minecraft.core.particles.ParticleOptions originalOptions -
options
private net.minecraft.core.particles.ParticleOptions options -
isVisible
private boolean isVisible
-
-
Constructor Details
-
EffectParticleModificationEvent
public EffectParticleModificationEvent(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.effect.MobEffectInstance effect)
-
-
Method Details
-
getEffect
public net.minecraft.world.effect.MobEffectInstance getEffect() -
getOriginalParticleOptions
public net.minecraft.core.particles.ParticleOptions getOriginalParticleOptions() -
getParticleOptions
public net.minecraft.core.particles.ParticleOptions getParticleOptions() -
setParticleOptions
public void setParticleOptions(@Nullable @Nullable net.minecraft.core.particles.ParticleOptions options) -
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible)
-