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 {
27 enum class BundleItemScrollWheelDirection :
int {
35 ::ll::TypedStorage<8, 144, ::ActiveBundleData> mActiveBundleData;
41 MCAPI
bool bundleModeItemTransferOut(
42 ::ContainerScreenController& controller,
43 ::std::string
const& toCollectionName,
44 int toCollectionIndex,
45 ::std::string
const& fromBundleCollectionName,
46 int fromBundleCollectionIndex
49 MCAPI ::ItemStack
const& getItemStackFromBundle(
50 ::ContainerScreenController
const& controller,
51 ::ItemStackBase
const& bundleItem,
55 MCAPI
void handleBundleActive(
56 ::ContainerScreenController& controller,
57 ::std::string
const& collectionName,
61 MCAPI
void handleBundleHovered(
62 ::ContainerScreenController& controller,
63 ::std::string
const& collectionName,
67 MCAPI
void handleBundleItemTransferIn(
68 ::ContainerScreenController& controller,
69 ::std::string
const& collectionName,
73 MCAPI
void handleBundleItemTransferOut(
74 ::ContainerScreenController& controller,
75 ::std::string
const& collectionName,
79 MCAPI
void handleBundleUnselected(::ContainerScreenController& controller);
81 MCAPI
bool isSlotInteractiveBundle(
82 ::ContainerScreenController
const& controller,
83 ::std::string
const& collectionName,
87 MCAPI ::ui::ViewRequest onBundleItemRightStick(
88 ::ContainerScreenController& controller,
89 ::BundleHelper::BundleItemStickScrollDirection direction
92 MCAPI ::ui::ViewRequest onBundleItemScrollWheel(
93 ::ContainerScreenController& controller,
94 ::BundleHelper::BundleItemScrollWheelDirection direction
97 MCAPI
bool shouldHandleBundleIdlePlaceAll(
98 ::ContainerScreenController& controller,
99 ::std::string
const& collectionName,
104 shouldShowBundleOpen(::std::string
const& collectionName,
int collectionIndex,
bool usingTouchScheme)
const;
106 MCAPI ~BundleHelper();
112 MCAPI static ::ui::ViewRequest _onBundleItemRightStick(
113 ::BundleHelper::BundleItemStickScrollDirection direction,
114 ::BundleTooltipLayoutData tooltipLayoutData,
115 ::ActiveBundleData& activeBundleData
118 MCAPI
static void registerBindings(::ContainerScreenController& controller);
120 MCAPI
static void registerEventHandlers(::ContainerScreenController& controller);
122 MCAPI
static void registerStateMachine(::ContainerScreenController& controller);
Definition BundleHelper.h:5
Definition ContainerScreenController.h:5
Definition ItemStackBase.h:44
Definition ItemStack.h:26