33 lines
863 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-28 11:53:47 -04:00
import net.shadowfacts.phycon.network.block.cable.CableBlock
2019-10-26 22:12:02 -04:00
import net.shadowfacts.phycon.network.block.netinterface.InterfaceBlock
2019-10-26 23:13:26 -04:00
import net.shadowfacts.phycon.network.block.netswitch.SwitchBlock
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()
2019-10-26 23:13:26 -04:00
val SWITCH = SwitchBlock()
2019-10-28 11:53:47 -04:00
val CABLE = CableBlock()
2019-10-26 21:36:31 -04:00
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)
2019-10-26 23:13:26 -04:00
register(SwitchBlock.ID, SWITCH)
2019-10-28 11:53:47 -04:00
register(CableBlock.ID, CABLE)
2019-10-26 21:36:31 -04:00
}
private fun register(id: Identifier, block: Block) {
Registry.register(Registry.BLOCK, id, block)
}
2019-10-26 22:12:02 -04:00
}