Botcraft 1.21.4
Loading...
Searching...
No Matches
ServerboundUseItemOnPacket.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace ProtocolCraft
7{
8 class ServerboundUseItemOnPacket : public BaseMessage<ServerboundUseItemOnPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Use Item On";
12
13#if PROTOCOL_VERSION > 452 /* > 1.13.2 */
15#endif
18#if PROTOCOL_VERSION < 477 /* < 1.14 */
20#endif
21 SERIALIZED_FIELD(CursorPositionX, float);
22 SERIALIZED_FIELD(CursorPositionY, float);
23 SERIALIZED_FIELD(CursorPositionZ, float);
24#if PROTOCOL_VERSION > 452 /* > 1.13.2 */
25 SERIALIZED_FIELD(Inside, bool);
26#endif
27#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
28 SERIALIZED_FIELD(WorldBorderHit, bool);
29#endif
30#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
32#endif
33
35 };
36} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Location, NetworkPosition)
SERIALIZED_FIELD(CursorPositionZ, float)
SERIALIZED_FIELD(CursorPositionX, float)
SERIALIZED_FIELD(CursorPositionY, float)