LeviLamina
Loading...
Searching...
No Matches
CrafterScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/ViewRequest.h"
8#include "mc/client/gui/screens/controllers/BlockContainerScreenController.h"
9#include "mc/world/item/ItemInstance.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockActor;
14class BlockPos;
15class BlockSource;
17class Player;
18struct ActorUniqueID;
19struct ScreenEvent;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::BlockSource*> mRegion;
27 ::ll::TypedStorage<8, 8, ::BlockActor*> mBlockActor;
28 ::ll::TypedStorage<4, 4, ::std::bitset<9>> mDisabledSlotsPrediction;
29 ::ll::TypedStorage<8, 8, int64> mLastDisabledSlotsInteractedTime;
30 ::ll::TypedStorage<8, 128, ::ItemInstance> mCrafterOutputItem;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 CrafterScreenController();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ~CrafterScreenController() /*override*/ = default;
41
42 virtual ::ui::ViewRequest handleEvent(::ScreenEvent& screenEvent) /*override*/;
43
44 virtual ::ui::DirtyFlag tick() /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI CrafterScreenController(
51 ::std::shared_ptr<::ClientInstanceScreenModel> model,
52 ::Player& player,
53 ::BlockPos const& pos,
54 ::ActorUniqueID uniqueId
55 );
56
57 MCAPI void _registerBindings();
58
59 MCAPI void _registerEventHandlers();
60
61 MCAPI void _setToggledStateForSlot(int slot, bool shouldEnable);
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI void* $ctor(
68 ::std::shared_ptr<::ClientInstanceScreenModel> model,
69 ::Player& player,
70 ::BlockPos const& pos,
71 ::ActorUniqueID uniqueId
72 );
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI ::ui::ViewRequest $handleEvent(::ScreenEvent& screenEvent);
79
80 MCAPI ::ui::DirtyFlag $tick();
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
87
88 MCNAPI static void** $vftableForScreenController();
89 // NOLINTEND
90};
Definition BlockActor.h:32
Definition BlockContainerScreenController.h:5
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition ClientInstanceScreenModel.h:5
Definition CrafterScreenController.h:5
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForScreenController()
Definition Player.h:125
Definition ActorUniqueID.h:5
Definition ScreenEvent.h:5