Class ItemManager

java.lang.Object
studio.magemonkey.codex.mccore.items.ItemManager

public class ItemManager extends Object
Converts item names to/from vanilla names
  • Constructor Details

    • ItemManager

      public ItemManager()
  • Method Details

    • getVanillaName

      public static String getVanillaName(String bukkitName)
      Gets the vanilla name from the bukkit name
      Parameters:
      bukkitName - bukkit name
      Returns:
      vanilla name
    • getVanillaName

      public static String getVanillaName(String bukkitName, short damage)
      Gets the vanilla name from the bukkit name and damage ID
      Parameters:
      bukkitName - bukkit name
      damage - damage ID
      Returns:
      vanilla name
    • getVanillaName

      public static String getVanillaName(org.bukkit.Material type)
      Gets the vanilla name of the material
      Parameters:
      type - material
      Returns:
      vanilla name
    • getVanillaName

      public static String getVanillaName(org.bukkit.Material type, short damage)
      Gets the vanilla name of the material and damage ID
      Parameters:
      type - material
      damage - damage ID
      Returns:
      vanilla name
    • getVanillaName

      public static String getVanillaName(org.bukkit.inventory.ItemStack item)
      Gets the vanilla name of the item stack
      Parameters:
      item - item stack
      Returns:
      vanilla name
    • getBukkitName

      public static String getBukkitName(String vanillaName)
      Restores the bukkit name from the vanilla name
      Parameters:
      vanillaName - vanilla name
      Returns:
      bukkit name