Class WaypointFactory
java.lang.Object
journeymap.api.v2.common.waypoint.WaypointFactory
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WaypointcreateWaypoint(String modId, net.minecraft.core.BlockPos pos, @Nullable String name, String primaryDimension, boolean persistent) static WaypointcreateWaypoint(String modId, net.minecraft.core.BlockPos pos, @Nullable String name, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> primaryDimension, boolean persistent) Creates a Waypoint.static WaypointcreateWaypoint(String modId, net.minecraft.core.BlockPos pos, String primaryDimension, boolean persistent) static WaypointcreateWaypoint(String modId, net.minecraft.core.BlockPos pos, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> primaryDimension, boolean persistent) static WaypointGroupcreateWaypointGroup(String modId, String name) static WaypointGroupfromGroupJsonString(String waypoint) static WaypointfromWaypointJsonString(String waypoint)
-
Constructor Details
-
WaypointFactory
-
-
Method Details
-
createWaypoint
public static Waypoint createWaypoint(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 Waypoint. On the client side this will be a ClientWaypoint; on the server side this will be a plain WaypointImpl.- Parameters:
modId- - The modid of the mod creating the waypointpos- - The BlockPos of the waypointname- - The Optional Name of the waypoint. If null, it will use the coordinates as the name.primaryDimension- - The primary dimension identifier string.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.
-
createWaypoint
-
createWaypoint
-
createWaypoint
-
fromWaypointJsonString
-
fromGroupJsonString
-
createWaypointGroup
-