Package net.thewinnt.cutscenes.util
Interface ServerPlayerExt
- All Known Implementing Classes:
ServerPlayerMixin
public interface ServerPlayerExt
A duck interface for some functions added to
ServerPlayer-
Method Summary
Modifier and TypeMethodDescriptionint@Nullable CutsceneTypevoidcsapi$setCutsceneTicks(int value) Sets the remaining amount of ticks that the player will be watching a cutscene forvoidSets a cutscene that the player is watching.
-
Method Details
-
csapi$getCutsceneTicks
int csapi$getCutsceneTicks()- Returns:
- the remaining ticks for the cutscene the player's watching, or 0 if they aren't
-
csapi$getRunningCutscene
- Returns:
- the cutscene the player's watching, or
nullif they aren't
-
csapi$setCutsceneTicks
void csapi$setCutsceneTicks(int value) Sets the remaining amount of ticks that the player will be watching a cutscene for- Parameters:
value- the amount of cutscene ticks remaining
-
csapi$setRunningCutscene
Sets a cutscene that the player is watching. Does not affect the client in any way and doesn't start a cutscene there.- Parameters:
type- the cutscene to start watching
-