@ParametersAreNonnullByDefault public final class ImageOverlay 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 |
|---|
ImageOverlay(java.lang.String modId,
net.minecraft.core.BlockPos northWestPoint,
net.minecraft.core.BlockPos southEastPoint,
MapImage image)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MapImage |
getImage()
Image to display as the overlay.
|
net.minecraft.core.BlockPos |
getNorthWestPoint()
Top-left location of the image overlay.
|
net.minecraft.core.BlockPos |
getSouthEastPoint()
Bottom-right location of the image overlay.
|
ImageOverlay |
setImage(MapImage image)
Sets image to display as the overlay.
|
ImageOverlay |
setNorthWestPoint(net.minecraft.core.BlockPos northWestPoint)
Sets top-left location of the image overlay.
|
ImageOverlay |
setSouthEastPoint(net.minecraft.core.BlockPos southEastPoint)
Sets bottom-right location of the image overlay.
|
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 ImageOverlay(java.lang.String modId,
net.minecraft.core.BlockPos northWestPoint,
net.minecraft.core.BlockPos southEastPoint,
MapImage image)
modId - Your mod id.northWestPoint - Location of the top-left corner of the image.southEastPoint - Location of the lower-right corner of the image.image - The image to display as the overlay.public net.minecraft.core.BlockPos getNorthWestPoint()
public ImageOverlay setNorthWestPoint(net.minecraft.core.BlockPos northWestPoint)
northWestPoint - pointpublic net.minecraft.core.BlockPos getSouthEastPoint()
public ImageOverlay setSouthEastPoint(net.minecraft.core.BlockPos southEastPoint)
southEastPoint - pointpublic MapImage getImage()
public ImageOverlay setImage(MapImage image)
image - imagepublic java.lang.String toString()
toString in class java.lang.Object