LeviLamina
Loading...
Searching...
No Matches
BundleHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/ViewRequest.h"
7#include "mc/client/gui/screens/controllers/ActiveBundleData.h"
8
9// auto generated forward declare list
10// clang-format off
12class ItemStack;
13class ItemStackBase;
15// clang-format on
16
17class BundleHelper {
18public:
19 // BundleHelper inner types define
20 enum class BundleItemStickScrollDirection : int {};
21
22 enum class BundleItemScrollWheelDirection : int {};
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 152, ::ActiveBundleData> mActiveBundleData;
28 // NOLINTEND
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI bool bundleModeItemTransferOut(
34 ::ContainerScreenController& controller,
35 ::std::string const& toCollectionName,
36 int toCollectionIndex,
37 ::std::string const& fromBundleCollectionName,
38 int fromBundleCollectionIndex
39 );
40
41 MCAPI ::ItemStack const& getItemStackFromBundle(
42 ::ContainerScreenController const& controller,
43 ::ItemStackBase const& bundleItem,
44 int bundleItemIdx
45 ) const;
46
47 MCAPI void handleBundleActive(
48 ::ContainerScreenController& controller,
49 ::std::string const& collectionName,
50 int collectionIndex
51 );
52
53 MCAPI void handleBundleHovered(
54 ::ContainerScreenController& controller,
55 ::std::string const& collectionName,
56 int collectionIndex
57 );
58
59 MCAPI void handleBundleItemTransferIn(
60 ::ContainerScreenController& controller,
61 ::std::string const& collectionName,
62 int collectionIndex
63 );
64
65 MCAPI void handleBundleItemTransferOut(
66 ::ContainerScreenController& controller,
67 ::std::string const& collectionName,
68 int collectionIndex
69 );
70
71 MCAPI void handleBundleUnselected(::ContainerScreenController& controller);
72
73 MCAPI bool isSlotInteractiveBundle(
74 ::ContainerScreenController const& controller,
75 ::std::string const& collectionName,
76 int collectionIndex
77 ) const;
78
79 MCAPI ::ui::ViewRequest onBundleItemRightStick(
80 ::ContainerScreenController& controller,
81 ::BundleHelper::BundleItemStickScrollDirection direction
82 );
83
84 MCAPI ::ui::ViewRequest onBundleItemScrollWheel(
85 ::ContainerScreenController& controller,
86 ::BundleHelper::BundleItemScrollWheelDirection direction
87 );
88
89 MCAPI bool shouldHandleBundleIdlePlaceAll(
90 ::ContainerScreenController& controller,
91 ::std::string const& collectionName,
92 int collectionIndex
93 ) const;
94
95 MCAPI bool
96 shouldShowBundleOpen(::std::string const& collectionName, int collectionIndex, bool usingTouchScheme) const;
97
98 MCAPI ~BundleHelper();
99 // NOLINTEND
100
101public:
102 // static functions
103 // NOLINTBEGIN
104 MCAPI static ::ui::ViewRequest _onBundleItemRightStick(
105 ::BundleHelper::BundleItemStickScrollDirection direction,
106 ::BundleTooltipLayoutData tooltipLayoutData,
107 ::ActiveBundleData& activeBundleData
108 );
109
110 MCAPI static void registerBindings(::ContainerScreenController& controller);
111
112 MCAPI static void registerEventHandlers(::ContainerScreenController& controller);
113
114 MCAPI static void registerStateMachine(::ContainerScreenController& controller);
115 // NOLINTEND
116
117public:
118 // destructor thunk
119 // NOLINTBEGIN
120 MCAPI void $dtor();
121 // NOLINTEND
122};
Definition BundleHelper.h:5
Definition ContainerScreenController.h:5
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition BundleTooltipLayoutData.h:5