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/platform/Result.h"
7#include "mc/world/inventory/transaction/ComplexInventoryTransaction.h"
8#include "mc/world/inventory/transaction/InventoryTransactionError.h"
9
10// auto generated forward declare list
11// clang-format off
12class ActorRuntimeID;
13class BinaryStream;
14class BlockPalette;
15class ItemStack;
17class Player;
19class Vec3;
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 // destructor thunk
72 // NOLINTBEGIN
73
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI ::Bedrock::Result<void> $read(::ReadOnlyBinaryStream& stream);
80
81 MCAPI void $write(::BinaryStream& stream) const;
82
83 MCFOLD void $postLoadItems(::BlockPalette& blockPalette, bool isClientSide);
84
85 MCFOLD void $onTransactionError(::Player& player, ::InventoryTransactionError error) const;
86
87 MCAPI ::InventoryTransactionError $handle(::Player& player, bool isSenderAuthority) const;
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCAPI static void** $vftable();
94 // NOLINTEND
95};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition BlockPalette.h:18
Definition ComplexInventoryTransaction.h:20
Definition ItemStack.h:25
Definition ItemUseOnActorInventoryTransaction.h:22
Definition NetworkItemStackDescriptor.h:18
Definition Player.h:119
Definition ReadOnlyBinaryStream.h:8
Definition Vec3.h:10