public class TARDISStaticLocationGetters
extends java.lang.Object
Constructor and Description |
---|
TARDISStaticLocationGetters() |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.Chunk |
getChunk(java.lang.String str)
Gets the chunk the TARDIS interior is in.
|
static int |
getHighestYin4x4(org.bukkit.World world,
int x,
int z) |
static org.bukkit.Location |
getLocationFromBukkitString(java.lang.String string)
Gets a location object from data stored in the database.
|
static org.bukkit.Location |
getLocationFromDB(java.lang.String s)
Gets a location object from data stored in the database.
|
static org.bukkit.Location |
getSpawnLocationFromDB(java.lang.String s)
Gets a location object from data stored in the database.
|
static org.bukkit.World |
getWorld(java.lang.String data)
Get a World from a stored string.
|
static java.lang.String |
makeLocationStr(java.lang.String w,
java.lang.String x,
java.lang.String y,
java.lang.String z)
Create a Bukkit location string from block coordinates.
|
static java.lang.String |
makeLocationStr(org.bukkit.World w,
int x,
int y,
int z)
Create a Bukkit location string from block coordinates.
|
public static org.bukkit.World getWorld(java.lang.String data)
data
- the string containing the world namepublic static org.bukkit.Location getLocationFromDB(java.lang.String s)
s
- the saved location data from the database.public static org.bukkit.Location getSpawnLocationFromDB(java.lang.String s)
s
- the saved location data from the database.public static org.bukkit.Location getLocationFromBukkitString(java.lang.String string)
string
- the stored Bukkit location string e.g. Location{world=CraftWorld{name=world},x=0.0,y=0.0,z=0.0,pitch=0.0,yaw=0.0}public static java.lang.String makeLocationStr(java.lang.String w, java.lang.String x, java.lang.String y, java.lang.String z)
w
- the block's worldx
- the x coordinate of the block's locationy
- the y coordinate of the block's locationz
- the z coordinate of the block's locationpublic static java.lang.String makeLocationStr(org.bukkit.World w, int x, int y, int z)
w
- the block's worldx
- the x coordinate of the block's locationy
- the y coordinate of the block's locationz
- the z coordinate of the block's locationpublic static org.bukkit.Chunk getChunk(java.lang.String str)
str
- the saved location data from the database.public static int getHighestYin4x4(org.bukkit.World world, int x, int z)