Package net.thewinnt.cutscenes.effect
Class ServerEffectWrapper<T>
java.lang.Object
net.thewinnt.cutscenes.effect.CutsceneEffect<T>
net.thewinnt.cutscenes.effect.ServerEffectWrapper<T>
-
Field Summary
FieldsFields inherited from class net.thewinnt.cutscenes.effect.CutsceneEffect
config, endTime, startTime -
Constructor Summary
ConstructorsConstructorDescriptionServerEffectWrapper(double startTime, double endTime, T config, CutsceneEffectSerializer<T> type) -
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
-
Field Details
-
type
-
-
Constructor Details
-
ServerEffectWrapper
public ServerEffectWrapper(double startTime, double endTime, T config, CutsceneEffectSerializer<T> type)
-
-
Method Details
-
onStart
Description copied from class:CutsceneEffectCalled before the first tick of the effect- Specified by:
onStartin classCutsceneEffect<T>- 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<T>- 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<T>- Parameters:
cutscene- the cutscene type that this effect is used from
-
getSerializer
- Specified by:
getSerializerin classCutsceneEffect<T>
-