﻿using System;
using MoBot.Core.GameData;
using MoBot.Core.Net.Handlers;

namespace MoBot.Core.Net.Packets.Play
{
    internal class PacketPlayerBlockPlacement : Packet
    {
        public int X, Y, Z;
        public ItemStack Item;
        public byte Face;


        public virtual void HandlePacket(IHandler handler)
        {
            throw new NotImplementedException();
        }

        public override void ReadPacketData(StreamWrapper buff)
        {
            throw new NotImplementedException();
        }

        public override void WritePacketData(StreamWrapper buff)
        {
            buff.WriteInt(X);
            buff.WriteByte((byte) Y);
            buff.WriteInt(Z);
            buff.WriteByte(Face);
            WriteItem(buff, Item);
            buff.WriteByte(7);
            buff.WriteByte(7);
            buff.WriteByte(7);
        }
    }
}
