Skip to content

Instantly share code, notes, and snippets.

Created Mar 28, 2016
Embed
What would you like to do?
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