Package de.themoep.utils
Class IconRpMapping
java.lang.Object
de.themoep.utils.IconRpMapping
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the unicode character of the inputed icongetIcon
(org.bukkit.inventory.ItemStack item) Get the unicode character that corresponds with the inputted itemgetIcon
(org.bukkit.inventory.ItemStack item, boolean escape) Get the unicode character that corresponds with the inputted itemboolean
isLegacy()
-
Constructor Details
-
IconRpMapping
public IconRpMapping(org.bukkit.plugin.java.JavaPlugin plugin)
-
-
Method Details
-
getIcon
Get the unicode character that corresponds with the inputted item- Parameters:
item
- The item to get the character of- Returns:
- A string of the unicode character which represents the item in the icon rp. Empty string if none was found.
-
getIcon
Get the unicode character that corresponds with the inputted item- Parameters:
item
- The item to get the character ofescape
- Make the icon use the white chat color?- Returns:
- A string of the unicode character which represents the item in the icon rp. Empty string if none was found.
-
getIcon
Get the unicode character of the inputed icon- Parameters:
iconName
- The name of the iconescape
- Make the icon use the white chat color?- Returns:
- A string of the unicode character which represents the icon in the icon rp.
null
if none was found.
-
isLegacy
public boolean isLegacy()
-