# PlayerConsumeHeartEvent
> Fired when a player consumes a lifesteal heart. Can be cancelled to prevent consumption.
`gg.lode.observerapi.api.event`
---
## Signature
```java
public class PlayerConsumeHeartEvent extends BaseEvent implements Cancellable
```
---
## Methods
### getPlayer
```java
public Player getPlayer()
```
**Returns:** `Player` - the player consuming the heart
---
### cancellationMessage
```java
public @Nullable Component cancellationMessage()
```
**Returns:** `@Nullable Component` - the message shown when the event is cancelled, or `null`
---
### cancellationMessage (setter)
```java
public void cancellationMessage(Component message)
```
Sets the message shown to the player when the event is cancelled.
| Parameter | Type | Description |
|-----------|------|-------------|
| `message` | `Component` | The cancellation message |
---
### isCancelled
```java
public boolean isCancelled()
```
**Returns:** `boolean` - `true` if the event is cancelled
---
### setCancelled
```java
public void setCancelled(boolean cancelled)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `cancelled` | `boolean` | Whether to cancel the event |
---
## Related Pages
- [[ILifestealManager]]
- [[PlayerWithdrawHeartEvent]]