Class WaypointManager
java.lang.Object
de.luckymcdev.foundryengine.common.waypoint.WaypointManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocal(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, Waypoint waypoint) voidaddWaypoint(net.minecraft.server.level.ServerLevel level, Waypoint waypoint) voidclearLocal(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) voidclearWaypoints(net.minecraft.server.level.ServerLevel level) voidfromNbt(net.minecraft.nbt.CompoundTag tag) getWaypoints(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) booleanisLoaded(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) voidload()booleanremoveLocal(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, int x, int y, int z) booleanremoveWaypoint(net.minecraft.server.level.ServerLevel level, int x, int y, int z) voidsave()voidnet.minecraft.nbt.CompoundTagtoNbt()
-
Field Details
-
SAVE_SECTION
- See Also:
-
-
Constructor Details
-
WaypointManager
-
-
Method Details
-
isLoaded
public boolean isLoaded(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) -
getWaypoints
-
addWaypoint
-
addLocal
public void addLocal(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, Waypoint waypoint) -
removeWaypoint
public boolean removeWaypoint(net.minecraft.server.level.ServerLevel level, int x, int y, int z) -
removeLocal
public boolean removeLocal(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, int x, int y, int z) -
clearWaypoints
public void clearWaypoints(net.minecraft.server.level.ServerLevel level) -
clearLocal
public void clearLocal(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) -
toNbt
public net.minecraft.nbt.CompoundTag toNbt() -
fromNbt
public void fromNbt(net.minecraft.nbt.CompoundTag tag) -
syncToAll
public void syncToAll() -
save
public void save() -
load
public void load()
-