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
FieldsFields 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, yFields inherited from class com.ldtteam.blockui.UiRenderMacros
HALF_BIAS -
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor.MinecraftMap(com.ldtteam.blockui.PaneParams params) Constructor used by the xml loader. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawSelf(com.ldtteam.blockui.BOGuiGraphics ms, double mx, double my) Draw this image on the GUI.voidsetMapData(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, wasCursorInPaneMethods 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
-
Field Details
-
MAP_SIZE
public static final int MAP_SIZE- See Also:
-
MAP_CENTER
public static final int MAP_CENTER- See Also:
-
-
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:
drawSelfin classcom.ldtteam.blockui.Pane- Parameters:
mx- Mouse x (relative to parent)my- Mouse y (relative to parent)
-