Class EntityAttributeModifiedEvents

java.lang.Object
com.github.clevernucleus.dataattributes.api.event.EntityAttributeModifiedEvents

public final class EntityAttributeModifiedEvents extends Object
Holds some attribute events. Both occur on both server and client.
  • Field Details

    • MODIFIED

      public static final net.fabricmc.fabric.api.event.Event<EntityAttributeModifiedEvents.Modified> 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. Living entity and modifiers may or may not be null.
    • CLAMPED

      public static final net.fabricmc.fabric.api.event.Event<EntityAttributeModifiedEvents.Clamped> CLAMPED
      Fired 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()