public class WaypointFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
WaypointFactory.WaypointStore |
| Constructor and Description |
|---|
WaypointFactory(WaypointFactory.WaypointStore store) |
| Modifier and Type | Method and Description |
|---|---|
static Waypoint |
createWaypoint(java.lang.String modId,
net.minecraft.core.BlockPos pos,
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> primaryDimension,
boolean persistent) |
static Waypoint |
createWaypoint(java.lang.String modId,
net.minecraft.core.BlockPos pos,
java.lang.String primaryDimension,
boolean persistent) |
static Waypoint |
createWaypoint(java.lang.String modId,
net.minecraft.core.BlockPos pos,
@Nullable java.lang.String name,
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> primaryDimension,
boolean persistent)
Creates a Waypoint.
|
static Waypoint |
createWaypoint(java.lang.String modId,
net.minecraft.core.BlockPos pos,
@Nullable java.lang.String name,
java.lang.String primaryDimension,
boolean persistent) |
static WaypointGroup |
createWaypointGroup(java.lang.String modId,
java.lang.String name) |
static WaypointGroup |
fromGroupJsonString(java.lang.String waypoint) |
static Waypoint |
fromWaypointJsonString(java.lang.String waypoint) |
@ApiStatus.Internal public WaypointFactory(WaypointFactory.WaypointStore store)
public static Waypoint createWaypoint(java.lang.String modId, net.minecraft.core.BlockPos pos, @Nullable @Nullable java.lang.String name, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> primaryDimension, boolean persistent)
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.public static Waypoint createWaypoint(java.lang.String modId, net.minecraft.core.BlockPos pos, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> primaryDimension, boolean persistent)
public static Waypoint createWaypoint(java.lang.String modId, net.minecraft.core.BlockPos pos, java.lang.String primaryDimension, boolean persistent)
public static Waypoint createWaypoint(java.lang.String modId, net.minecraft.core.BlockPos pos, @Nullable @Nullable java.lang.String name, java.lang.String primaryDimension, boolean persistent)
public static Waypoint fromWaypointJsonString(java.lang.String waypoint)
public static WaypointGroup fromGroupJsonString(java.lang.String waypoint)
public static WaypointGroup createWaypointGroup(java.lang.String modId, java.lang.String name)