Migrated batteries + TR Itemgroup
This commit is contained in:
parent
0c99a94250
commit
e513e20e5a
16 changed files with 101 additions and 108 deletions
|
@ -8,15 +8,11 @@ import techreborn.TechReborn;
|
|||
public class InitUtils {
|
||||
public static <I extends Item> I setup(I item, String name) {
|
||||
item.setRegistryName(new ResourceLocation(TechReborn.MOD_ID, name));
|
||||
item.setTranslationKey(TechReborn.MOD_ID + "." + 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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue