package net.shadowfacts.phycon.init import net.minecraft.block.Block import net.minecraft.util.Identifier import net.minecraft.util.registry.Registry import net.shadowfacts.phycon.network.block.netinterface.InterfaceBlock import net.shadowfacts.phycon.network.block.terminal.TerminalBlock /** * @author shadowfacts */ object PhyBlocks { val INTERFACE = InterfaceBlock() val TERMINAL = TerminalBlock() fun init() { register(InterfaceBlock.ID, INTERFACE) register(TerminalBlock.ID, TERMINAL) } private fun register(id: Identifier, block: Block) { Registry.register(Registry.BLOCK, id, block) } }