package com.TominoCZ.PAYDAY.packet;

import cpw.mods.fml.common.network.simpleimpl.IMessage;
import io.netty.buffer.ByteBuf;

public class LobbyPlayerOpenedGuiPacket implements IMessage {
	public int x, y, z;
	
	public LobbyPlayerOpenedGuiPacket(){
		
	}
	
	public LobbyPlayerOpenedGuiPacket(int x, int y, int z) {
		this.x = x;
		this.y = y;
		this.z = z;
	}

	@Override
	public void toBytes(ByteBuf buf) {
		buf.writeInt(x);
		buf.writeInt(y);
		buf.writeInt(z);
	}

	@Override
	public void fromBytes(ByteBuf buf) {
		x = buf.readInt();
		y = buf.readInt();
		z = buf.readInt();
	}
}