Interface IFullscreen
public interface IFullscreen
-
Method Summary
Modifier and TypeMethodDescriptionvoidcenterOn(double x, double z) Centers the map on x, z coordvoidclose()Closes the map.doublegetCenterBlockX(boolean withDragOffset) Center Block XdoublegetCenterBlockZ(boolean withDragOffset) Center Block Znet.minecraft.client.MinecraftGets minecraftGets the fullscreen mouseDrag position.net.minecraft.client.gui.GuiScreenGets the screen.Gets the current UIStatevoidMoves to the next maptypevoidupdateMapType(Context.MapType mapType, Integer vSlice, int dimension) Updates to a maptype.voidzoomIn()Zooms invoidzoomOut()Zoomes out.
-
Method Details
-
updateMapType
Updates to a maptype.- Parameters:
mapType- - The maptype.vSlice- - The slice.dimension- - The dimension
-
toggleMapType
void toggleMapType()Moves to the next maptype -
zoomIn
void zoomIn()Zooms in -
zoomOut
void zoomOut()Zoomes out. -
centerOn
void centerOn(double x, double z) Centers the map on x, z coord- Parameters:
x- - The X coord.z- - The Z coord.
-
close
void close()Closes the map. -
getUiState
UIState getUiState()Gets the current UIState- Returns:
- - The uiState.
-
getMinecraft
net.minecraft.client.Minecraft getMinecraft()Gets minecraft- Returns:
- Minecraft
-
getScreen
net.minecraft.client.gui.GuiScreen getScreen()Gets the screen.- Returns:
- the Screen.
-
getMouseDrag
Point2D.Double getMouseDrag()Gets the fullscreen mouseDrag position.- Returns:
- Point2D.Double of the mouse drag.
-
getCenterBlockX
double getCenterBlockX(boolean withDragOffset) Center Block X- Parameters:
withDragOffset- - with the calculated drag offset.- Returns:
- position of the center X block
-
getCenterBlockZ
double getCenterBlockZ(boolean withDragOffset) Center Block Z- Parameters:
withDragOffset- - with the calculated drag offset.- Returns:
- position of the center Z block
-