public class MythicUtil extends Object
Modifier and Type | Field and Description |
---|---|
static float |
DEGTORAD |
static float |
RADTODEG |
Constructor and Description |
---|
MythicUtil() |
Modifier and Type | Method and Description |
---|---|
static double |
calculateHangtime(double launchAngle,
double v,
double elev,
double g) |
static Double |
calculateLaunchAngle(org.bukkit.Location from,
org.bukkit.Location to,
double v,
double elevation,
double g) |
static String |
getMD5(String input) |
static Object |
getPrivateField(String fieldName,
Class clazz,
Object object) |
static org.bukkit.entity.LivingEntity |
getTargetedEntity(org.bukkit.entity.Player player) |
static UUID |
getUUIDFromString(String s) |
static boolean |
matchNumber(String s,
double i) |
static AbstractLocation |
move(AbstractLocation loc,
AbstractVector offset) |
static AbstractLocation |
move(AbstractLocation loc,
double dx,
double dy,
double dz) |
static org.bukkit.Location |
moveBukkit(org.bukkit.Location loc,
double dx,
double dy,
double dz) |
static org.bukkit.Location |
moveBukkit(org.bukkit.Location loc,
org.bukkit.util.Vector offset) |
static org.bukkit.util.Vector |
normalizeVector(org.bukkit.util.Vector victor) |
static void |
restoreFakeBlockChange(org.bukkit.entity.Player player,
org.bukkit.block.Block block) |
static AbstractVector |
rotate(float yaw,
float pitch,
AbstractVector value) |
static AbstractVector |
rotate(float yaw,
float pitch,
double x,
double y,
double z) |
static org.bukkit.util.Vector |
rotateBukkit(float yaw,
float pitch,
double x,
double y,
double z) |
static org.bukkit.util.Vector |
rotateBukkit(float yaw,
float pitch,
org.bukkit.util.Vector value) |
static void |
rotateVector(org.bukkit.util.Vector v,
float degrees) |
static void |
sendFakeBlockChange(org.bukkit.entity.Player player,
org.bukkit.block.Block block,
org.bukkit.Material mat) |
static void |
setPrivateField(String fieldName,
Class clazz,
Object object,
Object value) |
static String[] |
wrapString(String s,
int l) |
public static final float DEGTORAD
public static final float RADTODEG
public static boolean matchNumber(String s, double i)
public static void setPrivateField(String fieldName, Class clazz, Object object, Object value)
public static org.bukkit.entity.LivingEntity getTargetedEntity(org.bukkit.entity.Player player)
public static void sendFakeBlockChange(org.bukkit.entity.Player player, org.bukkit.block.Block block, org.bukkit.Material mat)
public static void restoreFakeBlockChange(org.bukkit.entity.Player player, org.bukkit.block.Block block)
public static void rotateVector(org.bukkit.util.Vector v, float degrees)
public static Double calculateLaunchAngle(org.bukkit.Location from, org.bukkit.Location to, double v, double elevation, double g)
public static double calculateHangtime(double launchAngle, double v, double elev, double g)
public static org.bukkit.util.Vector normalizeVector(org.bukkit.util.Vector victor)
public static org.bukkit.Location moveBukkit(org.bukkit.Location loc, org.bukkit.util.Vector offset)
public static org.bukkit.Location moveBukkit(org.bukkit.Location loc, double dx, double dy, double dz)
public static org.bukkit.util.Vector rotateBukkit(float yaw, float pitch, org.bukkit.util.Vector value)
public static org.bukkit.util.Vector rotateBukkit(float yaw, float pitch, double x, double y, double z)
public static AbstractLocation move(AbstractLocation loc, AbstractVector offset)
public static AbstractLocation move(AbstractLocation loc, double dx, double dy, double dz)
public static AbstractVector rotate(float yaw, float pitch, AbstractVector value)
public static AbstractVector rotate(float yaw, float pitch, double x, double y, double z)
Copyright © 2020. All rights reserved.