it runs
This commit is contained in:
parent
6b9f6cb4f8
commit
07a5c322e3
9 changed files with 256 additions and 207 deletions
|
@ -27,16 +27,17 @@ package techreborn.utils;
|
|||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
import reborncore.RebornRegistry;
|
||||
import techreborn.TechReborn;
|
||||
|
||||
public class InitUtils {
|
||||
public static <I extends Item> I setup(I item, String name) {
|
||||
// item.setRegistryName(new Identifier(TechReborn.MOD_ID, name));
|
||||
RebornRegistry.registerIdent(item, new Identifier(TechReborn.MOD_ID, name));
|
||||
return item;
|
||||
}
|
||||
|
||||
public static <B extends Block> B setup(B block, String name) {
|
||||
// block.setRegistryName(new Identifier(TechReborn.MOD_ID, name));
|
||||
RebornRegistry.registerIdent(block, new Identifier(TechReborn.MOD_ID, name));
|
||||
return block;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue