public class TARDISLocationGetters
extends java.lang.Object
Constructor and Description |
---|
TARDISLocationGetters(TARDIS plugin) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkChunk(java.lang.String w,
int x,
int z,
SCHEMATIC schm)
Checks whether a chunk is available to build a TARDIS in.
|
int[] |
getStartLocation(int id)
Gets a start location for building the inner TARDIS.
|
org.bukkit.Chunk |
getTARDISChunk(int id)
Get the chunk where the interior TARDIS is.
|
public TARDISLocationGetters(TARDIS plugin)
public org.bukkit.Chunk getTARDISChunk(int id)
id
- the database record id of the TARDIS to get the chunk forpublic int[] getStartLocation(int id)
id
- the TARDIS this location belongs to.public boolean checkChunk(java.lang.String w, int x, int z, SCHEMATIC schm)
w
- the world the chunk is in.x
- the x coordinate of the chunk.z
- the z coordinate of the chunk.schm
- the schematic of the TARDIS being created.