Interface ServerPlayerExt

All Known Implementing Classes:
ServerPlayerMixin

public interface ServerPlayerExt
A duck interface for some functions added to ServerPlayer
  • 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

      @Nullable @Nullable CutsceneType csapi$getRunningCutscene()
      Returns:
      the cutscene the player's watching, or null if 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

      void csapi$setRunningCutscene(CutsceneType type)
      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