Class MinecraftMap
java.lang.Object
com.ldtteam.blockui.UiRenderMacros
com.ldtteam.blockui.Pane
com.minecolonies.core.client.gui.map.MinecraftMap
- All Implemented Interfaces:
AutoCloseable
Simple minecraft map element.
-
Field Summary
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, 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 TypeMethodDescriptionvoidclose()voiddrawSelf(com.ldtteam.blockui.BOGuiGraphics ms, double mx, double my) Draw this image on the GUI.voidsetMapData(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, drawEntity, drawLineRect, drawLineRect, drawLineRect, drawLineRectGradient, drawLineRectGradient, drawLineRectGradient, fill, fill, fillGradient, fillGradient, hLine, hLine, line, line, populateBlitTriangles, populateFillGradientTriangles, populateFillTriangles, vLine, vLine
-
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.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)
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-