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