public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
dependsOn(org.spongepowered.plugin.PluginContainer plugin,
String dependencyId) |
static @Nullable org.spongepowered.api.block.BlockType |
getBlockType(Material material) |
static float |
getEntityHeadHeight(org.spongepowered.api.entity.Entity et) |
static @Nullable org.spongepowered.api.entity.living.player.server.ServerPlayer |
getFirstOnlinePlayer() |
static @Nullable org.spongepowered.api.item.ItemType |
getItemType(Material material) |
static org.spongepowered.api.ResourceKey |
getKey(org.spongepowered.api.block.BlockType blockType) |
static org.spongepowered.api.ResourceKey |
getKey(org.spongepowered.api.world.difficulty.Difficulty difficulty) |
static org.spongepowered.api.ResourceKey |
getKey(org.spongepowered.api.item.enchantment.EnchantmentType enchantmentType) |
static org.spongepowered.api.ResourceKey |
getKey(org.spongepowered.api.entity.EntityType<?> entityType) |
static org.spongepowered.api.ResourceKey |
getKey(org.spongepowered.api.item.ItemType itemType) |
static org.spongepowered.api.ResourceKey |
getKey(org.spongepowered.api.effect.potion.PotionEffectType potionEffectType) |
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) |
public static @Nullable org.spongepowered.api.entity.living.player.server.ServerPlayer getFirstOnlinePlayer()
public static HashMap<String,String> getModsNameVersionFromMessage(String modName)
public static float getPlayerHeadHeight(org.spongepowered.api.entity.living.player.Player p)
public static float getEntityHeadHeight(org.spongepowered.api.entity.Entity et)
public static org.spongepowered.api.item.inventory.ItemStack getMcLeaksIndicator(org.spongepowered.api.entity.living.player.Player player, NegativityPlayer nPlayer)
public static boolean dependsOn(org.spongepowered.plugin.PluginContainer plugin, String dependencyId)
public static @Nullable org.spongepowered.api.item.ItemType getItemType(Material material)
public static @Nullable org.spongepowered.api.block.BlockType getBlockType(Material material)
public static org.spongepowered.api.ResourceKey getKey(org.spongepowered.api.entity.EntityType<?> entityType)
public static org.spongepowered.api.ResourceKey getKey(org.spongepowered.api.block.BlockType blockType)
public static org.spongepowered.api.ResourceKey getKey(org.spongepowered.api.item.ItemType itemType)
public static org.spongepowered.api.ResourceKey getKey(org.spongepowered.api.effect.potion.PotionEffectType potionEffectType)
public static org.spongepowered.api.ResourceKey getKey(org.spongepowered.api.item.enchantment.EnchantmentType enchantmentType)
public static org.spongepowered.api.ResourceKey getKey(org.spongepowered.api.world.difficulty.Difficulty difficulty)