public static class FullscreenMapEvent.ClickEvent extends FullscreenMapEvent
FullscreenMapEvent.ClickEvent, FullscreenMapEvent.MouseDraggedEvent, FullscreenMapEvent.MouseMoveEvent, FullscreenMapEvent.Stagedimensiontimestamp| Constructor and Description |
|---|
ClickEvent(FullscreenMapEvent.Stage stage,
net.minecraft.core.BlockPos location,
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level,
java.awt.geom.Point2D.Double mousePosition,
int button)
Map clicked event, fired when a user clicks on the map.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getButton() |
java.awt.geom.Point2D.Double |
getMousePosition() |
double |
getMouseX() |
double |
getMouseY() |
FullscreenMapEvent.Stage |
getStage() |
boolean |
isCancellable()
Whether the event is cancellable.
|
getLevel, getLocationcancel, isCancelledpublic ClickEvent(FullscreenMapEvent.Stage stage, net.minecraft.core.BlockPos location, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level, java.awt.geom.Point2D.Double mousePosition, int button)
stage - - The stagelocation - - The BlockPos of the click.level - - The dimension.mousePosition - - The precalculated scaled mouse position.button - - The mouse button.public FullscreenMapEvent.Stage getStage()
public double getMouseX()
public double getMouseY()
public java.awt.geom.Point2D.Double getMousePosition()
public int getButton()
public boolean isCancellable()
JourneyMapEventisCancellable in class JourneyMapEvent