@ParametersAreNonnullByDefault public final class MarkerOverlay extends Overlay
Setters use the Builder pattern so they can be chained.
Note that like all Displayables, simply changing this object doesn't guarantee the player will get the changes.
You must call IClientAPI.show(Displayable) in order for the changes to take effect
in JourneyMap.
activeMapTypes, activeUIs, dimension, displayOrder, label, maxZoom, minZoom, needsRerender, overlayGroupName, overlayListener, textProperties, titledisplayType, id, modId| Constructor and Description |
|---|
MarkerOverlay(java.lang.String modId,
net.minecraft.core.BlockPos point,
MapImage icon)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MapImage |
getIcon()
Icon to display in the marker.
|
net.minecraft.core.BlockPos |
getPoint()
Location of the marker.
|
MarkerOverlay |
setIcon(MapImage icon)
Sets the icon to display in the marker.
|
MarkerOverlay |
setPoint(net.minecraft.core.BlockPos point)
Sets the location of the marker.
|
java.lang.String |
toString() |
clearFlagForRerender, flagForRerender, getActiveMapTypes, getActiveUIs, getDimension, getDisplayOrder, getLabel, getMaxZoom, getMinZoom, getNeedsRerender, getOverlayGroupName, getOverlayListener, getTextProperties, getTitle, isActiveIn, isInZoomRange, setActiveMapTypes, setActiveUIs, setDimension, setDisplayOrder, setLabel, setMaxZoom, setMinZoom, setOverlayGroupName, setOverlayListener, setTextProperties, setTitle, toStringHelperclampOpacity, clampRGB, compareTo, equals, getDisplayType, getGuid, getId, getModId, hashCodepublic MarkerOverlay(java.lang.String modId,
net.minecraft.core.BlockPos point,
MapImage icon)
modId - Your mod id.point - Location of the marker.icon - The icon to display as the marker.public net.minecraft.core.BlockPos getPoint()
public MarkerOverlay setPoint(net.minecraft.core.BlockPos point)
point - locationpublic MapImage getIcon()
public MarkerOverlay setIcon(MapImage icon)
icon - marker imagepublic java.lang.String toString()
toString in class java.lang.Object