25#if PROTOCOL_VERSION < 768
27 std::vector<NetworkPosition> ReadToBlow(
ReadIterator& iter,
size_t& length)
const
29 std::vector<NetworkPosition> to_blow(
30#
if PROTOCOL_VERSION < 755
31 ReadData<int>(iter, length)
33 ReadData<VarInt>(iter, length)
37 for (
size_t i = 0; i < to_blow.size(); ++i)
39 to_blow[i].SetX(ReadData<int, char>(iter, length));
40 to_blow[i].SetY(ReadData<int, char>(iter, length));
41 to_blow[i].SetZ(ReadData<int, char>(iter, length));
47 void WriteToBlow(
const std::vector<NetworkPosition>& to_blow,
WriteContainer& container)
const
49#if PROTOCOL_VERSION < 755
50 WriteData<int>(
static_cast<int>(to_blow.size()), container);
52 WriteData<VarInt>(
static_cast<int>(to_blow.size()), container);
55 for (
size_t i = 0; i < to_blow.size(); ++i)
57 WriteData<int, char>(to_blow[i].GetX(), container);
58 WriteData<int, char>(to_blow[i].GetY(), container);
59 WriteData<int, char>(to_blow[i].GetZ(), container);
64#if PROTOCOL_VERSION < 761
68#elif PROTOCOL_VERSION < 768
75#if PROTOCOL_VERSION > 772
79#if PROTOCOL_VERSION < 768
83#if PROTOCOL_VERSION < 768
90#if PROTOCOL_VERSION > 764 && PROTOCOL_VERSION < 768
95#if PROTOCOL_VERSION > 767
98#if PROTOCOL_VERSION > 764 && PROTOCOL_VERSION < 766
100#elif PROTOCOL_VERSION > 764
103#if PROTOCOL_VERSION > 772