# CutsceneCallbackEvent
> Fired when a cutscene reaches a callback marker.
`gg.lode.lecternapi.api.event.CutsceneCallbackEvent`
---
## Signature
```java
public class CutsceneCallbackEvent extends LecternClientEvent
```
---
## Overview
When you add a `.callback()` to a cutscene, the client notifies the server when that tick is reached. This event fires, and the registered Runnable is also executed.
---
## Methods
### getCutsceneId
```java
public String getCutsceneId()
```
**Returns:** The ID of the cutscene.
---
### getCallbackId
```java
public int getCallbackId()
```
**Returns:** The internal callback ID (0-indexed based on order of `.callback()` calls).
---
## Example
```java
// In your cutscene definition
Cutscene cutscene = Cutscene.builder("tutorial")
.at(0)
.showText("intro", "Welcome!", MenuTransform.at(0, 0).centered(), 2.0f)
.then(40)
.callback(() -> player.sendMessage("Callback 0 triggered!"))
.then(40)
.callback(() -> player.sendMessage("Callback 1 triggered!"))
.build();
// Optional: listen to the event
@EventHandler
public void onCallback(CutsceneCallbackEvent event) {
if (event.getCutsceneId().equals("tutorial")) {
// Handle callback
}
}
```
---
## Related Pages
- [[Cutscene]] — Cutscene builder
- [[CutsceneCompleteEvent]] — Completion event
- [[ICutsceneManager]] — Playback control