Move items, sounds, potions to new registration system

This commit is contained in:
Vincent Lee committed 2017-06-24 22:48:35 -05:00
1 parent 101c72e633
commit a6b37966a1
15 files changed
+355 -353

No files matched your search

@@ -29,15 +29,10 @@ public abstract class ItemMod extends Item implements IModelRegister {
public ItemMod(String name) {
setCreativeTab(BotaniaCreativeTab.INSTANCE);
if(shouldRegister())
GameRegistry.register(this, new ResourceLocation(LibMisc.MOD_ID, name));
setRegistryName(new ResourceLocation(LibMisc.MOD_ID, name))
setUnlocalizedName(name);
}
protected boolean shouldRegister() {
return true;
}
@Nonnull
@Override
public String getUnlocalizedNameInefficiently(@Nonnull ItemStack par1ItemStack) {