Class EntityRegainHealthEvent
Dispatched when an entity regains health
Namespace: OpenAPI.Events.Entity
Assembly: OpenAPI.dll
Syntax
public class EntityRegainHealthEvent : EntityEvent
Constructors
| Improve this Doc View SourceEntityRegainHealthEvent(MiNET.Entities.Entity, Int32, Int32)
Declaration
public EntityRegainHealthEvent(MiNET.Entities.Entity entity, int previousHealth, int newHealth)
Parameters
Type | Name | Description |
---|---|---|
MiNET.Entities.Entity | entity | The entity who's health was regained |
System.Int32 | previousHealth | The entity's previous health |
System.Int32 | newHealth | The entity's new health |
Properties
| Improve this Doc View SourceNewHealth
Declaration
public int NewHealth { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PreviousHealth
Declaration
public int PreviousHealth { get; }
Property Value
Type | Description |
---|---|
System.Int32 |