public class TARDISStaticUtils
extends java.lang.Object
Constructor and Description |
---|
TARDISStaticUtils() |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.util.EulerAngle |
angleToEulerAngle(double radians) |
static org.bukkit.util.EulerAngle |
angleToEulerAngle(int degrees) |
static int |
getCol(COMPASS d)
Gets the column to set the Police box sign in if CTM is on in the player's preferences.
|
static java.lang.String |
getLastLine(java.lang.String loc)
Gets the Chameleon Sign preset text.
|
static java.lang.String |
getNick(org.bukkit.entity.Player player) |
static java.lang.String |
getNick(java.util.UUID uuid) |
static java.lang.String |
getPlayersDirection(org.bukkit.entity.Player p,
boolean swap)
Get the direction a player is facing.
|
static java.lang.String |
getTime(long t)
Get a human readable time from server ticks.
|
static java.util.UUID |
getZERO_UUID() |
static boolean |
isBanner(org.bukkit.Material material) |
static boolean |
isDoorOpen(org.bukkit.block.Block door)
Checks whether a door is open.
|
static boolean |
isInfested(org.bukkit.Material material) |
static boolean |
isMusicDisk(org.bukkit.inventory.ItemStack is) |
static boolean |
isOceanBiome(org.bukkit.block.Biome b)
Get whether the biome is ocean.
|
static void |
setSign(java.lang.String loc,
int line,
java.lang.String text,
org.bukkit.entity.Player p)
Sets the Chameleon Sign text or messages the player.
|
public static java.lang.String getPlayersDirection(org.bukkit.entity.Player p, boolean swap)
p
- the playerswap
- whether to swap the direction E <-> W, S <-> Npublic static boolean isOceanBiome(org.bukkit.block.Biome b)
b
- the biome to checkpublic static java.lang.String getTime(long t)
t
- the time in tickspublic static boolean isDoorOpen(org.bukkit.block.Block door)
door
- the door blockpublic static int getCol(COMPASS d)
d
- the direction of the Police Boxpublic static void setSign(java.lang.String loc, int line, java.lang.String text, org.bukkit.entity.Player p)
loc
- the location string retrieved from the databaseline
- the line number to settext
- the text to writep
- the player to message (if the Chameleon control is not a sign)public static java.lang.String getLastLine(java.lang.String loc)
loc
- the location string retrieved from the databasepublic static boolean isInfested(org.bukkit.Material material)
public static boolean isBanner(org.bukkit.Material material)
public static java.lang.String getNick(java.util.UUID uuid)
public static java.lang.String getNick(org.bukkit.entity.Player player)
public static java.util.UUID getZERO_UUID()
public static org.bukkit.util.EulerAngle angleToEulerAngle(int degrees)
public static org.bukkit.util.EulerAngle angleToEulerAngle(double radians)
public static boolean isMusicDisk(org.bukkit.inventory.ItemStack is)