blob: 3e9c7f429036db96767ec1ddb0e495d742846b49 [file] [log] [blame] [raw]
package com.legacy.aether.registry;
import com.legacy.aether.items.block.ItemBlockEnchanter;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.registry.GameRegistry;
public class AetherLore {
public static String getLoreEntryKey(ItemStack stack) {
if (stack.getItem() instanceof ItemBlockEnchanter)
{
return "lore." + GameRegistry.findUniqueIdentifierFor(stack.getItem()).modId + ".enchanter";
}
else
{
return "lore." + GameRegistry.findUniqueIdentifierFor(stack.getItem()).modId + "." + stack.getUnlocalizedName().replace("item.", "").replace("tile.", "").replace(".name", "").replace(".", "_");
}
}
}