public interface Waypoint
| Modifier and Type | Method and Description |
|---|---|
default java.lang.Integer |
getBeaconColor() |
net.minecraft.core.BlockPos |
getBlockPos() |
int |
getBlue() |
int |
getColor() |
@Nullable java.lang.String |
getCustomData(java.lang.String key)
Gets the custom data stored on a waypoint
|
default @Nullable java.lang.String |
getDescription()
Optional free-form description shown in the waypoint manager tooltip.
|
java.util.TreeSet<java.lang.String> |
getDimensions() |
int |
getGreen() |
java.lang.String |
getGroupId()
Unique id of the group this waypoint belongs to.
|
java.lang.String |
getGuid()
Unique Id for each waypoint, will not change.
|
java.lang.Integer |
getIconColor()
Gets color.
|
net.minecraft.resources.ResourceLocation |
getIconIdentifier()
Gets the texture resource location.
|
float |
getIconOpacity()
Gets opacity.
|
int |
getIconRotation()
Gets the rotation in degrees the image should be oriented.
|
int |
getIconTextureHeight()
Gets the image textureHeight.
|
int |
getIconTextureWidth()
Gets the image textureWidth.
|
java.lang.String |
getId()
Non-unique id that is a comibination of modId and waypoint position.
|
default java.lang.Integer |
getLabelColor() |
java.lang.String |
getModId() |
java.lang.String |
getName() |
java.lang.String |
getPrimaryDimension() |
int |
getRed() |
int |
getX() |
int |
getY() |
int |
getZ() |
boolean |
isEnabled()
Is waypoint enabled.
|
boolean |
isPersistent() |
default void |
setBeaconColor(java.lang.Integer beaconColor) |
void |
setBlockPos(net.minecraft.core.BlockPos pos) |
void |
setBlue(int blue) |
void |
setColor(int color) |
void |
setCustomData(java.lang.String key,
@Nullable java.lang.String data)
Allows add-on devs to set custom data on their waypoints for use, this is not used by journeymap.
|
default void |
setDescription(@Nullable java.lang.String description) |
void |
setDimensions(java.util.Collection<java.lang.String> dims) |
void |
setEnabled(boolean enabled)
Set waypoint enabled / disabled
|
void |
setGreen(int green) |
void |
setIconColor(java.lang.Integer color)
Sets color used to tint the image.
|
void |
setIconIdentifier(net.minecraft.resources.ResourceLocation ResourceLocation)
Sets the texture resource location.
|
void |
setIconOpacity(float opacity)
Sets opacity.
|
void |
setIconRotation(int rotation)
Sets the rotation in degrees the image should be oriented.
|
void |
setIconTextureHeight(java.lang.Integer height)
Sets the texture height
|
default void |
setIconTextureSize(int width,
int height)
Set the texture size
|
void |
setIconTextureWidth(java.lang.Integer width)
Sets the texture width
|
default void |
setLabelColor(java.lang.Integer labelColor) |
void |
setName(java.lang.String name) |
void |
setPersistent(boolean persistent) |
void |
setPos(int x,
int y,
int z) |
default void |
setPrimaryDimension(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) |
void |
setPrimaryDimension(java.lang.String dimension) |
void |
setRed(int red) |
default void |
setShowBeacon(boolean showBeacon) |
void |
setShowDeviation(boolean showDeviation)
Sets the show deviation text on the beacon.
|
default void |
setShowIcon(boolean showIcon) |
default void |
setShowInWorld(boolean showInWorld) |
default void |
setShowLabel(boolean showLabel) |
default void |
setShowOnLocatorBar(boolean showOnLocatorBar) |
default void |
setShowOnMap(boolean showOnMap) |
void |
setX(int x) |
void |
setY(int y) |
void |
setZ(int z) |
default boolean |
showBeacon() |
boolean |
showDeviation()
Is deviation being shown
|
default boolean |
showIcon() |
default boolean |
showInWorld() |
default boolean |
showLabel() |
default boolean |
showOnLocatorBar() |
default boolean |
showOnMap() |
java.lang.String getId()
java.lang.String getGuid()
java.lang.String getGroupId()
java.lang.String getModId()
java.lang.String getName()
void setName(java.lang.String name)
@Nullable default @Nullable java.lang.String getDescription()
"jm." as i18n keys.
Default returns null for backwards compatibility with addons that
implement Waypoint directly.default void setDescription(@Nullable
@Nullable java.lang.String description)
getDescription()void setPos(int x,
int y,
int z)
void setBlockPos(net.minecraft.core.BlockPos pos)
net.minecraft.core.BlockPos getBlockPos()
int getX()
void setX(int x)
int getY()
void setY(int y)
int getZ()
void setZ(int z)
int getRed()
void setRed(int red)
int getGreen()
void setGreen(int green)
int getBlue()
void setBlue(int blue)
int getColor()
void setColor(int color)
java.util.TreeSet<java.lang.String> getDimensions()
void setDimensions(java.util.Collection<java.lang.String> dims)
default void setPrimaryDimension(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
void setPrimaryDimension(java.lang.String dimension)
java.lang.String getPrimaryDimension()
boolean isPersistent()
void setPersistent(boolean persistent)
boolean isEnabled()
void setEnabled(boolean enabled)
enabled - - enabledboolean showDeviation()
void setShowDeviation(boolean showDeviation)
showDeviation - - the booleanint getIconRotation()
void setIconRotation(int rotation)
rotation - in degreesjava.lang.Integer getIconColor()
void setIconColor(java.lang.Integer color)
color - the colorfloat getIconOpacity()
void setIconOpacity(float opacity)
opacity - the opacitynet.minecraft.resources.ResourceLocation getIconIdentifier()
void setIconIdentifier(net.minecraft.resources.ResourceLocation ResourceLocation)
ResourceLocation - - the resource locationint getIconTextureWidth()
void setIconTextureWidth(java.lang.Integer width)
width - - the texture widthint getIconTextureHeight()
void setIconTextureHeight(java.lang.Integer height)
height - - the texture heightdefault void setIconTextureSize(int width,
int height)
width - - the texture widthheight - - the texture heightvoid setCustomData(java.lang.String key,
@Nullable
@Nullable java.lang.String data)
key - - they key for the datadata - - String@Nullable @Nullable java.lang.String getCustomData(java.lang.String key)
key - - they key for the datadefault boolean showBeacon()
default void setShowBeacon(boolean showBeacon)
default boolean showOnMap()
default void setShowOnMap(boolean showOnMap)
default boolean showInWorld()
default void setShowInWorld(boolean showInWorld)
default boolean showLabel()
default void setShowLabel(boolean showLabel)
default boolean showIcon()
default void setShowIcon(boolean showIcon)
default boolean showOnLocatorBar()
default void setShowOnLocatorBar(boolean showOnLocatorBar)
default java.lang.Integer getBeaconColor()
null to follow the icon colordefault void setBeaconColor(java.lang.Integer beaconColor)
default java.lang.Integer getLabelColor()
null to follow the icon colordefault void setLabelColor(java.lang.Integer labelColor)