Package com.gtnewhorizons.horizonqa.api
Interface TickCallbackHandle
public interface TickCallbackHandle
Controls a callback registered through
GameTestHelper.onEachTick(String, Runnable) or
GameTestHelper.onEachTickDisabled(String, Runnable).
A handle starts in the state selected by its registration method. Disabling is reversible; removal is permanent. All state changes are idempotent, and enabling or disabling a removed handle has no effect. Actual state changes are recorded in the test event log. Changes take effect before the next attempt to invoke the callback, including a callback later in the current END-phase pass.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disable this callback without removing it.voidenable()Enable this callback if it has not been removed.booleanReturn whether this callback is currently enabled and has not been removed.booleanReturn whether this callback has been permanently removed.voidremove()Permanently remove this callback from the test.
-
Method Details
-
enable
void enable()Enable this callback if it has not been removed. -
disable
void disable()Disable this callback without removing it. -
remove
void remove()Permanently remove this callback from the test. -
isEnabled
boolean isEnabled()Return whether this callback is currently enabled and has not been removed. -
isRemoved
boolean isRemoved()Return whether this callback has been permanently removed.
-