Package redempt.redlib.misc
Class Path
java.lang.Object
redempt.redlib.misc.Path
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.bukkit.Location>
getPath
(org.bukkit.Location start) Get the locations from the start along a vectorstatic List<org.bukkit.Location>
getPath
(org.bukkit.Location start, double step) Get the locations from the start along a vectorstatic List<org.bukkit.Location>
getPath
(org.bukkit.Location start, org.bukkit.Location end) Get the locations between the start and end locationstatic List<org.bukkit.Location>
getPath
(org.bukkit.Location start, org.bukkit.Location end, double step) Get the locations between the start and end locationstatic List<org.bukkit.Location>
getPath
(org.bukkit.Location start, org.bukkit.util.Vector direction) Get the locations from the start along a vectorstatic List<org.bukkit.Location>
getPath
(org.bukkit.Location start, org.bukkit.util.Vector direction, double distance) Get the locations from the start along a vectorstatic List<org.bukkit.Location>
getPath
(org.bukkit.Location start, org.bukkit.util.Vector direction, double distance, double step) Get the locations from the start along a vector
-
Constructor Details
-
Path
public Path()
-
-
Method Details
-
getPath
public static List<org.bukkit.Location> getPath(org.bukkit.Location start, org.bukkit.Location end, double step) Get the locations between the start and end location- Parameters:
start
- The start locationend
- The end locationstep
- The step size to use- Returns:
- A list of all the locations between the locations
-
getPath
Get the locations between the start and end location- Parameters:
start
- The start locationend
- The end location- Returns:
- A list of all the locations between the locations, equidistant
-
getPath
public static List<org.bukkit.Location> getPath(org.bukkit.Location start, org.bukkit.util.Vector direction, double distance, double step) Get the locations from the start along a vector- Parameters:
start
- The start locationdirection
- The vector indicating directiondistance
- The length of the pathstep
- The step size to use- Returns:
- A list of all the locations between the locations, equidistant
-
getPath
public static List<org.bukkit.Location> getPath(org.bukkit.Location start, org.bukkit.util.Vector direction, double distance) Get the locations from the start along a vector- Parameters:
start
- The start locationdirection
- The vector indicating directiondistance
- The max distance to step- Returns:
- A list of all the locations between the locations, equidistant
-
getPath
public static List<org.bukkit.Location> getPath(org.bukkit.Location start, org.bukkit.util.Vector direction) Get the locations from the start along a vector- Parameters:
start
- The start locationdirection
- The vector indicating direction and length- Returns:
- A list of all the locations between the locations, equidistant
-
getPath
Get the locations from the start along a vector- Parameters:
start
- The start location whose direction vector will be used for direction and length- Returns:
- A list of all the locations between the locations, equidistant
-
getPath
Get the locations from the start along a vector- Parameters:
start
- The start location whose direction vector will be used for direction and lengthstep
- The step size to use- Returns:
- A list of all the locations between the locations, equidistant
-