2019-10-27 01:36:31 +00:00
|
|
|
package net.shadowfacts.phycon
|
|
|
|
|
|
|
|
import net.fabricmc.api.ModInitializer
|
2021-02-16 03:51:33 +00:00
|
|
|
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking
|
2019-10-27 01:36:31 +00:00
|
|
|
import net.shadowfacts.phycon.init.PhyBlockEntities
|
|
|
|
import net.shadowfacts.phycon.init.PhyBlocks
|
|
|
|
import net.shadowfacts.phycon.init.PhyItems
|
2021-02-14 02:37:39 +00:00
|
|
|
import net.shadowfacts.phycon.init.PhyScreens
|
2021-02-24 03:05:05 +00:00
|
|
|
import net.shadowfacts.phycon.networking.*
|
2019-10-27 01:36:31 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
|
|
|
object PhysicalConnectivity: ModInitializer {
|
|
|
|
|
|
|
|
val MODID = "phycon"
|
|
|
|
|
|
|
|
override fun onInitialize() {
|
|
|
|
PhyBlocks.init()
|
|
|
|
PhyBlockEntities.init()
|
|
|
|
PhyItems.init()
|
2021-02-14 02:37:39 +00:00
|
|
|
PhyScreens.init()
|
2021-02-16 03:51:33 +00:00
|
|
|
|
|
|
|
registerGlobalReceiver(C2STerminalRequestItem)
|
2021-02-21 17:00:32 +00:00
|
|
|
registerGlobalReceiver(C2STerminalUpdateDisplayedItems)
|
2021-02-24 03:05:05 +00:00
|
|
|
registerGlobalReceiver(C2SConfigureActivationMode)
|
|
|
|
registerGlobalReceiver(C2SConfigureRedstoneController)
|
2021-02-16 03:51:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private fun registerGlobalReceiver(receiver: ServerReceiver) {
|
|
|
|
ServerPlayNetworking.registerGlobalReceiver(receiver.CHANNEL, receiver)
|
2019-10-29 19:15:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|