-
-
Save anonymous/95f092beab1d3fd04466 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.koopamillion.Main; | |
import cpw.mods.fml.common.network.ByteBufUtils; | |
import cpw.mods.fml.common.network.simpleimpl.IMessage; | |
import io.netty.buffer.ByteBuf; | |
public class JetpackMessage implements IMessage{ | |
public static int i; | |
public JetpackMessage() {} | |
public JetpackMessage(int i) { | |
this.i = i; | |
} | |
@Override | |
public void fromBytes(ByteBuf buf) { | |
i = buf.readInt(); | |
} | |
@Override | |
public void toBytes(ByteBuf buf) { | |
buf.writeInt(i); | |
} | |
public static final void sendToServer(IMessage message) { | |
MainRegistry.network.sendToServer(message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment