Class ItemManager
java.lang.Object
studio.magemonkey.codex.mccore.items.ItemManager
Converts item names to/from vanilla names
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBukkitName(String vanillaName) Restores the bukkit name from the vanilla namestatic StringgetVanillaName(String bukkitName) Gets the vanilla name from the bukkit namestatic StringgetVanillaName(String bukkitName, short damage) Gets the vanilla name from the bukkit name and damage IDstatic StringgetVanillaName(org.bukkit.inventory.ItemStack item) Gets the vanilla name of the item stackstatic StringgetVanillaName(org.bukkit.Material type) Gets the vanilla name of the materialstatic StringgetVanillaName(org.bukkit.Material type, short damage) Gets the vanilla name of the material and damage ID
-
Constructor Details
-
ItemManager
public ItemManager()
-
-
Method Details
-
getVanillaName
Gets the vanilla name from the bukkit name- Parameters:
bukkitName- bukkit name- Returns:
- vanilla name
-
getVanillaName
Gets the vanilla name from the bukkit name and damage ID- Parameters:
bukkitName- bukkit namedamage- damage ID- Returns:
- vanilla name
-
getVanillaName
Gets the vanilla name of the material- Parameters:
type- material- Returns:
- vanilla name
-
getVanillaName
Gets the vanilla name of the material and damage ID- Parameters:
type- materialdamage- damage ID- Returns:
- vanilla name
-
getVanillaName
Gets the vanilla name of the item stack- Parameters:
item- item stack- Returns:
- vanilla name
-
getBukkitName
Restores the bukkit name from the vanilla name- Parameters:
vanillaName- vanilla name- Returns:
- bukkit name
-