Interface EntityHealthChangeCallback
public interface EntityHealthChangeCallback
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.fabricmc.fabric.api.event.Event<EntityHealthChangeCallback>Callback for entity health change. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResulthealth(net.minecraft.world.entity.LivingEntity entity, float health)
-
Field Details
-
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)
-