Class MouseButtonEvent
java.lang.Object
dev.myriadclient.api.event.Cancellable
dev.myriadclient.api.event.events.MouseButtonEvent
A mouse button was pressed or released in the game window, in a screen or not. Posted on the render thread before
Minecraft handles it. Cancel it to hide it from Minecraft (no attack or use, no click in the screen).
-
Constructor Summary
ConstructorsConstructorDescriptionMouseButtonEvent(int button, int action, int modifiers, boolean inScreen) Core's; only Myriad makes these. -
Method Summary
Modifier and TypeMethodDescriptionintaction()InputConstants.PRESSorInputConstants.RELEASE.intbutton()Which button:InputConstants.MOUSE_BUTTON_LEFT,_RIGHT,_MIDDLE, or higher (side buttons).booleaninScreen()Whether a screen was open when the button changed.booleanisPress()Whether the button went down.intThe modifier keys held, asInputConstants.MOD_*bits (MOD_SHIFT,MOD_CONTROL...).Methods inherited from class Cancellable
cancel, isCancelled, setCancelled
-
Constructor Details
-
MouseButtonEvent
@Internal public MouseButtonEvent(int button, int action, int modifiers, boolean inScreen) Core's; only Myriad makes these.
-
-
Method Details
-
button
public int button()Which button:InputConstants.MOUSE_BUTTON_LEFT,_RIGHT,_MIDDLE, or higher (side buttons). -
action
public int action()InputConstants.PRESSorInputConstants.RELEASE. -
modifiers
public int modifiers()The modifier keys held, asInputConstants.MOD_*bits (MOD_SHIFT,MOD_CONTROL...). -
inScreen
public boolean inScreen()Whether a screen was open when the button changed. -
isPress
public boolean isPress()Whether the button went down.
-