Class MinecraftMap

java.lang.Object
com.ldtteam.blockui.UiRenderMacros
com.ldtteam.blockui.Pane
com.minecolonies.core.client.gui.map.MinecraftMap

public class MinecraftMap extends com.ldtteam.blockui.Pane
Simple minecraft map element.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.ldtteam.blockui.UiRenderMacros

    com.ldtteam.blockui.UiRenderMacros.ResolvedBlit
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    Fields inherited from class com.ldtteam.blockui.Pane

    alignment, cursor, debugging, enabled, focus, height, hoverSource, id, lastClickedPane, mc, onHover, onHoverId, parent, visible, wasCursorInPane, width, window, x, y

    Fields inherited from class com.ldtteam.blockui.UiRenderMacros

    HALF_BIAS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default Constructor.
    MinecraftMap(com.ldtteam.blockui.PaneParams params)
    Constructor used by the xml loader.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drawSelf(com.ldtteam.blockui.BOGuiGraphics ms, double mx, double my)
    Draw this image on the GUI.
    void
    setMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapData)
    Set the fitting map data.

    Methods inherited from class com.ldtteam.blockui.Pane

    canHandleClick, clearFocus, click, disable, draw, drawHidden, drawLast, drawSelfLast, enable, findFirstPaneByType, findPaneByID, findPaneByType, findPaneOfTypeByID, getAlignment, getCursor, getFocus, getHeight, getHoverPane, getID, getParent, getWidth, getWindow, getX, getY, handleClick, handleHover, handleRightClick, hide, isClickable, isEnabled, isFocus, isPointInPane, isVisible, moveBy, off, on, onFocus, onFocusLost, onKeyTyped, onMouseDrag, onUpdate, parseChildren, putInside, rightClick, scissorsEnd, scissorsStart, scrollInput, setAlignment, setCursor, setEnabled, setFocus, setFocus, setHoverPane, setID, setParentView, setPosition, setSize, setVisible, setWindow, shouldDraw, show, wasCursorInPane

    Methods inherited from class com.ldtteam.blockui.UiRenderMacros

    blit, blit, blit, blit, blitRepeatable, blitSprite, blitSprite, drawEntity, drawLineRect, drawLineRect, drawLineRect, drawLineRectGradient, drawLineRectGradient, drawLineRectGradient, fill, fill, fillGradient, fillGradient, hLine, hLine, line, line, populateBlitTriangles, populateFillGradientTriangles, populateFillTriangles, resolveSprite, vLine, vLine

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • MinecraftMap

      public MinecraftMap()
      Default Constructor.
    • MinecraftMap

      public MinecraftMap(com.ldtteam.blockui.PaneParams params)
      Constructor used by the xml loader.
      Parameters:
      params - PaneParams loaded from the xml.
  • Method Details

    • setMapData

      public void setMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapData)
      Set the fitting map data.
      Parameters:
      mapData - the mapData to set.
    • drawSelf

      public void drawSelf(com.ldtteam.blockui.BOGuiGraphics ms, double mx, double my)
      Draw this image on the GUI.
      Overrides:
      drawSelf in class com.ldtteam.blockui.Pane
      Parameters:
      mx - Mouse x (relative to parent)
      my - Mouse y (relative to parent)