Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ContainerInteractionsHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/gameplay/data/gameplayui/ContainerInteractionState.h"
7#include "mc/client/gui/gameplay/data/gameplayui/ContainerSlot.h"
8#include "mc/client/gui/oreui/input/GamepadButton.h"
9#include "mc/client/gui/oreui/input/MouseButton.h"
10#include "mc/world/containers/ContainerEnumName.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace GameplayUI { struct ContainerAction; }
15namespace GameplayUI { struct ContainerInteractionsContext; }
16// clang-format on
17
18namespace GameplayUI {
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<1, 1, bool> mDoneActionThisClick;
25 ::ll::TypedStorage<1, 1, bool> mPressWasDoubleClick;
26 ::ll::TypedStorage<1, 1, bool> mIsDistributingItem;
27 ::ll::TypedStorage<1, 1, bool> mJustSetCustomSplit;
28 ::ll::TypedStorage<4, 12, ::std::optional<::GameplayUI::ContainerSlot>> mGamepadSplitCustomCandidate;
29 ::ll::TypedStorage<1, 1, bool> mGamepadDidPlaceStack;
30 ::ll::TypedStorage<1, 1, bool> mGamepadDidPlaceOne;
31 ::ll::TypedStorage<4, 8, ::GameplayUI::ContainerSlot> mDistributeSource;
32 ::ll::TypedStorage<4, 48, ::GameplayUI::ContainerInteractionState> mState;
33 // NOLINTEND
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCNAPI ::GameplayUI::ContainerAction handleSlotGamepadDrag(
40 ::OreUI::GamepadButton button,
41 ::ContainerEnumName container,
42 int slot
43 );
44
45 MCNAPI ::GameplayUI::ContainerAction handleSlotGamepadPress(
47 ::OreUI::GamepadButton button,
48 ::ContainerEnumName container,
49 int slot
50 );
51
52 MCNAPI ::GameplayUI::ContainerAction handleSlotMousePress(
54 ::OreUI::MouseButton button,
55 ::ContainerEnumName container,
56 int slot
57 );
58
59 MCNAPI ::GameplayUI::ContainerAction handleSlotMouseRelease(
61 ::OreUI::MouseButton button,
62 ::ContainerEnumName container,
63 int slot
64 );
65
66 MCNAPI ::GameplayUI::ContainerAction
68 // NOLINTEND
69};
70
71} // namespace GameplayUI
Definition ContainerInteractionsHandler.h:7
MCAPI::GameplayUI::ContainerAction handleSlotMousePress(::GameplayUI::ContainerInteractionsContext context, ::OreUI::MouseButton button, ::ContainerEnumName container, int slot)
MCAPI::GameplayUI::ContainerAction handleSlotTouchRelease(::GameplayUI::ContainerInteractionsContext context, ::ContainerEnumName container, int slot)
MCAPI::GameplayUI::ContainerAction handleSlotGamepadDrag(::GameplayUI::ContainerInteractionsContext context, ::OreUI::GamepadButton button, ::ContainerEnumName container, int slot)
MCAPI::GameplayUI::ContainerAction handleSlotMouseRelease(::GameplayUI::ContainerInteractionsContext context, ::OreUI::MouseButton button, ::ContainerEnumName container, int slot)
MCAPI::GameplayUI::ContainerAction handleSlotGamepadPress(::GameplayUI::ContainerInteractionsContext context, ::OreUI::GamepadButton button, ::ContainerEnumName container, int slot)
Definition ContainerAction.h:7
Definition ContainerInteractionsContext.h:7
Definition context.h:5