Move machine casings over and temp gen localization
This commit is contained in:
parent
c77dc683a1
commit
b4ca82a97b
20 changed files with 987 additions and 570 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue