LeviLamina
Loading...
Searching...
No Matches
ItemReleaseInventoryTransaction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/platform/Result.h"
8#include "mc/world/inventory/transaction/ComplexInventoryTransaction.h"
9#include "mc/world/inventory/transaction/InventoryTransactionError.h"
10#include "mc/world/item/NetworkItemStackDescriptor.h"
11
12// auto generated forward declare list
13// clang-format off
14class BinaryStream;
15class BlockPalette;
17class ItemStack;
18class Player;
20// clang-format on
21
22class ItemReleaseInventoryTransaction : public ::ComplexInventoryTransaction {
23public:
24 // ItemReleaseInventoryTransaction inner types define
25 enum class ActionType : int {
26 Release = 0,
27 Use = 1,
28 };
29
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<4, 4, ::ItemReleaseInventoryTransaction::ActionType> mActionType;
34 ::ll::TypedStorage<4, 4, int> mSlot;
35 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mItem;
36 ::ll::TypedStorage<4, 12, ::Vec3> mFromPos;
37 // NOLINTEND
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~ItemReleaseInventoryTransaction() /*override*/;
43
44 virtual ::Bedrock::Result<void> read(::ReadOnlyBinaryStream& stream) /*override*/;
45
46 virtual void write(::BinaryStream& stream) const /*override*/;
47
48 virtual void postLoadItems(::BlockPalette& blockPalette, bool isClientSide) /*override*/;
49
50 virtual void onTransactionError(::Player& player, ::InventoryTransactionError error) const /*override*/;
51
52 virtual ::InventoryTransactionError handle(::Player& player, bool isSenderAuthority) const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI ItemReleaseInventoryTransaction();
59
60 MCAPI explicit ItemReleaseInventoryTransaction(::InventoryTransaction const& transaction);
61
62 MCAPI ::ItemReleaseInventoryTransaction& setSelectedItem(::ItemStack const& item);
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor();
69
70 MCAPI void* $ctor(::InventoryTransaction const& transaction);
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCAPI void $dtor();
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI ::Bedrock::Result<void> $read(::ReadOnlyBinaryStream& stream);
83
84 MCAPI void $write(::BinaryStream& stream) const;
85
86 MCFOLD void $postLoadItems(::BlockPalette& blockPalette, bool isClientSide);
87
88 MCFOLD void $onTransactionError(::Player& player, ::InventoryTransactionError error) const;
89
90 MCAPI ::InventoryTransactionError $handle(::Player& player, bool isSenderAuthority) const;
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCAPI static void** $vftable();
99 // NOLINTEND
100};
Definition BinaryStream.h:11
Definition BlockPalette.h:21
Definition ComplexInventoryTransaction.h:21
static MCAPI void ** $vftable()
Definition InventoryTransaction.h:22
Definition ItemStack.h:35
Definition Player.h:137
Definition ReadOnlyBinaryStream.h:8