public class PlayerUtils
extends java.lang.Object
Constructor and Description |
---|
PlayerUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
facingOpposite(org.bukkit.entity.Entity one,
org.bukkit.entity.Entity two) |
static double |
getAccurateDistance(org.bukkit.entity.LivingEntity attacked,
org.bukkit.entity.LivingEntity entity) |
static double |
getAccurateDistance(org.bukkit.Location origin,
org.bukkit.Location point) |
static int |
getDepthStriderLevel(org.bukkit.entity.Player player) |
static int |
getPotionEffectLevel(org.bukkit.entity.Player player,
org.bukkit.potion.PotionEffectType pet) |
static boolean |
hasBlocksAround(org.bukkit.Location loc) |
static boolean |
hasEnchantment(org.bukkit.inventory.ItemStack item,
org.bukkit.enchantments.Enchantment enchantment) |
static boolean |
isGliding(org.bukkit.entity.Player p) |
public static boolean hasEnchantment(org.bukkit.inventory.ItemStack item, org.bukkit.enchantments.Enchantment enchantment)
public static int getDepthStriderLevel(org.bukkit.entity.Player player)
public static boolean hasBlocksAround(org.bukkit.Location loc)
public static boolean facingOpposite(org.bukkit.entity.Entity one, org.bukkit.entity.Entity two)
public static boolean isGliding(org.bukkit.entity.Player p)
public static double getAccurateDistance(org.bukkit.entity.LivingEntity attacked, org.bukkit.entity.LivingEntity entity)
public static double getAccurateDistance(org.bukkit.Location origin, org.bukkit.Location point)
public static int getPotionEffectLevel(org.bukkit.entity.Player player, org.bukkit.potion.PotionEffectType pet)