LeviLamina
Loading...
Searching...
No Matches
ItemStackRequestActionTransferBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7#include "mc/world/inventory/network/ItemStackRequestAction.h"
8#include "mc/world/inventory/network/ItemStackRequestActionType.h"
9#include "mc/world/inventory/network/ItemStackRequestSlotInfo.h"
10
11// auto generated forward declare list
12// clang-format off
13class BinaryStream;
15// clang-format on
16
17class ItemStackRequestActionTransferBase : public ::ItemStackRequestAction {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<1, 1, bool> mIsDstSerialized;
22 ::ll::TypedStorage<1, 1, bool> mIsAmountSerialized;
23 ::ll::TypedStorage<1, 1, uchar> mAmount;
24 ::ll::TypedStorage<8, 40, ::ItemStackRequestSlotInfo> mSrc;
25 ::ll::TypedStorage<8, 40, ::ItemStackRequestSlotInfo> mDst;
26 // NOLINTEND
27
28#ifdef LL_PLAT_S
29#else // LL_PLAT_C
30public:
31 // prevent constructor by default
32 ItemStackRequestActionTransferBase();
33
34#endif
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual void _write(::BinaryStream& stream) const /*override*/;
39
40 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46#ifdef LL_PLAT_C
47 MCNAPI ItemStackRequestActionTransferBase(
48 ::ItemStackRequestActionType actionType,
49 uchar amount,
52 bool isDstSerialized,
53 bool isAmountSerialized
54 );
55#endif
56
57 MCNAPI uchar getAmount() const;
58
59 MCNAPI ::ItemStackRequestSlotInfo const& getDst() const;
60
61 MCNAPI ::ItemStackRequestSlotInfo const& getSrc() const;
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67#ifdef LL_PLAT_C
68 MCNAPI void* $ctor(
69 ::ItemStackRequestActionType actionType,
70 uchar amount,
73 bool isDstSerialized,
74 bool isAmountSerialized
75 );
76#endif
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCNAPI void $_write(::BinaryStream& stream) const;
83
84 MCNAPI ::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
MCAPI::ItemStackRequestSlotInfo const & getSrc() const
MCAPI void $_write(::BinaryStream &stream) const
MCAPI::ItemStackRequestSlotInfo const & getDst() const
MCAPI ::Bedrock::Result< void > $_read(::ReadOnlyBinaryStream &stream)
static MCAPI void ** $vftable()
Definition ReadOnlyBinaryStream.h:8
Definition ItemStackRequestSlotInfo.h:11