public void Send(PacketBuffer buffer) { buffer.WriteULong((ulong)position.ToLong()); buffer.WriteByte(placedBlockDirection); buffer.WriteShort((short)stack.id); buffer.WriteByte((byte)stack.count); buffer.WriteShort((short)stack.meta); buffer.WriteBool(false); buffer.WriteByte((byte)(facingX * 16)); buffer.WriteByte((byte)(facingY * 16)); buffer.WriteByte((byte)(facingZ * 16)); }
public void Send(PacketBuffer buffer) { buffer.WriteVarInt((int)status); buffer.WriteULong((ulong)position.ToLong()); buffer.WriteByte(facing); }