public final class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkBungeePlugin() |
static void |
createParticleInGame(Game game,
String particle,
org.bukkit.Location loc) |
static void |
equipArmorStand(org.bukkit.entity.LivingEntity armor,
Team team) |
static org.bukkit.block.Block |
getBedNeighbor(org.bukkit.block.Block head) |
static org.bukkit.block.BlockFace |
getCardinalDirection(org.bukkit.Location location) |
static Method |
getColorableMethod(org.bukkit.Material mat) |
static Object |
getCraftPlayer(org.bukkit.entity.Player player) |
static org.bukkit.Location |
getDirectionLocation(org.bukkit.Location location,
int blockOffset) |
static String |
getFormattedTime(int time) |
static Class<?> |
getGenericTypeOfParameter(Class<?> clazz,
String method,
int parameterIndex) |
static org.bukkit.Material |
getMaterialByConfig(String key,
org.bukkit.Material defaultMaterial) |
static Class<?> |
getPrimitiveWrapper(Class<?> primitive) |
static String[] |
getResourceListing(Class<?> clazz,
String path) |
static String |
implode(String glue,
ArrayList<String> strings) |
static boolean |
isBedBlock(org.bukkit.block.Block isBed) |
static boolean |
isColorable(org.bukkit.inventory.ItemStack itemstack) |
static boolean |
isNumber(String numberString) |
static org.bukkit.Location |
locationDeserialize(Object obj) |
static org.bukkit.Location |
locationDeserialize(String key,
org.bukkit.configuration.file.FileConfiguration config) |
static Map<String,Object> |
locationSerialize(org.bukkit.Location location) |
static org.bukkit.Material |
parseMaterial(String material) |
static int |
randInt(int min,
int max) |
static String |
unescape_perl_string(String oldstr) |
static String |
uniplus(String s) |
public static boolean checkBungeePlugin()
public static void createParticleInGame(Game game, String particle, org.bukkit.Location loc)
public static void equipArmorStand(org.bukkit.entity.LivingEntity armor,
Team team)
public static org.bukkit.block.Block getBedNeighbor(org.bukkit.block.Block head)
public static org.bukkit.block.BlockFace getCardinalDirection(org.bukkit.Location location)
public static Method getColorableMethod(org.bukkit.Material mat)
public static Object getCraftPlayer(org.bukkit.entity.Player player)
public static org.bukkit.Location getDirectionLocation(org.bukkit.Location location,
int blockOffset)
public static String getFormattedTime(int time)
public static Class<?> getGenericTypeOfParameter(Class<?> clazz, String method, int parameterIndex)
public static org.bukkit.Material getMaterialByConfig(String key, org.bukkit.Material defaultMaterial)
public static String[] getResourceListing(Class<?> clazz, String path) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic static boolean isBedBlock(org.bukkit.block.Block isBed)
public static boolean isColorable(org.bukkit.inventory.ItemStack itemstack)
public static boolean isNumber(String numberString)
public static org.bukkit.Location locationDeserialize(Object obj)
public static org.bukkit.Location locationDeserialize(String key, org.bukkit.configuration.file.FileConfiguration config)
public static org.bukkit.Material parseMaterial(String material)
public static int randInt(int min,
int max)
Copyright © 2017. All rights reserved.