Skip to content

Commit

Permalink
added customdata methods to Waypoint and WaypointGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticdrew committed Jun 24, 2024
1 parent e836539 commit 7b36172
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.Level;
import org.jetbrains.annotations.Nullable;

import java.util.Collection;
import java.util.TreeSet;
Expand Down Expand Up @@ -209,4 +210,18 @@ default void setIconTextureSize(int width, int height)
setIconTextureWidth(width);
setIconTextureHeight(height);
}

/**
* Allows add-on devs to set custom data on their waypoints for use, this is not used by journeymap.
*
* @param data - String
*/
void setCustomData(@Nullable String data);

/**
* Gets the custom data stored ona w aypoint
* @return
*/
@Nullable
String getCustomData();
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package journeymap.api.v2.common.waypoint;

import net.minecraft.resources.ResourceLocation;
import org.jetbrains.annotations.Nullable;

import java.util.List;

Expand Down Expand Up @@ -173,4 +174,18 @@ default void setIconTextureSize(int width, int height)
setIconTextureWidth(width);
setIconTextureHeight(height);
}

/**
* Allows add-on devs to set custom data on their waypoints for use, this is not used by journeymap.
*
* @param data - String
*/
void setCustomData(@Nullable String data);

/**
* Gets the custom data stored ona w aypoint
* @return
*/
@Nullable
String getCustomData();
}

0 comments on commit 7b36172

Please sign in to comment.