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;
17class ItemStack;
18class Player;
20// clang-format on
21
23public:
24 // ItemUseOnActorInventoryTransaction inner types define
25 enum class ActionType : int {
26 Interact = 0,
27 Attack = 1,
28 ItemInteract = 2,
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mRuntimeId;
35 ::ll::TypedStorage<4, 4, ::ItemUseOnActorInventoryTransaction::ActionType> mActionType;
36 ::ll::TypedStorage<4, 4, int> mSlot;
37 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mItem;
38 ::ll::TypedStorage<4, 12, ::Vec3> mFromPos;
39 ::ll::TypedStorage<4, 12, ::Vec3> mHitPos;
40 // NOLINTEND
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 // vIndex: 0
46 virtual ~ItemUseOnActorInventoryTransaction() /*override*/ = default;
47
48 // vIndex: 1
49 virtual ::Bedrock::Result<void> read(::ReadOnlyBinaryStream& stream) /*override*/;
50
51 // vIndex: 2
52 virtual void write(::BinaryStream& stream) const /*override*/;
53
54 // vIndex: 3
55 virtual void postLoadItems(::BlockPalette& blockPalette, bool isClientSide) /*override*/;
56
57 // vIndex: 5
58 virtual void onTransactionError(::Player& player, ::InventoryTransactionError error) const /*override*/;
59
60 // vIndex: 4
61 virtual ::InventoryTransactionError handle(::Player& player, bool isSenderAuthority) const /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI ::ItemUseOnActorInventoryTransaction& setSelectedItem(::ItemStack const& item);
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI ::Bedrock::Result<void> $read(::ReadOnlyBinaryStream& stream);
74
75 MCAPI void $write(::BinaryStream& stream) const;
76
77 MCFOLD void $postLoadItems(::BlockPalette& blockPalette, bool isClientSide);
78
79 MCFOLD void $onTransactionError(::Player& player, ::InventoryTransactionError error) const;
80
81 MCAPI ::InventoryTransactionError $handle(::Player& player, bool isSenderAuthority) const;
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCNAPI static void** $vftable();
88 // NOLINTEND
89};
Definition BinaryStream.h:10
Definition BlockPalette.h:18
Definition ComplexInventoryTransaction.h:20
Definition ItemStack.h:25
Definition ItemUseOnActorInventoryTransaction.h:22
static MCAPI void ** $vftable()
Definition Player.h:119
Definition ReadOnlyBinaryStream.h:8