package net.shadowfacts.phycon import net.fabricmc.api.ModInitializer import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking import net.shadowfacts.phycon.init.PhyBlockEntities import net.shadowfacts.phycon.init.PhyBlocks import net.shadowfacts.phycon.init.PhyItems import net.shadowfacts.phycon.init.PhyScreens import net.shadowfacts.phycon.networking.* /** * @author shadowfacts */ object PhysicalConnectivity: ModInitializer { val MODID = "phycon" override fun onInitialize() { PhyBlocks.init() PhyBlockEntities.init() PhyItems.init() PhyScreens.init() registerGlobalReceiver(C2STerminalRequestItem) registerGlobalReceiver(C2STerminalUpdateDisplayedItems) registerGlobalReceiver(C2SConfigureActivationMode) registerGlobalReceiver(C2SConfigureRedstoneController) } private fun registerGlobalReceiver(receiver: ServerReceiver) { ServerPlayNetworking.registerGlobalReceiver(receiver.CHANNEL, receiver) } }