Created
November 25, 2014 03:58
-
-
Save Unh0lyTigg/427b9422374b782872e5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@EventHandler | |
public void pre(FMLPreInitializationEvent event) { | |
SimpleNetworkWrapper n = NetworkRegistry.INSTANCE.newSimpleChannel("test"); | |
n.registerMessage(PacketHandlerSA.class, SAPacket.class, 0, Side.CLIENT); | |
} | |
public static class MessageSendAchievements<T> implements IMessage { | |
public void fromBytes(ByteBuf buf) {} | |
public void toBytes(ByteBuf buf) {} | |
} | |
public static class Element {} | |
public static class PacketHandlerSA implements IMessageHandler<SAPacket, IMessage> { | |
public IMessage onMessage(SAPacket message, MessageContext ctx) { | |
return null; | |
} | |
} | |
public static class SAPacket extends MessageSendAchievements<List<Element>> { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment