Interface MouseEvent
- All Superinterfaces:
 Event
Provides contextual information about mouse movement and what button caused the event.
- 
Method Summary
Modifier and TypeMethodDescriptionGets the button that was pressed to trigger this event, orMouseButton.NONEif this button is not related to a mouse button action.org.bukkit.entity.PlayerGets the player that caused this eventorg.joml.Vector2fGets the screen coordinates of the viewer's cursororg.joml.Vector3fGets the world space position of the viewer's cursorbooleanTests if the viewer has the shift key held down.Methods inherited from interface com.juliewoolie.dom.event.Event
getCurrentTarget, getDocument, getPhase, getTarget, getType, isBubbling, isCancellable, isCancelled, isComposed, isPropagationStopped, preventDefault, stopPropagation 
- 
Method Details
- 
isShiftPressed
boolean isShiftPressed()Tests if the viewer has the shift key held down.- Returns:
 true, if the shift key was pressedfalseotherwise
 - 
getButton
MouseButton getButton()Gets the button that was pressed to trigger this event, orMouseButton.NONEif this button is not related to a mouse button action.- Returns:
 - Pressed button
 
 - 
getScreenPosition
org.joml.Vector2f getScreenPosition()Gets the screen coordinates of the viewer's cursor- Returns:
 - Cursor screen position
 
 - 
getWorldPosition
org.joml.Vector3f getWorldPosition()Gets the world space position of the viewer's cursor- Returns:
 - Cursor world position
 
 - 
getPlayer
org.bukkit.entity.Player getPlayer()Gets the player that caused this event- Returns:
 - Player
 
 
 -