3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/ViewRequest.h"
7#include "mc/client/gui/screens/controllers/ActiveBundleData.h"
20 enum class BundleItemStickScrollDirection :
int {};
22 enum class BundleItemScrollWheelDirection :
int {};
27 ::ll::TypedStorage<8, 152, ::ActiveBundleData> mActiveBundleData;
33 MCAPI
bool bundleModeItemTransferOut(
34 ::ContainerScreenController& controller,
35 ::std::string
const& toCollectionName,
36 int toCollectionIndex,
37 ::std::string
const& fromBundleCollectionName,
38 int fromBundleCollectionIndex
41 MCAPI ::ItemStack
const& getItemStackFromBundle(
42 ::ContainerScreenController
const& controller,
43 ::ItemStackBase
const& bundleItem,
47 MCAPI
void handleBundleActive(
48 ::ContainerScreenController& controller,
49 ::std::string
const& collectionName,
53 MCAPI
void handleBundleHovered(
54 ::ContainerScreenController& controller,
55 ::std::string
const& collectionName,
59 MCAPI
void handleBundleItemTransferIn(
60 ::ContainerScreenController& controller,
61 ::std::string
const& collectionName,
65 MCAPI
void handleBundleItemTransferOut(
66 ::ContainerScreenController& controller,
67 ::std::string
const& collectionName,
71 MCAPI
void handleBundleUnselected(::ContainerScreenController& controller);
73 MCAPI
bool isSlotInteractiveBundle(
74 ::ContainerScreenController
const& controller,
75 ::std::string
const& collectionName,
79 MCAPI ::ui::ViewRequest onBundleItemRightStick(
80 ::ContainerScreenController& controller,
81 ::BundleHelper::BundleItemStickScrollDirection direction
84 MCAPI ::ui::ViewRequest onBundleItemScrollWheel(
85 ::ContainerScreenController& controller,
86 ::BundleHelper::BundleItemScrollWheelDirection direction
89 MCAPI
bool shouldHandleBundleIdlePlaceAll(
90 ::ContainerScreenController& controller,
91 ::std::string
const& collectionName,
96 shouldShowBundleOpen(::std::string
const& collectionName,
int collectionIndex,
bool usingTouchScheme)
const;
98 MCAPI ~BundleHelper();
104 MCAPI static ::ui::ViewRequest _onBundleItemRightStick(
105 ::BundleHelper::BundleItemStickScrollDirection direction,
106 ::BundleTooltipLayoutData tooltipLayoutData,
107 ::ActiveBundleData& activeBundleData
110 MCAPI
static void registerBindings(::ContainerScreenController& controller);
112 MCAPI
static void registerEventHandlers(::ContainerScreenController& controller);
114 MCAPI
static void registerStateMachine(::ContainerScreenController& controller);
Definition BundleHelper.h:5
Definition ContainerScreenController.h:5
Definition ItemStackBase.h:44
Definition ItemStack.h:26