LeviLamina
Loading...
Searching...
No Matches
InventoryTransactionPacket.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/InventoryPacket.h"
8#include "mc/platform/Result.h"
9#include "mc/world/containers/ContainerEnumName.h"
10#include "mc/world/inventory/network/TypedClientNetId.h"
11
12// auto generated forward declare list
13// clang-format off
14class BinaryStream;
15class BlockPalette;
18class ServerPlayer;
22// clang-format on
23
25public:
26 // InventoryTransactionPacket inner types define
27 using LegacySetSlot = ::std::pair<::ContainerEnumName, ::std::vector<uchar>>;
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<4, 16, ::ItemStackLegacyRequestId> mLegacyRequestId;
33 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::ContainerEnumName, ::std::vector<uchar>>>>
34 mLegacySetItemSlots;
35 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ComplexInventoryTransaction>> mTransaction;
36 ::ll::TypedStorage<1, 1, bool> mIsClientSide;
37 // NOLINTEND
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 0
43 virtual ~InventoryTransactionPacket() /*override*/;
44
45 // vIndex: 1
46 virtual ::MinecraftPacketIds getId() const /*override*/;
47
48 // vIndex: 2
49 virtual ::std::string getName() const /*override*/;
50
51 // vIndex: 5
52 virtual void write(::BinaryStream& stream) const /*override*/;
53
54 // vIndex: 16
55 virtual void handle(
56 ::ServerPlayer& player,
57 ::BlockPalette& blockPalette,
58 ::MoveInputComponent const& moveInput,
59 ::ActorRotationComponent& actorRotation,
60 bool isAimAssist
61 ) const /*override*/;
62
63 // vIndex: 14
64 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
65 // NOLINTEND
66
67public:
68 // destructor thunk
69 // NOLINTBEGIN
70 MCAPI void $dtor();
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI ::MinecraftPacketIds $getId() const;
77
78 MCAPI ::std::string $getName() const;
79
80 MCAPI void $write(::BinaryStream& stream) const;
81
82 MCAPI void $handle(
83 ::ServerPlayer& player,
84 ::BlockPalette& blockPalette,
85 ::MoveInputComponent const& moveInput,
86 ::ActorRotationComponent& actorRotation,
87 bool isAimAssist
88 ) const;
89
90 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
Definition BinaryStream.h:10
Definition BlockPalette.h:19
Definition ComplexInventoryTransaction.h:19
Definition InventoryPacket.h:16
Definition InventoryTransactionPacket.h:24
static MCAPI void ** $vftable()
Definition ReadOnlyBinaryStream.h:8
Definition ServerPlayer.h:65
Definition ActorRotationComponent.h:8
Definition ItemStackLegacyRequestIdTag.h:5
Definition MoveInputComponent.h:10