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

Method HandleServerNamedSoundEffect

Tools/ProtoProxy/Connection.cpp:1945–1960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1943
1944
1945bool cConnection::HandleServerNamedSoundEffect(void)
1946{
1947 HANDLE_SERVER_PACKET_READ(ReadVarUTF8String, AString, SoundName);
1948 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosX);
1949 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosY);
1950 HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosZ);
1951 HANDLE_SERVER_PACKET_READ(ReadBEFloat, float, Volume);
1952 HANDLE_SERVER_PACKET_READ(ReadByte, Byte, Pitch);
1953 Log("Received a PACKET_NAMED_SOUND_EFFECT from the server:");
1954 Log(" SoundName = \"%s\"", SoundName.c_str());
1955 Log(" Pos = %s", PrintableAbsIntTriplet(PosX, PosY, PosZ, 8).c_str());
1956 Log(" Volume = %f", Volume);
1957 Log(" Pitch = %d", Pitch);
1958 COPY_TO_CLIENT();
1959 return true;
1960}
1961
1962
1963

Callers

nothing calls this directly

Calls 2

PrintableAbsIntTripletFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected