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

The following are Jave code examples for showing how to use setUnlocalizedName() 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.
+ Save this method
Example 1
Project: Anima-Mundi   File: AnimaItems.java   View Source Code Vote up 5 votes
public static void generalRegisterItem(String name, Item item, boolean genericModel)
{
	item.setUnlocalizedName(ModConstants.MODID + ":" + name);
	item.setRegistryName(name);
	item.setCreativeTab(AnimaTab.Tab);

	if(genericModel)
		items.add(item);
}
 
Example 2
Project: customstuff4   File: ContentBlockBase.java   View Source Code Vote up 5 votes
protected void initItem(Item item, ContentHelper helper)
{
    this.item = item;

    item.setUnlocalizedName(helper.getModId() + "." + id);
    item.setRegistryName(id);
}
 
Example 3
Project: Soot   File: Registry.java   View Source Code Vote up 4 votes
public static void registerItem(String id,Item item)
{
    item.setRegistryName(Soot.MODID,id);
    item.setUnlocalizedName(id);
    registerItem(item,true);
}
 
Example 4
Project: Genesis   File: GenesisItems.java   View Source Code Vote up 4 votes
private static void registerItem(final IForgeRegistry<Item> registry, final Item item, final String name) {
    item.setRegistryName(GenesisMod.MOD_ID, name);
    item.setUnlocalizedName(GenesisMod.MOD_ID + "." + name);
    registry.register(item);
    ITEMS.add(item);
}