Skip to content
LeviMC
English
AutoLightDark
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
41 ::ContainerScreenController const& controller,
42 ::std::string const& collectionName,
43 int collectionIndex
44 ) const;
45
46 MCNAPI ::ui::ViewRequest onBundleItemRightStick(
48 ::BundleHelper::BundleItemStickScrollDirection direction
49 );
50
51 MCNAPI ::ui::ViewRequest onBundleItemScrollWheel(
53 ::BundleHelper::BundleItemScrollWheelDirection direction
54 );
55 // NOLINTEND
56
57public:
58 // static functions
59 // NOLINTBEGIN
60 MCNAPI static bool _shouldShowBundleOpen(
61 ::std::string const& collectionName,
62 int collectionIndex,
63 bool usingTouchScheme,
64 ::ActiveBundleData const& activeBundleData
65 );
66
67 MCAPI static ::ItemStack const& getItemStackFromBundle(
68 ::ContainerScreenController const& controller,
69 ::ItemStackBase const& bundleItem,
70 int bundleItemIdx
71 );
72 // NOLINTEND
73};
Definition BundleHelper.h:5
static MCAPI bool _shouldShowBundleOpen(::std::string const &collectionName, int collectionIndex, bool usingTouchScheme, ::ActiveBundleData const &activeBundleData)
MCAPI::ui::ViewRequest onBundleItemRightStick(::ContainerScreenController &controller, ::BundleHelper::BundleItemStickScrollDirection direction)
MCAPI bool isSlotInteractiveBundle(::ContainerScreenController const &controller, ::std::string const &collectionName, int collectionIndex) const
MCAPI::ui::ViewRequest onBundleItemScrollWheel(::ContainerScreenController &controller, ::BundleHelper::BundleItemScrollWheelDirection direction)
Definition ContainerScreenController.h:5
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition ActiveBundleData.h:5