LeviLamina
Loading...
Searching...
No Matches
MobEquipmentPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/MinecraftPacketIds.h"
7#include "mc/network/packet/Packet.h"
8#include "mc/platform/Result.h"
9#include "mc/world/ContainerID.h"
10
11// auto generated forward declare list
12// clang-format off
13class ActorRuntimeID;
14class BinaryStream;
15class ItemStack;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mRuntimeId;
25 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mItem;
26 ::ll::TypedStorage<4, 4, int> mSlot;
27 ::ll::TypedStorage<4, 4, int> mSelectedSlot;
28 ::ll::TypedStorage<1, 1, ::ContainerID> mContainerId;
29 ::ll::TypedStorage<1, 1, uchar> mSlotByte;
30 ::ll::TypedStorage<1, 1, uchar> mSelectedSlotByte;
31 ::ll::TypedStorage<1, 1, uchar> mContainerIdByte;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 MobEquipmentPacket& operator=(MobEquipmentPacket const&);
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 1
43 virtual ::MinecraftPacketIds getId() const /*override*/;
44
45 // vIndex: 2
46 virtual ::std::string getName() const /*override*/;
47
48 // vIndex: 4
49 virtual void write(::BinaryStream& stream) const /*override*/;
50
51 // vIndex: 8
52 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
53
54 // vIndex: 0
55 virtual ~MobEquipmentPacket() /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
62
64 ::ActorRuntimeID runtimeId,
66 int slot,
67 int selectedSlot,
68 ::ContainerID containerId
69 );
70
72 ::ActorRuntimeID runtimeId,
73 ::ItemStack const& item,
74 int slot,
75 int selectedSlot,
76 ::ContainerID containerId
77 );
78
79 MCAPI void _convertFromBytes();
80 // NOLINTEND
81
82public:
83 // constructor thunks
84 // NOLINTBEGIN
85 MCAPI void* $ctor(::MobEquipmentPacket&&);
86
87 MCAPI void* $ctor(
88 ::ActorRuntimeID runtimeId,
90 int slot,
91 int selectedSlot,
92 ::ContainerID containerId
93 );
94
95 MCAPI void*
96 $ctor(::ActorRuntimeID runtimeId, ::ItemStack const& item, int slot, int selectedSlot, ::ContainerID containerId);
97 // NOLINTEND
98
99public:
100 // destructor thunk
101 // NOLINTBEGIN
102 MCAPI void $dtor();
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCAPI ::MinecraftPacketIds $getId() const;
109
110 MCAPI ::std::string $getName() const;
111
112 MCAPI void $write(::BinaryStream& stream) const;
113
114 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
115 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCAPI static void** $vftable();
121 // NOLINTEND
122};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition ItemStack.h:25
Definition MobEquipmentPacket.h:20
Definition NetworkItemStackDescriptor.h:18
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8