Created
July 4, 2014 21:14
-
-
Save WillR27/d822d873ea9b1cb712d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.blocklings.network; | |
import java.io.IOException; | |
import com.blocklings.main.Blocklings; | |
import cpw.mods.fml.common.eventhandler.SubscribeEvent; | |
import cpw.mods.fml.common.network.FMLNetworkEvent.ClientCustomPacketEvent; | |
public class ClientPacketHandler extends ServerPacketHandler { | |
@SubscribeEvent | |
public void onClientPacket(ClientCustomPacketEvent event) throws IOException { | |
channelName = event.packet.channel(); | |
if (channelName.equals(Blocklings.networkChannelName)) { | |
ProcessPacketClientSide.processPacketOnClient(event.packet.payload(), event.packet.getTarget()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment