Skip to content

Instantly share code, notes, and snippets.

Created March 28, 2016 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3b51310aa295b8fd8c3e to your computer and use it in GitHub Desktop.
Save anonymous/3b51310aa295b8fd8c3e to your computer and use it in GitHub Desktop.
package com.koopamillion.Main;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
import net.minecraft.entity.player.EntityPlayer;
public class JetpackHandler implements IMessageHandler<JetpackMessage, IMessage>{
public IMessage handleServerMessage(EntityPlayer player, JetpackMessage message, MessageContext ctx) {
System.out.println(message.i);
return null;
}
@Override
public IMessage onMessage(JetpackMessage message, MessageContext ctx) {
System.out.println(message.i);
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment