Package net.thewinnt.cutscenes.mixin
Class ServerPlayerMixin
java.lang.Object
net.thewinnt.cutscenes.mixin.ServerPlayerMixin
- All Implemented Interfaces:
ServerPlayerExt
-
Constructor Summary
Constructors -
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.voidhurt(net.minecraft.world.damagesource.DamageSource source, float amount, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> callback) voidisSpectator(org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> callback) voidtick(org.spongepowered.asm.mixin.injection.callback.CallbackInfo callback)
-
Constructor Details
-
ServerPlayerMixin
public ServerPlayerMixin()
-
-
Method Details
-
csapi$getCutsceneTicks
public int csapi$getCutsceneTicks()- Specified by:
csapi$getCutsceneTicksin interfaceServerPlayerExt- 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:ServerPlayerExtSets the remaining amount of ticks that the player will be watching a cutscene for- Specified by:
csapi$setCutsceneTicksin interfaceServerPlayerExt- Parameters:
value- the amount of cutscene ticks remaining
-
csapi$getRunningCutscene
- Specified by:
csapi$getRunningCutscenein interfaceServerPlayerExt- Returns:
- the cutscene the player's watching, or
nullif they aren't
-
csapi$setRunningCutscene
Description copied from interface:ServerPlayerExtSets 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$setRunningCutscenein interfaceServerPlayerExt- 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)
-