Class IconRpMapping

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

public class IconRpMapping
extends Object
Created by Phoenix616 on 07.03.2015.
  • Constructor Summary

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

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

    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()