27 lines
614 B
Kotlin
Raw Normal View History

2019-10-26 21:36:31 -04:00
package net.shadowfacts.phycon.init
import net.minecraft.block.Block
import net.minecraft.util.Identifier
import net.minecraft.util.registry.Registry
2019-10-26 22:12:02 -04:00
import net.shadowfacts.phycon.network.block.netinterface.InterfaceBlock
2019-10-26 21:36:31 -04:00
import net.shadowfacts.phycon.network.block.terminal.TerminalBlock
/**
* @author shadowfacts
*/
object PhyBlocks {
2019-10-26 22:12:02 -04:00
val INTERFACE = InterfaceBlock()
2019-10-26 21:36:31 -04:00
val TERMINAL = TerminalBlock()
fun init() {
2019-10-26 22:12:02 -04:00
register(InterfaceBlock.ID, INTERFACE)
2019-10-26 21:36:31 -04:00
register(TerminalBlock.ID, TERMINAL)
}
private fun register(id: Identifier, block: Block) {
Registry.register(Registry.BLOCK, id, block)
}
2019-10-26 22:12:02 -04:00
}