Skip to content
LeviMC
English
AutoLightDark
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/world/inventory/transaction/ComplexInventoryTransaction.h"
8#include "mc/world/inventory/transaction/InventoryTransactionError.h"
9#include "mc/world/item/HandSlot.h"
10#include "mc/world/item/NetworkItemStackDescriptor.h"
11
12// auto generated forward declare list
13// clang-format off
14class BlockPalette;
15class ItemStack;
16class Player;
17// clang-format on
18
19class ItemReleaseInventoryTransaction : public ::ComplexInventoryTransaction {
20public:
21 // ItemReleaseInventoryTransaction inner types define
22 enum class ActionType : int {
23 Release = 0,
24 Use = 1,
25 };
26
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<4, 4, ::ItemReleaseInventoryTransaction::ActionType> mActionType;
31 ::ll::TypedStorage<4, 4, int> mSlot;
32 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mItem;
33 ::ll::TypedStorage<4, 12, ::Vec3> mFromPos;
34 ::ll::TypedStorage<1, 1, ::HandSlot> mHand;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 ItemReleaseInventoryTransaction(ItemReleaseInventoryTransaction const&);
40 ItemReleaseInventoryTransaction();
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual ~ItemReleaseInventoryTransaction() /*override*/;
46
47 virtual void postLoadItems(::BlockPalette& blockPalette, bool isClientSide) /*override*/;
48
49 virtual void onTransactionError(::Player& player, ::InventoryTransactionError error) const /*override*/;
50
51 virtual ::InventoryTransactionError handle(::Player& player, bool isSenderAuthority) const /*override*/;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCNAPI ::ItemReleaseInventoryTransaction& operator=(::ItemReleaseInventoryTransaction const&);
58
59 MCNAPI bool operator==(::ItemReleaseInventoryTransaction const& rhs) const;
60
61 MCNAPI ::ItemReleaseInventoryTransaction& setSelectedItem(::ItemStack const& item);
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCNAPI void $dtor();
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCNAPI void $postLoadItems(::BlockPalette& blockPalette, bool isClientSide);
74
75 MCNAPI void $onTransactionError(::Player& player, ::InventoryTransactionError error) const;
76
77 MCNAPI ::InventoryTransactionError $handle(::Player& player, bool isSenderAuthority) const;
78
79
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition BlockPalette.h:18
Definition ComplexInventoryTransaction.h:17
MCAPI::ItemReleaseInventoryTransaction & setSelectedItem(::ItemStack const &item)
MCAPI::ItemReleaseInventoryTransaction & operator=(::ItemReleaseInventoryTransaction const &)
MCAPI void $postLoadItems(::BlockPalette &blockPalette, bool isClientSide)
MCAPI::InventoryTransactionError $handle(::Player &player, bool isSenderAuthority) const
MCAPI void $onTransactionError(::Player &player, ::InventoryTransactionError error) const
MCAPI bool operator==(::ItemReleaseInventoryTransaction const &rhs) const
static MCAPI void ** $vftable()
Definition ItemStack.h:26
Definition Player.h:131