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
24class MobEquipmentPacket : public ::InventoryPacket {
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&);
41 MobEquipmentPacket(MobEquipmentPacket const&);
42 MobEquipmentPacket();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual ::MinecraftPacketIds getId() const /*override*/;
48
49 virtual ::std::string getName() const /*override*/;
50
51 virtual void
53 /*override*/;
54
55 virtual void write(::BinaryStream& stream) const /*override*/;
56
57 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
58
59 virtual ~MobEquipmentPacket() /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI MobEquipmentPacket(::MobEquipmentPacket&&);
66
67 MCAPI MobEquipmentPacket(
68 ::ActorRuntimeID runtimeId,
69 ::ItemStack const& item,
70 int slot,
71 int selectedSlot,
72 ::ContainerID containerId
73 );
74
75 MCAPI MobEquipmentPacket(
76 ::ActorRuntimeID runtimeId,
78 int slot,
79 int selectedSlot,
80 ::ContainerID containerId
81 );
82 // NOLINTEND
83
84public:
85 // constructor thunks
86 // NOLINTBEGIN
87 MCAPI void* $ctor(::MobEquipmentPacket&&);
88
89 MCAPI void*
90 $ctor(::ActorRuntimeID runtimeId, ::ItemStack const& item, int slot, int selectedSlot, ::ContainerID containerId);
91
92 MCAPI void* $ctor(
93 ::ActorRuntimeID runtimeId,
95 int slot,
96 int selectedSlot,
97 ::ContainerID containerId
98 );
99 // NOLINTEND
100
101public:
102 // destructor thunk
103 // NOLINTBEGIN
104 MCAPI void $dtor();
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCAPI ::MinecraftPacketIds $getId() const;
111
112 MCAPI ::std::string $getName() const;
113
114 MCAPI void $handle(
115 ::ServerPlayer& player,
119 bool
120 ) const;
121
122 MCAPI void $write(::BinaryStream& stream) const;
123
124 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
125
126
127 // NOLINTEND
128
129public:
130 // vftables
131 // NOLINTBEGIN
132 MCNAPI static void** $vftable();
133 // NOLINTEND
134};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:11
Definition BlockPalette.h:19
Definition InventoryPacket.h:16
Definition ItemStack.h:26
static MCAPI void ** $vftable()
Definition NetworkItemStackDescriptor.h:17
Definition ReadOnlyBinaryStream.h:8
Definition ServerPlayer.h:67
Definition ActorRotationComponent.h:8
Definition MoveInputComponent.h:11