Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package greatblitz.testmod.client.gui;
- import io.netty.buffer.ByteBuf;
- import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
- public class GuiMessage implements IMessage {
- public int rf, gas, x, y, z;
- public GuiMessage() {}
- public GuiMessage(int crf, int cgas, int cx, int cy, int cz) {
- rf = crf;
- gas = cgas;
- x = cx;
- y = cy;
- z = cz;
- }
- @Override
- public void fromBytes(ByteBuf buf) {
- rf = buf.readInt();
- gas = buf.readInt();
- x = buf.readInt();
- y = buf.readInt();
- z = buf.readInt();
- }
- @Override
- public void toBytes(ByteBuf buf) {
- buf.writeInt(rf);
- buf.writeInt(gas);
- buf.writeInt(x);
- buf.writeInt(y);
- buf.writeInt(z);
- }
- }
Add Comment
Please, Sign In to add comment