Class WaypointFactory

java.lang.Object
journeymap.api.v2.common.waypoint.WaypointFactory

public class WaypointFactory extends Object
  • Constructor Details

  • Method Details

    • createClientWaypoint

      public static Waypoint createClientWaypoint(String modId, net.minecraft.core.BlockPos pos, @Nullable @Nullable String name, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> primaryDimension, boolean persistent)
      Creates a ClientWaypoint.
      Parameters:
      modId - - The modid of the mod creating the waypoint
      pos - - The BlockPos of the waypoint
      name - - The Optional Name of the waypoint. If null, it will use the coordinates as the name.e
      primaryDimension - - The primary dimension, this is where it will be displayed and if waypoint teleporting is enabled this is the dimension the user will be teleported to.
      persistent - - should the waypoint persist between sessions? True, JourneyMap will save this waypoint to disk and load every session it only needs to be sent once. False, The waypoint will be flushed when the user changes dimensions and exits the game.
      Returns:
      - The Waypoint with default values set.
    • createClientWaypoint

      public static Waypoint createClientWaypoint(String modId, net.minecraft.core.BlockPos pos, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> primaryDimension, boolean persistent)
    • createClientWaypoint

      public static Waypoint createClientWaypoint(String modId, net.minecraft.core.BlockPos pos, String primaryDimension, boolean persistent)
    • createClientWaypoint

      public static Waypoint createClientWaypoint(String modId, net.minecraft.core.BlockPos pos, @Nullable @Nullable String name, String primaryDimension, boolean persistent)
    • fromWaypointJsonString

      public static Waypoint fromWaypointJsonString(String waypoint)
    • fromGroupJsonString

      public static WaypointGroup fromGroupJsonString(String waypoint)
    • createWaypointGroup

      public static WaypointGroup createWaypointGroup(String modId, String name)