MCPcopy Create free account
hub / github.com/cuberite/cuberite / SendMapDecorators

Method SendMapDecorators

src/Protocol/Protocol17x.cpp:611–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609
610
611void cProtocol172::SendMapDecorators(int a_ID, const cMapDecoratorList & a_Decorators)
612{
613 cPacketizer Pkt(*this, 0x34);
614 Pkt.WriteVarInt(a_ID);
615 Pkt.WriteShort (1 + (3 * a_Decorators.size()));
616
617 Pkt.WriteByte(1);
618
619 for (cMapDecoratorList::const_iterator it = a_Decorators.begin(); it != a_Decorators.end(); ++it)
620 {
621 Pkt.WriteByte((it->GetType() << 4) | (it->GetRot() & 0xf));
622 Pkt.WriteByte(it->GetPixelX());
623 Pkt.WriteByte(it->GetPixelZ());
624 }
625}
626
627
628

Callers

nothing calls this directly

Calls 10

sizeMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
GetRotMethod · 0.80
GetPixelXMethod · 0.80
GetPixelZMethod · 0.80
WriteVarIntMethod · 0.45
WriteShortMethod · 0.45
WriteByteMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected