Search in sources :

Example 1 with LogicChannelType

use of mcjty.xnet.apiimpl.logic.LogicChannelType in project XNet by McJty.

the class CommonProxy method preInit.

public void preInit(FMLPreInitializationEvent e) {
    MinecraftForge.EVENT_BUS.register(new ForgeEventHandlers());
    McJtyLib.preInit(e);
    CommandHandler.registerCommands();
    GeneralConfig.preInit(e);
    modConfigDir = e.getModConfigurationDirectory();
    mainConfig = new Configuration(new File(modConfigDir.getPath() + File.separator + "xnet", "xnet.cfg"));
    readMainConfig();
    SimpleNetworkWrapper network = PacketHandler.registerMessages(XNet.MODID, "xnet");
    XNetMessages.registerNetworkMessages(network);
    ModItems.init();
    ModBlocks.init();
    XNet.xNetApi.registerChannelType(new ItemChannelType());
    XNet.xNetApi.registerChannelType(new EnergyChannelType());
    XNet.xNetApi.registerChannelType(new FluidChannelType());
    XNet.xNetApi.registerChannelType(new LogicChannelType());
}
Also used : SimpleNetworkWrapper(net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper) FluidChannelType(mcjty.xnet.apiimpl.fluids.FluidChannelType) LogicChannelType(mcjty.xnet.apiimpl.logic.LogicChannelType) GeneralConfiguration(mcjty.xnet.config.GeneralConfiguration) Configuration(net.minecraftforge.common.config.Configuration) ForgeEventHandlers(mcjty.xnet.ForgeEventHandlers) ItemChannelType(mcjty.xnet.apiimpl.items.ItemChannelType) File(java.io.File) EnergyChannelType(mcjty.xnet.apiimpl.energy.EnergyChannelType)

Aggregations

File (java.io.File)1 ForgeEventHandlers (mcjty.xnet.ForgeEventHandlers)1 EnergyChannelType (mcjty.xnet.apiimpl.energy.EnergyChannelType)1 FluidChannelType (mcjty.xnet.apiimpl.fluids.FluidChannelType)1 ItemChannelType (mcjty.xnet.apiimpl.items.ItemChannelType)1 LogicChannelType (mcjty.xnet.apiimpl.logic.LogicChannelType)1 GeneralConfiguration (mcjty.xnet.config.GeneralConfiguration)1 Configuration (net.minecraftforge.common.config.Configuration)1 SimpleNetworkWrapper (net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper)1