Java Code Examples for net.minecraft.item.Item.getUnlocalizedName()

The following are Jave code examples for showing how to use getUnlocalizedName() of the net.minecraft.item.Item class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: connor41-etfuturum2   File: ModItems.java   Source Code and License Vote up 5 votes
private static void registerItem(Item item) {
	if (!(item instanceof IConfigurable) || ((IConfigurable) item).isEnabled()) {
		String name = item.getUnlocalizedName();
		String[] strings = name.split("\\.");
		GameRegistry.registerItem(item, strings[strings.length - 1]);
	}
}
 
Example 2
Project: Zombe-Modpack   File: ZWrapper.java   Source Code and License Vote up 4 votes
public static String getName(Item item) {
    return item.getUnlocalizedName();
}