LeviLamina
Loading...
Searching...
No Matches
ChemistryTableBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/world/Container.h"
8#include "mc/world/item/ItemStack.h"
9#include "mc/world/level/block/actor/BlockActor.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class BlockPos;
15class BlockSource;
16class CompoundTag;
18class DataLoadHelper;
19class ILevel;
20class LabTablePacket;
22class Player;
23class Random;
24class SaveContext;
25struct ActorUniqueID;
26// clang-format on
27
28class ChemistryTableBlockActor : public ::BlockActor, public ::Container {
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorUniqueID>> mOpenedPlayer;
33 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LabTableReaction>> mCurReaction;
34 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CraftableCompounds>> mCraftableCompounds;
35 ::ll::TypedStorage<8, 1368, ::ItemStack[9]> mItems;
36 ::ll::TypedStorage<8, 152, ::ItemStack> mPendingReactionOutput;
37 ::ll::TypedStorage<1, 1, bool> mIsTableTypeCached;
38 ::ll::TypedStorage<8, 48, ::HashedString> mCachedTableType;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 ChemistryTableBlockActor();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~ChemistryTableBlockActor() /*override*/;
49
50 virtual ::Container* getContainer() /*override*/;
51
52 virtual ::Container const* getContainer() const /*override*/;
53
54 virtual ::ItemStack const& getItem(int slot) const /*override*/;
55
56 virtual void setItem(int modelSlot, ::ItemStack const& item) /*override*/;
57
58 virtual int getMaxStackSize() const /*override*/;
59
60 virtual int getContainerSize() const /*override*/;
61
62 virtual void startOpen(::Actor&) /*override*/;
63
64 virtual void stopOpen(::Actor& actor) /*override*/;
65
66 virtual void onRemoved(::BlockSource& region) /*override*/;
67
68 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
69
70 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
71
72 virtual void tick(::BlockSource& region) /*override*/;
73
74 virtual void serverInitItemStackIds(
75 int containerSlot,
76 int count,
77 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
78 ) /*override*/;
79 // NOLINTEND
80
81public:
82 // member functions
83 // NOLINTBEGIN
84 MCAPI explicit ChemistryTableBlockActor(::BlockPos const& pos);
85
86 MCAPI ::std::unique_ptr<::LabTableReaction>
87 _createReaction(::Random& random, ::std::vector<::ItemStack> const& consumedInput);
88
89 MCAPI void _popPendingReactionOutput(::BlockSource& region);
90
91 MCAPI ::HashedString const& _updateType(::BlockSource& region);
92
93 MCAPI void playerOpenLabTable(::Player& player);
94
95 MCAPI void reset(::BlockSource& region);
96
97 MCAPI void serverCombine(::BlockSource& region, ::std::vector<::ItemStack> const& consumedInput);
98
99 MCAPI void serverLabTablePacket_DEPRECATED(::LabTablePacket const& packet, ::BlockSource& region);
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCAPI void* $ctor(::BlockPos const& pos);
106 // NOLINTEND
107
108public:
109 // destructor thunk
110 // NOLINTBEGIN
111 MCAPI void $dtor();
112 // NOLINTEND
113
114public:
115 // virtual function thunks
116 // NOLINTBEGIN
117 MCFOLD ::Container* $getContainer();
118
119 MCFOLD ::Container const* $getContainer() const;
120
121 MCAPI ::ItemStack const& $getItem(int slot) const;
122
123 MCAPI void $setItem(int modelSlot, ::ItemStack const& item);
124
125 MCFOLD int $getMaxStackSize() const;
126
127 MCFOLD int $getContainerSize() const;
128
129 MCFOLD void $startOpen(::Actor&);
130
131 MCAPI void $stopOpen(::Actor& actor);
132
133 MCAPI void $onRemoved(::BlockSource& region);
134
135 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
136
137 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
138
139 MCAPI void $tick(::BlockSource& region);
140
141 MCAPI void $serverInitItemStackIds(
142 int containerSlot,
143 int count,
144 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
145 );
146
147
148 // NOLINTEND
149
150public:
151 // vftables
152 // NOLINTBEGIN
153 MCAPI static void** $vftableForContainer();
154
155 MCAPI static void** $vftableForBlockActor();
156 // NOLINTEND
157};
Definition Actor.h:105
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition CompoundTag.h:23
Definition CraftableCompounds.h:17
Definition DataLoadHelper.h:20
Definition ILevel.h:214
Definition ItemStack.h:26
Definition LabTablePacket.h:19
Definition LabTableReaction.h:17
Definition Player.h:125
Definition Random.h:10
Definition SaveContext.h:5
Definition ActorUniqueID.h:5