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 virtual ~InventoryTransactionPacket() /*override*/;
43
44 virtual ::MinecraftPacketIds getId() const /*override*/;
45
46 virtual ::std::string getName() const /*override*/;
47
48 virtual void write(::BinaryStream& stream) const /*override*/;
49
50 virtual void handle(
51 ::ServerPlayer& player,
52 ::BlockPalette& blockPalette,
53 ::MoveInputComponent const& moveInput,
54 ::ActorRotationComponent& actorRotation,
55 bool isAimAssist
56 ) const /*override*/;
57
58 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
59 // NOLINTEND
60
61public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCAPI void $dtor();
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCAPI ::MinecraftPacketIds $getId() const;
71
72 MCAPI ::std::string $getName() const;
73
74 MCAPI void $write(::BinaryStream& stream) const;
75
76 MCAPI void $handle(
77 ::ServerPlayer& player,
78 ::BlockPalette& blockPalette,
79 ::MoveInputComponent const& moveInput,
80 ::ActorRotationComponent& actorRotation,
81 bool isAimAssist
82 ) const;
83
84 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
85
86
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCNAPI static void** $vftable();
93 // NOLINTEND
94};
Definition BinaryStream.h:11
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:67
Definition ActorRotationComponent.h:8
Definition ItemStackLegacyRequestIdTag.h:5
Definition MoveInputComponent.h:11