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;
14// clang-format on
15
16class BundleHelper {
17public:
18 // BundleHelper inner types define
19 enum class BundleItemStickScrollDirection : int {
20 Left = 0,
21 Right = 1,
22 Up = 2,
23 Down = 3,
24 };
25
26 enum class BundleItemScrollWheelDirection : int {
27 Up = 0,
28 Down = 1,
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 144, ::ActiveBundleData> mActiveBundleData;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI bool isSlotInteractiveBundle(
41 ::ContainerScreenController const& controller,
42 ::std::string const& collectionName,
43 int collectionIndex
44 ) const;
45
46 MCAPI ::ui::ViewRequest onBundleItemRightStick(
47 ::ContainerScreenController& controller,
48 ::BundleHelper::BundleItemStickScrollDirection direction
49 );
50
51 MCAPI ::ui::ViewRequest onBundleItemScrollWheel(
52 ::ContainerScreenController& controller,
53 ::BundleHelper::BundleItemScrollWheelDirection direction
54 );
55
56 MCAPI bool shouldHandleBundleIdlePlaceAll(
57 ::ContainerScreenController& controller,
58 ::std::string const& collectionName,
59 int collectionIndex
60 ) const;
61 // NOLINTEND
62
63public:
64 // static functions
65 // NOLINTBEGIN
66 MCAPI static bool _shouldShowBundleOpen(
67 ::std::string const& collectionName,
68 int collectionIndex,
69 bool usingTouchScheme,
70 ::ActiveBundleData const& activeBundleData
71 );
72
73 MCAPI static ::ItemStack const& getItemStackFromBundle(
74 ::ContainerScreenController const& controller,
75 ::ItemStackBase const& bundleItem,
76 int bundleItemIdx
77 );
78 // NOLINTEND
79};
Definition BundleHelper.h:5
Definition ContainerScreenController.h:5
Definition ItemStackBase.h:44
Definition ItemStack.h:26