ScreenMouseEvents

public final class ScreenMouseEvents

Events related to use of the mouse in a Screen.

All of these events work on top of a specific screen instance. Subscriptions will only last as long as the screen itself, they'll disappear once the screen gets refreshed, closed or replaced. Use BEFORE_INIT to register the desired events every time it is necessary.

Events are fired in the following order:

{@code AllowX -> BeforeX -> AfterX}
If the result of the Allow event is false, then Before and After are not called.

See also

Types

AfterMouseClick
Link copied to clipboard
public interface AfterMouseClick
AfterMouseRelease
Link copied to clipboard
public interface AfterMouseRelease
AfterMouseScroll
Link copied to clipboard
public interface AfterMouseScroll
AllowMouseClick
Link copied to clipboard
public interface AllowMouseClick
AllowMouseRelease
Link copied to clipboard
public interface AllowMouseRelease
AllowMouseScroll
Link copied to clipboard
public interface AllowMouseScroll
BeforeMouseClick
Link copied to clipboard
public interface BeforeMouseClick
BeforeMouseRelease
Link copied to clipboard
public interface BeforeMouseRelease
BeforeMouseScroll
Link copied to clipboard
public interface BeforeMouseScroll

Functions

afterMouseClick
Link copied to clipboard
static Event<ScreenMouseEvents.AfterMouseClickafterMouseClick(Screen screen)
An event that is called after a mouse click is processed for a screen.
afterMouseRelease
Link copied to clipboard
static Event<ScreenMouseEvents.AfterMouseReleaseafterMouseRelease(Screen screen)
An event that is called after the release of a mouse click is processed for a screen.
afterMouseScroll
Link copied to clipboard
static Event<ScreenMouseEvents.AfterMouseScrollafterMouseScroll(Screen screen)
An event that is called after mouse scrolling is processed for a screen.
allowMouseClick
Link copied to clipboard
static Event<ScreenMouseEvents.AllowMouseClickallowMouseClick(Screen screen)
An event that checks if the mouse click should be allowed.
allowMouseRelease
Link copied to clipboard
static Event<ScreenMouseEvents.AllowMouseReleaseallowMouseRelease(Screen screen)
An event that checks if the mouse click should be allowed to release in a screen.
allowMouseScroll
Link copied to clipboard
static Event<ScreenMouseEvents.AllowMouseScrollallowMouseScroll(Screen screen)
An event that is checks if the mouse should be allowed to scroll in a screen.
beforeMouseClick
Link copied to clipboard
static Event<ScreenMouseEvents.BeforeMouseClickbeforeMouseClick(Screen screen)
An event that is called before a mouse click is processed for a screen.
beforeMouseRelease
Link copied to clipboard
static Event<ScreenMouseEvents.BeforeMouseReleasebeforeMouseRelease(Screen screen)
An event that is called before the release of a mouse click is processed for a screen.
beforeMouseScroll
Link copied to clipboard
static Event<ScreenMouseEvents.BeforeMouseScrollbeforeMouseScroll(Screen screen)
An event that is called after mouse scrolling is processed for a screen.

Sources

jvm source
Link copied to clipboard