Class IconRpMapping

java.lang.Object
de.themoep.utils.IconRpMapping

public class IconRpMapping extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    IconRpMapping(org.bukkit.plugin.java.JavaPlugin plugin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getIcon(String iconName, boolean escape)
    Get the unicode character of the inputed icon
    getIcon(org.bukkit.inventory.ItemStack item)
    Get the unicode character that corresponds with the inputted item
    getIcon(org.bukkit.inventory.ItemStack item, boolean escape)
    Get the unicode character that corresponds with the inputted item
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IconRpMapping

      public IconRpMapping(org.bukkit.plugin.java.JavaPlugin plugin)
  • Method Details

    • getIcon

      public String getIcon(org.bukkit.inventory.ItemStack item)
      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

      public String getIcon(org.bukkit.inventory.ItemStack item, boolean escape)
      Get the unicode character that corresponds with the inputted item
      Parameters:
      item - The item to get the character of
      escape - 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

      public String getIcon(String iconName, boolean escape)
      Get the unicode character of the inputed icon
      Parameters:
      iconName - The name of the icon
      escape - 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()