Class PlaySoundEffect
java.lang.Object
net.thewinnt.cutscenes.effect.CutsceneEffect<PlaySoundConfiguration>
net.thewinnt.cutscenes.effect.type.PlaySoundEffect
-
Field Summary
Fields inherited from class net.thewinnt.cutscenes.effect.CutsceneEffect
config, endTime, startTime -
Constructor Summary
ConstructorsConstructorDescriptionPlaySoundEffect(double startTime, double endTime, PlaySoundConfiguration config) -
Method Summary
Modifier and TypeMethodDescriptionvoidonEnd(net.minecraft.client.multiplayer.ClientLevel level, CutsceneType cutscene) Called after the last tick of the effectvoidonFrame(double time, net.minecraft.client.multiplayer.ClientLevel level, CutsceneType cutscene) Called every frame that the cutscene is renderedvoidonStart(net.minecraft.client.multiplayer.ClientLevel level, CutsceneType cutscene) Called before the first tick of the effectMethods inherited from class net.thewinnt.cutscenes.effect.CutsceneEffect
fromJSON, fromNetwork, toNetwork
-
Constructor Details
-
PlaySoundEffect
-
-
Method Details
-
onStart
Description copied from class:CutsceneEffectCalled before the first tick of the effect- Specified by:
onStartin classCutsceneEffect<PlaySoundConfiguration>- Parameters:
cutscene- the cutscene type that this effect is used from
-
onFrame
public void onFrame(double time, net.minecraft.client.multiplayer.ClientLevel level, CutsceneType cutscene) Description copied from class:CutsceneEffectCalled every frame that the cutscene is rendered- Specified by:
onFramein classCutsceneEffect<PlaySoundConfiguration>- Parameters:
time- the time in ticks since the effect started, in range [0; endTime - startTime]level- the client level that the effect is running incutscene- the cutscene type that this effect is used from
-
onEnd
Description copied from class:CutsceneEffectCalled after the last tick of the effect- Specified by:
onEndin classCutsceneEffect<PlaySoundConfiguration>- Parameters:
cutscene- the cutscene type that this effect is used from
-
getSerializer
- Specified by:
getSerializerin classCutsceneEffect<PlaySoundConfiguration>
-