Interface WaypointGroup
public interface WaypointGroup
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddWaypoint(Waypoint waypoint) booleanDoes waypoint group override individual waypoint colors.default IntegergetColor()@Nullable StringgetCustomData(String key) Gets the custom data stored on a waypoint groupgetGuid()Gets color.net.minecraft.resources.IdentifierGets the texture resource location.floatGets opacity.intGets the rotation in degrees the image should be oriented.intGets the image textureHeight.intGets the image textureWidth.default IntegergetModId()getName()@Nullable StringgetTag()A tag to easily identify waypoints in world an on the map.booleanDoes waypoint group override individual waypoint icons.booleanIs waypoint group enabled.booleanisLocked()Can users change group settings, including adding/removing waypointsbooleanbooleandefault booleandefault booleandefault voidsetBeaconColor(Integer beaconColor) voidvoidsetColorOverride(boolean override) Setting this to true, waypoints will use the group color instead of individual colors.voidsetCustomData(String key, @Nullable String data) Allows add-on devs to set custom data on their waypoint group for use, this is not used by journeymap.voidsetDescription(String description) voidsetEnabled(boolean enabled) Set waypoint group enabled / disabledvoidsetIconColor(Integer color) Sets color used to tint the image.voidsetIconIdentifier(net.minecraft.resources.Identifier Identifier) Sets the texture resource location.voidsetIconOpacity(float opacity) Sets opacity.voidsetIconOverride(boolean override) Setting this to true, waypoints will use the group icons instead of individual iconss.voidsetIconRotation(int rotation) Sets the rotation in degrees the image should be oriented.voidsetIconTextureHeight(Integer textureHeight) Sets the texture heightdefault voidsetIconTextureSize(int width, int height) Set the texture sizevoidsetIconTextureWidth(Integer textureWidth) Sets the texture widthdefault voidsetLabelColor(Integer labelColor) voidsetLocked(boolean locked) Set to true to lock users from modifying the group.voiddefault voidsetOverrideColors(boolean overrideColors) default voidsetOverrideSettings(boolean overrideSettings) voidsetPersistent(boolean persistent) default voidsetShowBeacon(boolean showBeacon) voidsetShowDeviation(boolean showDeviation) Sets the show deviation text on the beacon.default voidsetShowIcon(boolean showIcon) default voidsetShowInWorld(boolean showInWorld) default voidsetShowLabel(boolean showLabel) voidsetShowOnLocatorBar(boolean showOnLocatorBar) Show waypoints in this group on the locator bar.default voidsetShowOnMap(boolean showOnMap) voidSets the tag.default booleanbooleanIs deviation being showndefault booleanshowIcon()default booleandefault booleandefault boolean
-
Method Details
-
getWaypointIds
-
addWaypoint
-
getGuid
String getGuid() -
getModId
String getModId() -
getName
String getName() -
setName
-
getDescription
String getDescription() -
setDescription
-
getTag
A tag to easily identify waypoints in world an on the map.Example giving the group the tag 'Farm' would make the name -> "[Farm] Carrots" All waypoints in the group will have this tag.
- Returns:
- - the Tag
-
setTag
-
isEnabled
boolean isEnabled()Is waypoint group enabled.- Returns:
- - the Enabled boolean
-
setEnabled
void setEnabled(boolean enabled) Set waypoint group enabled / disabled- Parameters:
enabled- - enabled
-
isPersistent
boolean isPersistent() -
setPersistent
void setPersistent(boolean persistent) -
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
-
isLocked
boolean isLocked()Can users change group settings, including adding/removing waypoints- Returns:
- the is locked
-
setLocked
void setLocked(boolean locked) Set to true to lock users from modifying the group. This includes adding/removing waypoints and changing any of the settings of the group. Default - False- Parameters:
locked- - the locked boolean
-
getColor
Integer getColor() -
setColor
-
colorOverride
boolean colorOverride()Does waypoint group override individual waypoint colors.- Returns:
- if override
-
setColorOverride
void setColorOverride(boolean override) Setting this to true, waypoints will use the group color instead of individual colors. Setting to false, waypoints will use their individual colors- Parameters:
override- to override
-
iconOverride
boolean iconOverride()Does waypoint group override individual waypoint icons.- Returns:
- if override
-
setIconOverride
void setIconOverride(boolean override) Setting this to true, waypoints will use the group icons instead of individual iconss. Setting to false, waypoints will use their individual iconss- Parameters:
override- to override
-
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
-
setIconColor
Sets color used to tint the image. Use 0xffffff for white (no tint). This is only to be used if the icon needs to have a separate color from the waypoint.- Parameters:
color- the color
-
getIconOpacity
float getIconOpacity()Gets opacity.- Returns:
- the opacity
-
setIconOpacity
void setIconOpacity(float opacity) Sets opacity.- Parameters:
opacity- the opacity
-
getIconIdentifier
net.minecraft.resources.Identifier getIconIdentifier()Gets the texture resource location.- Returns:
- - Identifier
-
setIconIdentifier
void setIconIdentifier(net.minecraft.resources.Identifier Identifier) Sets the texture resource location.- Parameters:
Identifier- - the resource location
-
getIconTextureWidth
int getIconTextureWidth()Gets the image textureWidth.- Returns:
- textureWidth
-
setIconTextureWidth
Sets the texture width- Parameters:
textureWidth- - the texture width
-
getIconTextureHeight
int getIconTextureHeight()Gets the image textureHeight.- Returns:
- textureHeight
-
setIconTextureHeight
Sets the texture height- Parameters:
textureHeight- - the texture height
-
setIconTextureSize
default void setIconTextureSize(int width, int height) Set the texture size- Parameters:
width- - the texture widthheight- - the texture height
-
setCustomData
-
getCustomData
-
isShowOnLocatorBar
boolean isShowOnLocatorBar()- Returns:
- is showing waypoints for this group on the locator bar.
-
setShowOnLocatorBar
void setShowOnLocatorBar(boolean showOnLocatorBar) Show waypoints in this group on the locator bar. -
showBeacon
default boolean showBeacon() -
setShowBeacon
default void setShowBeacon(boolean showBeacon) -
showOnMap
default boolean showOnMap() -
setShowOnMap
default void setShowOnMap(boolean showOnMap) -
showInWorld
default boolean showInWorld() -
setShowInWorld
default void setShowInWorld(boolean showInWorld) -
showLabel
default boolean showLabel() -
setShowLabel
default void setShowLabel(boolean showLabel) -
showIcon
default boolean showIcon() -
setShowIcon
default void setShowIcon(boolean showIcon) -
getBeaconColor
-
setBeaconColor
-
getLabelColor
-
setLabelColor
-
overrideColors
default boolean overrideColors()- Returns:
- whether this group overrides its members' colors
-
setOverrideColors
default void setOverrideColors(boolean overrideColors) -
overrideSettings
default boolean overrideSettings()- Returns:
- whether this group overrides its members' visibility settings
-
setOverrideSettings
default void setOverrideSettings(boolean overrideSettings)
-