Class WaypointManager

java.lang.Object
de.luckymcdev.foundryengine.common.waypoint.WaypointManager

public class WaypointManager extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addLocal(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, Waypoint waypoint)
     
    void
    addWaypoint(net.minecraft.server.level.ServerLevel level, Waypoint waypoint)
     
    void
    clearLocal(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
     
    void
    clearWaypoints(net.minecraft.server.level.ServerLevel level)
     
    void
    fromNbt(net.minecraft.nbt.CompoundTag tag)
     
    getWaypoints(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
     
    boolean
    isLoaded(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
     
    void
     
    boolean
    removeLocal(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, int x, int y, int z)
     
    boolean
    removeWaypoint(net.minecraft.server.level.ServerLevel level, int x, int y, int z)
     
    void
     
    void
     
    net.minecraft.nbt.CompoundTag
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • isLoaded

      public boolean isLoaded(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
    • getWaypoints

      public List<Waypoint> getWaypoints(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
    • addWaypoint

      public void addWaypoint(net.minecraft.server.level.ServerLevel level, Waypoint waypoint)
    • 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()