equivalent-exchange-3/src/main/java/com/pahimar/ee3/network/PacketHandler.java

103 lines
3.6 KiB
Java
Raw Normal View History

2014-04-29 03:24:31 +02:00
package com.pahimar.ee3.network;
2014-05-23 00:35:31 +02:00
import com.pahimar.ee3.network.message.*;
2014-04-29 03:24:31 +02:00
import com.pahimar.ee3.reference.Reference;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import cpw.mods.fml.relauncher.Side;
public class PacketHandler {
2023-01-03 17:47:36 +01:00
public static final SimpleNetworkWrapper INSTANCE
= NetworkRegistry.INSTANCE.newSimpleChannel(Reference.LOWERCASE_MOD_ID);
2014-04-29 03:24:31 +02:00
public static void init() {
2023-01-03 17:47:36 +01:00
INSTANCE.registerMessage(
MessageTileEntityEE.class, MessageTileEntityEE.class, 0, Side.CLIENT
);
INSTANCE.registerMessage(
MessageTileCalcinator.class, MessageTileCalcinator.class, 1, Side.CLIENT
);
INSTANCE.registerMessage(
MessageTileEntityAludel.class, MessageTileEntityAludel.class, 2, Side.CLIENT
);
INSTANCE.registerMessage(
MessageTileEntityGlassBell.class,
MessageTileEntityGlassBell.class,
3,
Side.CLIENT
);
INSTANCE.registerMessage(
MessageKeyPressed.class, MessageKeyPressed.class, 4, Side.SERVER
);
INSTANCE.registerMessage(
MessageSoundEvent.class, MessageSoundEvent.class, 5, Side.CLIENT
);
INSTANCE.registerMessage(
MessageSyncEnergyValues.class, MessageSyncEnergyValues.class, 6, Side.CLIENT
);
INSTANCE.registerMessage(
MessageSetEnergyValue.class, MessageSetEnergyValue.class, 7, Side.CLIENT
);
INSTANCE.registerMessage(
MessageGuiElementClicked.class, MessageGuiElementClicked.class, 8, Side.SERVER
);
INSTANCE.registerMessage(
MessageGuiElementTextFieldUpdate.class,
MessageGuiElementTextFieldUpdate.class,
9,
Side.SERVER
);
INSTANCE.registerMessage(
MessageChalkSettings.class, MessageChalkSettings.class, 10, Side.CLIENT
);
INSTANCE.registerMessage(
MessageTileEntityDummy.class, MessageTileEntityDummy.class, 11, Side.CLIENT
);
INSTANCE.registerMessage(
MessageTileEntityAlchemyArray.class,
MessageTileEntityAlchemyArray.class,
12,
Side.CLIENT
);
INSTANCE.registerMessage(
MessageTileEntityTransmutationTablet.class,
MessageTileEntityTransmutationTablet.class,
13,
Side.CLIENT
);
INSTANCE.registerMessage(
MessageSingleParticleEvent.class,
MessageSingleParticleEvent.class,
14,
Side.CLIENT
);
INSTANCE.registerMessage(
MessageSliderElementUpdated.class,
MessageSliderElementUpdated.class,
15,
Side.SERVER
);
INSTANCE.registerMessage(
MessagePlayerKnowledge.class, MessagePlayerKnowledge.class, 16, Side.CLIENT
);
INSTANCE.registerMessage(
MessageTileEntityResearchStation.class,
MessageTileEntityResearchStation.class,
17,
Side.CLIENT
);
INSTANCE.registerMessage(
MessageSyncBlacklist.class, MessageSyncBlacklist.class, 18, Side.CLIENT
);
INSTANCE.registerMessage(
MessageSetBlacklistEntry.class,
MessageSetBlacklistEntry.class,
19,
Side.CLIENT
);
INSTANCE.registerMessage(
MessageTransmutateEvent.class, MessageTransmutateEvent.class, 20, Side.SERVER
);
2014-04-29 03:24:31 +02:00
}
}