Class EntityAttributeModifiedEvents
java.lang.Object
com.github.clevernucleus.dataattributes.api.event.EntityAttributeModifiedEvents
Holds some attribute events. Both occur on both server and client.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.fabricmc.fabric.api.event.Event<EntityAttributeModifiedEvents.Clamped>Fired after the attribute instance value was calculated, but before it was output.static final net.fabricmc.fabric.api.event.Event<EntityAttributeModifiedEvents.Modified>Fired when the value of an attribute instance was modified, either by adding/removing a modifier or changing the value of the modifier, or by reloading the datapack and having the living entity renew its attribute container. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MODIFIED
public static final net.fabricmc.fabric.api.event.Event<EntityAttributeModifiedEvents.Modified> MODIFIEDFired when the value of an attribute instance was modified, either by adding/removing a modifier or changing the value of the modifier, or by reloading the datapack and having the living entity renew its attribute container. Living entity and modifiers may or may not be null. -
CLAMPED
public static final net.fabricmc.fabric.api.event.Event<EntityAttributeModifiedEvents.Clamped> CLAMPEDFired after the attribute instance value was calculated, but before it was output. This offers one last chance to alter the value in some way (for example round a decimal to an integer).
-
-
Constructor Details
-
EntityAttributeModifiedEvents
public EntityAttributeModifiedEvents()
-