Class ScreenEffectEvents
java.lang.Object
net.ixdarklord.coolcatcanvas.api.event.v2.client.ScreenEffectEvents
Screen effects being turned on and off, and changed. All fire on the render thread.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic enumWhat turned an effect on or off.static interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventInvoker<ScreenEffectEvents.BeforeToggle>Before an effect is turned on or off, from any cause.static final EventInvoker<ScreenEffectEvents.LayersChanged>After the layer order changed, with the new order from bottom to top.static final EventInvoker<ScreenEffectEvents.Loaded>After an effect's shaders were (re)loaded, with resources or after a change needing it.static final EventInvoker<ScreenEffectEvents.StrengthChanged>After an effect's manual strength was set, or an animation of it started (with the value it heads to).static final EventInvoker<ScreenEffectEvents.Toggled>After an effect was turned on or off.static final EventInvoker<ScreenEffectEvents.UniformChanged>After a uniform was set, animated, bound, unbound or reset. -
Method Summary
-
Field Details
-
BEFORE_TOGGLE
Before an effect is turned on or off, from any cause. ReturningEventResult.INTERRUPTkeeps it as it is (an effect whose condition was vetoed isn't asked again until the condition changes). -
TOGGLED
After an effect was turned on or off. It may still be fading. -
STRENGTH_CHANGED
After an effect's manual strength was set, or an animation of it started (with the value it heads to). -
UNIFORM_CHANGED
After a uniform was set, animated, bound, unbound or reset. Not fired for the values bindings and animations produce every frame. -
LAYERS_CHANGED
After the layer order changed, with the new order from bottom to top. -
LOADED
After an effect's shaders were (re)loaded, with resources or after a change needing it.
-