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