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
Modifier and TypeFieldDescriptionprivate final MobEffectInstance
private boolean
private ParticleOptions
private final ParticleOptions
-
Constructor Summary
ConstructorDescriptionEffectParticleModificationEvent
(LivingEntity entity, MobEffectInstance effect) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setParticleOptions
(@Nullable ParticleOptions options) void
setVisible
(boolean visible) Methods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
-
Field Details
-
effect
-
originalOptions
-
options
-
isVisible
private boolean isVisible
-
-
Constructor Details
-
EffectParticleModificationEvent
-
-
Method Details
-
getEffect
-
getOriginalParticleOptions
-
getParticleOptions
-
setParticleOptions
-
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible)
-