Interface EntityHealthChangeCallback


public interface EntityHealthChangeCallback
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.fabricmc.fabric.api.event.Event<EntityHealthChangeCallback>
    Callback for entity health change.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.InteractionResult
    health(net.minecraft.world.entity.LivingEntity entity, float health)
     
  • Field Details

    • EVENT

      static final net.fabricmc.fabric.api.event.Event<EntityHealthChangeCallback> EVENT
      Callback for entity health change. Triggered whenever the game updates the entity's health. Returns the entity and it's new health
  • Method Details

    • health

      net.minecraft.world.InteractionResult health(net.minecraft.world.entity.LivingEntity entity, float health)