LeviLamina
Loading...
Searching...
No Matches
ItemStackRequestAction.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/util/BidirectionalUnorderedMap.h"
8#include "mc/world/inventory/network/ItemStackRequestActionType.h"
9
10// auto generated forward declare list
11// clang-format off
12class BinaryStream;
13class BlockPalette;
16// clang-format on
17
18class ItemStackRequestAction {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<1, 1, ::ItemStackRequestActionType> mActionType;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 ItemStackRequestAction();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ~ItemStackRequestAction();
33
34 virtual ::ItemStackRequestActionCraftBase const* getCraftAction() const;
35
36 virtual int getFilteredStringIndex() const;
37
38 virtual void postLoadItems_DEPRECATEDASKTYLAING(::BlockPalette& blockPalette, bool isClientSide);
39
40 virtual void _write(::BinaryStream& stream) const = 0;
41
42 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) = 0;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI explicit ItemStackRequestAction(::ItemStackRequestActionType actionType);
49
50 MCFOLD ::ItemStackRequestActionType getActionType() const;
51
52 MCAPI void write(::BinaryStream& stream) const;
53 // NOLINTEND
54
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCAPI static ::std::string const getActionTypeName(::ItemStackRequestActionType type);
59
60 MCAPI static ::Bedrock::Result<::std::unique_ptr<::ItemStackRequestAction>> read(::ReadOnlyBinaryStream& stream);
61 // NOLINTEND
62
63public:
64 // static variables
65 // NOLINTBEGIN
66 MCAPI static ::BidirectionalUnorderedMap<::ItemStackRequestActionType, ::std::string> const& actionTypeMap();
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void* $ctor(::ItemStackRequestActionType actionType);
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCFOLD void $dtor();
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCFOLD ::ItemStackRequestActionCraftBase const* $getCraftAction() const;
85
86 MCFOLD int $getFilteredStringIndex() const;
87
88 MCFOLD void $postLoadItems_DEPRECATEDASKTYLAING(::BlockPalette& blockPalette, bool isClientSide);
89
90
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCAPI static void** $vftable();
97 // NOLINTEND
98};
Definition BinaryStream.h:11
Definition BlockPalette.h:21
Definition ItemStackRequestActionCraftBase.h:16
Definition ReadOnlyBinaryStream.h:8