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/legacy/ActorRuntimeID.h"
7#include "mc/network/MinecraftPacketIds.h"
8#include "mc/network/packet/InventoryPacket.h"
9#include "mc/platform/Result.h"
10#include "mc/world/ContainerID.h"
11#include "mc/world/item/NetworkItemStackDescriptor.h"
12
13// auto generated forward declare list
14// clang-format off
15class BinaryStream;
16class BlockPalette;
17class ItemStack;
19class ServerPlayer;
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mRuntimeId;
29 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mItem;
30 ::ll::TypedStorage<4, 4, int> mSlot;
31 ::ll::TypedStorage<4, 4, int> mSelectedSlot;
32 ::ll::TypedStorage<1, 1, ::ContainerID> mContainerId;
33 ::ll::TypedStorage<1, 1, uchar> mSlotByte;
34 ::ll::TypedStorage<1, 1, uchar> mSelectedSlotByte;
35 ::ll::TypedStorage<1, 1, uchar> mContainerIdByte;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 MobEquipmentPacket& operator=(MobEquipmentPacket const&);
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 // vIndex: 1
48 virtual ::MinecraftPacketIds getId() const /*override*/;
49
50 // vIndex: 2
51 virtual ::std::string getName() const /*override*/;
52
53 // vIndex: 16
54 virtual void
56 /*override*/;
57
58 // vIndex: 5
59 virtual void write(::BinaryStream& stream) const /*override*/;
60
61 // vIndex: 14
62 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
63
64 // vIndex: 0
65 virtual ~MobEquipmentPacket() /*override*/;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
72
74 ::ActorRuntimeID runtimeId,
76 int slot,
77 int selectedSlot,
78 ::ContainerID containerId
79 );
80
82 ::ActorRuntimeID runtimeId,
83 ::ItemStack const& item,
84 int slot,
85 int selectedSlot,
86 ::ContainerID containerId
87 );
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCAPI void* $ctor(::MobEquipmentPacket&&);
94
95 MCAPI void* $ctor(
96 ::ActorRuntimeID runtimeId,
98 int slot,
99 int selectedSlot,
100 ::ContainerID containerId
101 );
102
103 MCAPI void*
104 $ctor(::ActorRuntimeID runtimeId, ::ItemStack const& item, int slot, int selectedSlot, ::ContainerID containerId);
105 // NOLINTEND
106
107public:
108 // destructor thunk
109 // NOLINTBEGIN
110 MCAPI void $dtor();
111 // NOLINTEND
112
113public:
114 // virtual function thunks
115 // NOLINTBEGIN
116 MCAPI ::MinecraftPacketIds $getId() const;
117
118 MCAPI ::std::string $getName() const;
119
120 MCAPI void $handle(
121 ::ServerPlayer& player,
125 bool
126 ) const;
127
128 MCAPI void $write(::BinaryStream& stream) const;
129
130 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
131 // NOLINTEND
132
133public:
134 // vftables
135 // NOLINTBEGIN
136 MCNAPI static void** $vftable();
137 // NOLINTEND
138};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition BlockPalette.h:19
Definition InventoryPacket.h:16
Definition ItemStack.h:23
Definition MobEquipmentPacket.h:24
static MCAPI void ** $vftable()
Definition NetworkItemStackDescriptor.h:17
Definition ReadOnlyBinaryStream.h:8
Definition ServerPlayer.h:65
Definition ActorRotationComponent.h:8
Definition MoveInputComponent.h:10