Class WaypointFactory
java.lang.Object
journeymap.api.v2.common.waypoint.WaypointFactory
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WaypointcreateClientWaypoint(String modId, net.minecraft.core.BlockPos pos, @Nullable String name, String primaryDimension, boolean persistent) static WaypointcreateClientWaypoint(String modId, net.minecraft.core.BlockPos pos, @Nullable String name, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> primaryDimension, boolean persistent) Creates a ClientWaypoint.static WaypointcreateClientWaypoint(String modId, net.minecraft.core.BlockPos pos, String primaryDimension, boolean persistent) static WaypointcreateClientWaypoint(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
-
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 waypointpos- - The BlockPos of the waypointname- - The Optional Name of the waypoint. If null, it will use the coordinates as the name.eprimaryDimension- - 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
-
createClientWaypoint
-
createClientWaypoint
-
fromWaypointJsonString
-
fromGroupJsonString
-
createWaypointGroup
-