Class AbstractOverlayEffect<C,O extends Overlay>
java.lang.Object
net.thewinnt.cutscenes.effect.CutsceneEffect<C>
net.thewinnt.cutscenes.effect.type.AbstractOverlayEffect<C,O>
- Type Parameters:
C- the configuration typeO- the overlay type
- Direct Known Subclasses:
AppearingTextEffect,BlitEffect,RectangleEffect,TriangleStripEffect
A base class for effects using overlays
-
Field Summary
FieldsFields inherited from class net.thewinnt.cutscenes.effect.CutsceneEffect
config, endTime, startTime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract OcreateOverlay(C config) voidonEnd(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, getSerializer, toNetwork
-
Field Details
-
overlay
-
time
-
-
Constructor Details
-
AbstractOverlayEffect
-
-
Method Details
-
createOverlay
-
onStart
Description copied from class:CutsceneEffectCalled before the first tick of the effect- Specified by:
onStartin classCutsceneEffect<C>- 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<C>- 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<C>- Parameters:
cutscene- the cutscene type that this effect is used from
-