Interface Waypoint
public interface Waypoint
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.BlockPosintgetBlue()intgetColor()@Nullable StringGets the custom data stored on a waypointintgetGreen()Unique id of the group this waypoint belongs to.getGuid()Unique Id for each waypoint, will not change.Gets color.floatGets opacity.net.minecraft.resources.ResourceLocationGets the texture resource location.intGets the rotation in degrees the image should be oriented.intGets the image textureHeight.intGets the image textureWidth.getId()Non-unique id that is a comibination of modId and waypoint position.getModId()getName()intgetRed()intgetX()intgetY()intgetZ()booleanIs waypoint enabled.booleanvoidsetBlockPos(net.minecraft.core.BlockPos pos) voidsetBlue(int blue) voidsetColor(int color) voidsetCustomData(@Nullable String data) Allows add-on devs to set custom data on their waypoints for use, this is not used by journeymap.voidsetDimensions(Collection<String> dims) voidsetEnabled(boolean enabled) Set waypoint enabled / disabledvoidsetGreen(int green) voidsetIconColor(Integer color) Sets color used to tint the image.voidsetIconOpacity(float opacity) Sets opacity.voidsetIconResourceLoctaion(net.minecraft.resources.ResourceLocation resourceLocation) Sets the texture resource location.voidsetIconRotation(int rotation) Sets the rotation in degrees the image should be oriented.voidsetIconTextureHeight(Integer height) Sets the texture heightdefault voidsetIconTextureSize(int width, int height) Set the texture sizevoidsetIconTextureWidth(Integer width) Sets the texture widthvoidvoidsetPersistent(boolean persistent) voidsetPos(int x, int y, int z) voidsetPrimaryDimension(String dimension) default voidsetPrimaryDimension(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) voidsetRed(int red) voidsetShowDeviation(boolean showDeviation) Sets the show deviation text on the beacon.voidsetX(int x) voidsetY(int y) voidsetZ(int z) booleanIs deviation being shown
-
Method Details
-
getId
String getId()Non-unique id that is a comibination of modId and waypoint position. -
getGuid
String getGuid()Unique Id for each waypoint, will not change. -
getGroupId
String getGroupId()Unique id of the group this waypoint belongs to. -
getModId
String getModId() -
getName
String getName() -
setName
-
setPos
void setPos(int x, int y, int z) -
setBlockPos
void setBlockPos(net.minecraft.core.BlockPos pos) -
getBlockPos
net.minecraft.core.BlockPos getBlockPos() -
getX
int getX() -
setX
void setX(int x) -
getY
int getY() -
setY
void setY(int y) -
getZ
int getZ() -
setZ
void setZ(int z) -
getRed
int getRed() -
setRed
void setRed(int red) -
getGreen
int getGreen() -
setGreen
void setGreen(int green) -
getBlue
int getBlue() -
setBlue
void setBlue(int blue) -
getColor
int getColor() -
setColor
void setColor(int color) -
getDimensions
-
setDimensions
-
setPrimaryDimension
default void setPrimaryDimension(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) -
setPrimaryDimension
-
getPrimaryDimension
String getPrimaryDimension() -
isPersistent
boolean isPersistent() -
setPersistent
void setPersistent(boolean persistent) -
isEnabled
boolean isEnabled()Is waypoint enabled.- Returns:
- - the Enabled boolean
-
setEnabled
void setEnabled(boolean enabled) Set waypoint enabled / disabled- Parameters:
enabled- - enabled
-
showDeviation
boolean showDeviation()Is deviation being shown- Returns:
- - is showing
-
setShowDeviation
void setShowDeviation(boolean showDeviation) Sets the show deviation text on the beacon.- Parameters:
showDeviation- - the boolean
-
getIconRotation
int getIconRotation()Gets the rotation in degrees the image should be oriented. Zero is the default.- Returns:
- degrees
-
setIconRotation
void setIconRotation(int rotation) Sets the rotation in degrees the image should be oriented. Zero is the default.- Parameters:
rotation- in degrees
-
getIconColor
Integer getIconColor()Gets color.- Returns:
- the color
-
setIconColor
Sets color used to tint the image. Use 0xffffff for no tint. This is only to be used if the icon needs to have a separate color from the waypoint. Defaults to -1 which will tint the icon to the beacon color.- Parameters:
color- the color
-
getIconOpacity
float getIconOpacity()Gets opacity.- Returns:
- the opacity
-
setIconOpacity
void setIconOpacity(float opacity) Sets opacity.- Parameters:
opacity- the opacity
-
getIconResourceLocation
net.minecraft.resources.ResourceLocation getIconResourceLocation()Gets the texture resource location.- Returns:
- - ResourceLocation
-
setIconResourceLoctaion
void setIconResourceLoctaion(net.minecraft.resources.ResourceLocation resourceLocation) Sets the texture resource location.- Parameters:
resourceLocation- - the resource location
-
getIconTextureWidth
int getIconTextureWidth()Gets the image textureWidth.- Returns:
- textureWidth
-
setIconTextureWidth
Sets the texture width- Parameters:
width- - the texture width
-
getIconTextureHeight
int getIconTextureHeight()Gets the image textureHeight.- Returns:
- textureHeight
-
setIconTextureHeight
Sets the texture height- Parameters:
height- - the texture height
-
setIconTextureSize
default void setIconTextureSize(int width, int height) Set the texture size- Parameters:
width- - the texture widthheight- - the texture height
-
setCustomData
Allows add-on devs to set custom data on their waypoints for use, this is not used by journeymap.- Parameters:
data- - String
-
getCustomData
Gets the custom data stored on a waypoint- Returns:
-