public class LanguageUtils extends Object
Constructor and Description |
---|
LanguageUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getEnchantmentName(org.bukkit.enchantments.Enchantment enchantment,
int level) |
static String |
getItemName(org.bukkit.inventory.ItemStack stack) |
static String |
getMessage(LocalizedMessage.Message message,
LocalizedMessage.ReplacedRegex... replacedRegexes) |
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 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 getMessage(LocalizedMessage.Message message, LocalizedMessage.ReplacedRegex... replacedRegexes)
message
- Message which should be translatedreplacedRegexes
- Regexes which might be required to be replaced in the messageCopyright © 2016. All rights reserved.