Package org.boxutil.base.api.everyframe
Interface BackgroundEveryFramePlugin
public interface BackgroundEveryFramePlugin
Running on another thread, not the vanilla thread.
Always running unless it was expired, the plugin run once in each frame, and then will check the expired sate.
All the plugin is unordered execution on random background thread,the order in which they are added is not guaranteed to be preserved during execution.
If a new plugin is added during the current frame, it is considered to start running only from the next frame onward.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleandefault voidrunAfterAdvance(float amount, boolean isPaused) default voidrunAfterRendering(float amount, boolean isPaused) default voidrunBeginAdvance(float amount, boolean isPaused) default voidrunBeginIllumination(float amount, boolean isPaused) default voidrunBeginRendering(float amount, boolean isPaused)
-
Method Details
-
isRenderingExpired
default boolean isRenderingExpired() -
runBeginRendering
default void runBeginRendering(float amount, boolean isPaused) -
runBeginIllumination
default void runBeginIllumination(float amount, boolean isPaused) -
runAfterRendering
default void runAfterRendering(float amount, boolean isPaused) -
isAdvanceExpired
default boolean isAdvanceExpired() -
runBeginAdvance
default void runBeginAdvance(float amount, boolean isPaused) -
runAfterAdvance
default void runAfterAdvance(float amount, boolean isPaused)
-