Move machine casings over and temp gen localization

This commit is contained in:
ProfessorProspector 2018-09-17 17:07:11 -07:00
parent c77dc683a1
commit b4ca82a97b
20 changed files with 987 additions and 570 deletions

View file

@ -13,24 +13,10 @@ public class InitUtils {
return item;
}
public static <I extends Item> I setupIngredient(I item, String name, String type) {
item.setRegistryName(new ResourceLocation(TechReborn.MOD_ID, name + "_" + type));
item.setTranslationKey(TechReborn.MOD_ID + "." + type + "." + name);
item.setCreativeTab(TechReborn.TAB);
return item;
}
public static <B extends Block> B setup(B block, String name) {
block.setRegistryName(new ResourceLocation(TechReborn.MOD_ID, name));
block.setTranslationKey(TechReborn.MOD_ID + "." + name);
block.setCreativeTab(TechReborn.TAB);
return block;
}
public static <B extends Block> B setupIngredient(B block, String name, String type) {
block.setRegistryName(new ResourceLocation(TechReborn.MOD_ID, name + "_" + type));
block.setTranslationKey(TechReborn.MOD_ID + "." + type + "." + name);
block.setCreativeTab(TechReborn.TAB);
return block;
}
}