public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static String |
coloredMessage(String msg) |
static float |
getEntityHeadHeight(org.spongepowered.api.entity.Entity et) |
static @Nullable org.spongepowered.api.entity.living.player.Player |
getFirstOnlinePlayer() |
static org.spongepowered.api.item.inventory.ItemStack |
getMcLeaksIndicator(org.spongepowered.api.entity.living.player.Player player,
NegativityPlayer nPlayer) |
static HashMap<String,String> |
getModsNameVersionFromMessage(String modName) |
static float |
getPlayerHeadHeight(org.spongepowered.api.entity.living.player.Player p) |
static com.flowpowered.math.vector.Vector3d |
getPlayerVec(org.spongepowered.api.entity.living.player.Player p) |
static void |
removePotionEffect(org.spongepowered.api.data.manipulator.mutable.PotionEffectData effects,
org.spongepowered.api.effect.potion.PotionEffectType effectType) |
public static @Nullable org.spongepowered.api.entity.living.player.Player getFirstOnlinePlayer()
public static HashMap<String,String> getModsNameVersionFromMessage(String modName)
public static void removePotionEffect(org.spongepowered.api.data.manipulator.mutable.PotionEffectData effects, org.spongepowered.api.effect.potion.PotionEffectType effectType)
public static float getPlayerHeadHeight(org.spongepowered.api.entity.living.player.Player p)
public static float getEntityHeadHeight(org.spongepowered.api.entity.Entity et)
public static com.flowpowered.math.vector.Vector3d getPlayerVec(org.spongepowered.api.entity.living.player.Player p)
public static org.spongepowered.api.item.inventory.ItemStack getMcLeaksIndicator(org.spongepowered.api.entity.living.player.Player player, NegativityPlayer nPlayer)