public class TARDISUtils
extends java.lang.Object
The TARDIS can be programmed to execute automatic functions based on certain conditions. It also automatically repairs after too much damage.
Constructor and Description |
---|
TARDISUtils(TARDIS plugin) |
Modifier and Type | Method and Description |
---|---|
boolean |
canGrowRooms(java.lang.String chunk) |
boolean |
checkSurrounding(org.bukkit.block.Block under) |
boolean |
compareLocations(org.bukkit.Location a,
org.bukkit.Location b) |
int |
getHighestNetherBlock(org.bukkit.World w,
int wherex,
int wherez) |
java.util.List<org.bukkit.entity.Entity> |
getJunkTravellers(org.bukkit.Location loc) |
org.bukkit.ChatColor |
getSignColour()
Gets the chat colour to use on the Police Box sign.
|
boolean |
inGracePeriod(org.bukkit.entity.Player p,
boolean update) |
boolean |
inTARDISWorld(org.bukkit.Location loc) |
boolean |
inTARDISWorld(org.bukkit.entity.Player player) |
boolean |
restoreBiome(org.bukkit.Location l,
org.bukkit.block.Biome biome) |
void |
updateStorageId(java.lang.String uuid,
int id)
Checks if player has storage record, and update the tardis_id field if they do.
|
public TARDISUtils(TARDIS plugin)
public boolean compareLocations(org.bukkit.Location a, org.bukkit.Location b)
public boolean canGrowRooms(java.lang.String chunk)
public boolean inTARDISWorld(org.bukkit.entity.Player player)
public boolean inTARDISWorld(org.bukkit.Location loc)
public void updateStorageId(java.lang.String uuid, int id)
uuid
- the player's UUIDid
- the player's TARDIS IDpublic org.bukkit.ChatColor getSignColour()
public int getHighestNetherBlock(org.bukkit.World w, int wherex, int wherez)
public boolean inGracePeriod(org.bukkit.entity.Player p, boolean update)
public java.util.List<org.bukkit.entity.Entity> getJunkTravellers(org.bukkit.Location loc)
public boolean restoreBiome(org.bukkit.Location l, org.bukkit.block.Biome biome)
public boolean checkSurrounding(org.bukkit.block.Block under)