Interface IFullscreen


public interface IFullscreen
  • Method Details

    • updateMapType

      void updateMapType(Context.MapType mapType, Integer vSlice, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
      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.screens.Screen 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