public class BukkitUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
loc |
protected static Pattern |
loc2 |
| Constructor and Description |
|---|
BukkitUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.bukkit.Location |
fromString(String string) |
static org.bukkit.Location |
fromString(String string,
org.bukkit.World world) |
static org.bukkit.Color |
getColor(String string)
Gets the corresponding color from a color name.
|
static boolean |
isLocation(String string) |
static boolean |
isLocationNoWorld(String string) |
static String |
toConfigFormat(org.bukkit.Location location) |
static String |
toConfigFormatNoWorld(org.bukkit.Location location) |
public static String toConfigFormat(org.bukkit.Location location)
public static String toConfigFormatNoWorld(org.bukkit.Location location)
public static org.bukkit.Location fromString(String string)
public static org.bukkit.Location fromString(String string, org.bukkit.World world)
public static boolean isLocation(String string)
public static boolean isLocationNoWorld(String string)
public static org.bukkit.Color getColor(String string)
Accepted color formats are:
- HTML5 Color names (aliceblue, fuchsia, etc.)
- Hexadecimal colors (#ff00ff)
- RGB colors (255-20-100 or 255,20,100)
string - The colornull if not valid.Copyright © 2014. All rights reserved.