Class ServerPlayerMixin

java.lang.Object
net.thewinnt.cutscenes.mixin.ServerPlayerMixin
All Implemented Interfaces:
ServerPlayerExt

public class ServerPlayerMixin extends Object implements ServerPlayerExt
  • Constructor Details

    • ServerPlayerMixin

      public ServerPlayerMixin()
  • Method Details

    • csapi$getCutsceneTicks

      public int csapi$getCutsceneTicks()
      Specified by:
      csapi$getCutsceneTicks in interface ServerPlayerExt
      Returns:
      the remaining ticks for the cutscene the player's watching, or 0 if they aren't
    • csapi$setCutsceneTicks

      public void csapi$setCutsceneTicks(int value)
      Description copied from interface: ServerPlayerExt
      Sets the remaining amount of ticks that the player will be watching a cutscene for
      Specified by:
      csapi$setCutsceneTicks in interface ServerPlayerExt
      Parameters:
      value - the amount of cutscene ticks remaining
    • csapi$getRunningCutscene

      @Nullable public @Nullable CutsceneType csapi$getRunningCutscene()
      Specified by:
      csapi$getRunningCutscene in interface ServerPlayerExt
      Returns:
      the cutscene the player's watching, or null if they aren't
    • csapi$setRunningCutscene

      public void csapi$setRunningCutscene(CutsceneType type)
      Description copied from interface: ServerPlayerExt
      Sets a cutscene that the player is watching. Does not affect the client in any way and doesn't start a cutscene there.
      Specified by:
      csapi$setRunningCutscene in interface ServerPlayerExt
      Parameters:
      type - the cutscene to start watching
    • tick

      public void tick(org.spongepowered.asm.mixin.injection.callback.CallbackInfo callback)
    • isSpectator

      public void isSpectator(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> callback)
    • hurt

      public void hurt(net.minecraft.world.damagesource.DamageSource source, float amount, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> callback)