public class LanguageUtils extends Object
| Constructor and Description |
|---|
LanguageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getBookGenerationName(CustomBookMeta.Generation generation) |
static String |
getEnchantmentName(org.bukkit.enchantments.Enchantment enchantment,
int level) |
static String |
getEnchantmentString(Map<org.bukkit.enchantments.Enchantment,Integer> enchantmentMap) |
static String |
getItemName(org.bukkit.inventory.ItemStack stack) |
static String |
getMessage(LocalizedMessage.Message message,
LocalizedMessage.ReplacedPlaceholder... replacedPlaceholders) |
static String |
getMusicDiscName(org.bukkit.Material musicDiscMaterial) |
static String |
getPotionEffectName(org.bukkit.inventory.ItemStack itemStack) |
static void |
load() |
public static void load()
public static String getItemName(org.bukkit.inventory.ItemStack stack)
stack - Item whose name to lookuppublic static String getEnchantmentName(org.bukkit.enchantments.Enchantment enchantment, int level)
enchantment - Enchantment whose name should be looked uplevel - Level of the enchantmentpublic static String getEnchantmentString(Map<org.bukkit.enchantments.Enchantment,Integer> enchantmentMap)
enchantmentMap - Map of enchantments of an itempublic static String getPotionEffectName(org.bukkit.inventory.ItemStack itemStack)
itemStack - Potion Item whose base effect name should be looked uppublic static String getMusicDiscName(org.bukkit.Material musicDiscMaterial)
musicDiscMaterial - Material of the Music Disc whose name should be looked uppublic static String getBookGenerationName(CustomBookMeta.Generation generation)
generation - Generation of the bookpublic static String getMessage(LocalizedMessage.Message message, LocalizedMessage.ReplacedPlaceholder... replacedPlaceholders)
message - Message which should be translatedreplacedPlaceholders - Placeholders which might be required to be replaced in the messageCopyright © 2017. All rights reserved.