LeviLamina
Loading...
Searching...
No Matches
BeaconBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/Container.h"
7#include "mc/world/level/block/BlockColor.h"
8#include "mc/world/level/block/actor/BlockActor.h"
9
10// auto generated forward declare list
11// clang-format off
13class BlockLegacy;
14class BlockPos;
15class BlockSource;
16class CompoundTag;
17class DataLoadHelper;
18class ILevel;
19class ItemDescriptor;
20class ItemStack;
21class MobEffect;
22class Player;
23class SaveContext;
24class Vec3;
26// clang-format on
27
29public:
30 // BeaconBlockActor inner types define
31 using BeaconBeamSections = ::std::vector<::BeaconBeamSection>;
32
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<8, 24, ::std::vector<::BeaconBeamSection>> mBeamSections;
37 ::ll::TypedStorage<4, 4, float> mBeamRot;
38 ::ll::TypedStorage<4, 4, int> mNumLevels;
39 ::ll::TypedStorage<4, 4, int> mNumLevelsSet;
40 ::ll::TypedStorage<4, 4, int> mBlockRefreshCounter;
41 ::ll::TypedStorage<4, 4, int> mPrimaryEffectId;
42 ::ll::TypedStorage<4, 4, int> mSecondaryEffectId;
43 ::ll::TypedStorage<4, 4, int> mPrimaryEffectTier;
44 ::ll::TypedStorage<4, 4, int> mSecondaryEffectTier;
45 ::ll::TypedStorage<8, 24, ::std::vector<::MobEffect*>> mBeaconEffects;
46 ::ll::TypedStorage<8, 24, ::std::vector<::std::vector<::MobEffect*>>> mTierEffects;
47 ::ll::TypedStorage<1, 1, bool> mPermanentlyRendered;
48 ::ll::TypedStorage<1, 1, bool> mClientRenderingNeedsUpdate;
49 ::ll::TypedStorage<1, 1, bool> mIsBlockBaseLoaded;
50 // NOLINTEND
51
52public:
53 // prevent constructor by default
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 // vIndex: 0
60 virtual ~BeaconBlockActor() /*override*/ = default;
61
62 // vIndex: 9
63 virtual void tick(::BlockSource& region) /*override*/;
64
65 // vIndex: 2
66 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
67
68 // vIndex: 1
69 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
70
71 // vIndex: 22
72 virtual bool hasAlphaLayer() const /*override*/;
73
74 // vIndex: 7
75 virtual bool isPermanentlyRendered() const /*override*/;
76
77 // vIndex: 8
78 virtual bool isWithinRenderDistance(::Vec3 const& cameraPosition) const /*override*/;
79
80 // vIndex: 7
81 virtual ::ItemStack const& getItem(int slot) const /*override*/;
82
83 // vIndex: 12
84 virtual void setItem(int modelSlot, ::ItemStack const& item) /*override*/;
85
86 // vIndex: 14
87 virtual void removeItem(int slot, int count) /*override*/;
88
89 // vIndex: 28
90 virtual ::std::string getName() const /*override*/;
91
92 // vIndex: 20
93 virtual int getContainerSize() const /*override*/;
94
95 // vIndex: 21
96 virtual int getMaxStackSize() const /*override*/;
97
98 // vIndex: 22
99 virtual void startOpen(::Player& player) /*override*/;
100
101 // vIndex: 23
102 virtual void stopOpen(::Player& player) /*override*/;
103
104 // vIndex: 2
105 virtual void serverInitItemStackIds(
106 int containerSlot,
107 int count,
108 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
109 ) /*override*/;
110
111 // vIndex: 35
112 virtual ::Container* getContainer() /*override*/;
113
114 // vIndex: 34
115 virtual ::Container const* getContainer() const /*override*/;
116
117 // vIndex: 45
118 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource& region) /*override*/;
119
120 // vIndex: 46
121 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
122 // NOLINTEND
123
124public:
125 // member functions
126 // NOLINTBEGIN
127 MCNAPI BeaconBlockActor(::BlockPos const& pos, bool permanentlyRendered);
128
129 MCNAPI void _applyEffects(::BlockSource& region);
130
131 MCNAPI void
132 _notifyBeamSectionsChange(::BlockSource& region, ::std::vector<::BeaconBeamSection> const& oldBeamSections);
133
134 MCNAPI bool _saveClientSideState(::CompoundTag& tag, ::SaveContext const& saveContext) const;
135
136 MCNAPI bool _setEffect(int effectId, int& outEffectId, int& outTier);
137
138 MCNAPI void checkAchievement(::BlockSource& region);
139
140 MCNAPI void checkShape(::BlockSource& region);
141
143
144 MCNAPI ::CompoundTag getBeaconData(::SaveContext const& saveContext);
145
146 MCNAPI bool isEffectAvailable(int effectId) const;
147
148 MCNAPI bool setSecondaryEffect(int effectId);
149 // NOLINTEND
150
151public:
152 // static functions
153 // NOLINTBEGIN
154 MCNAPI static ::BlockColor _getMediumColor(::BlockLegacy const& medium);
155
156 MCNAPI static bool isPaymentItem(::ItemDescriptor const& pItem);
157 // NOLINTEND
158
159public:
160 // constructor thunks
161 // NOLINTBEGIN
162 MCNAPI void* $ctor(::BlockPos const& pos, bool permanentlyRendered);
163 // NOLINTEND
164
165public:
166 // virtual function thunks
167 // NOLINTBEGIN
168 MCNAPI void $tick(::BlockSource& region);
169
170 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
171
172 MCNAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
173
174 MCNAPI bool $hasAlphaLayer() const;
175
176 MCNAPI bool $isPermanentlyRendered() const;
177
178 MCNAPI bool $isWithinRenderDistance(::Vec3 const& cameraPosition) const;
179
180 MCNAPI ::ItemStack const& $getItem(int slot) const;
181
182 MCNAPI void $setItem(int modelSlot, ::ItemStack const& item);
183
184 MCNAPI void $removeItem(int slot, int count);
185
186 MCNAPI ::std::string $getName() const;
187
188 MCNAPI int $getContainerSize() const;
189
190 MCNAPI int $getMaxStackSize() const;
191
192 MCNAPI void $startOpen(::Player& player);
193
194 MCNAPI void $stopOpen(::Player& player);
195
197 int containerSlot,
198 int count,
199 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
200 );
201
202 MCNAPI ::Container* $getContainer();
203
204 MCNAPI ::Container const* $getContainer() const;
205
206 MCNAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource& region);
207
208 MCNAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
209 // NOLINTEND
210
211public:
212 // vftables
213 // NOLINTBEGIN
214 MCNAPI static void** $vftableForBlockActor();
215
216 MCNAPI static void** $vftableForContainer();
217 // NOLINTEND
218};
Definition BeaconBlockActor.h:28
static MCAPI bool isPaymentItem(::ItemDescriptor const &pItem)
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI void $stopOpen(::Player &player)
static MCAPI void ** $vftableForBlockActor()
MCAPI void $startOpen(::Player &player)
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource &region)
MCAPI void checkShape(::BlockSource &region)
MCAPI void $tick(::BlockSource &region)
MCAPI void generateBeamSections(::BlockSource &region)
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource &region)
static MCAPI ::BlockColor _getMediumColor(::BlockLegacy const &medium)
static MCAPI void ** $vftableForContainer()
MCAPI::std::string $getName() const
MCAPI bool _setEffect(int effectId, int &outEffectId, int &outTier)
MCAPI::Container * $getContainer()
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI void _notifyBeamSectionsChange(::BlockSource &region, ::std::vector<::BeaconBeamSection > const &oldBeamSections)
MCAPI void $setItem(int modelSlot, ::ItemStack const &item)
MCAPI bool $isWithinRenderDistance(::Vec3 const &cameraPosition) const
MCAPI int $getMaxStackSize() const
MCAPI bool isEffectAvailable(int effectId) const
MCAPI void $removeItem(int slot, int count)
MCAPI::CompoundTag getBeaconData(::SaveContext const &saveContext)
MCAPI bool _saveClientSideState(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI bool $hasAlphaLayer() const
MCAPI void checkAchievement(::BlockSource &region)
MCAPI void _applyEffects(::BlockSource &region)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI BeaconBlockActor(::BlockPos const &pos, bool permanentlyRendered)
MCAPI::Container const * $getContainer() const
MCAPI bool $isPermanentlyRendered() const
MCAPI int $getContainerSize() const
MCAPI bool setSecondaryEffect(int effectId)
MCAPI void * $ctor(::BlockPos const &pos, bool permanentlyRendered)
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockLegacy.h:86
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition Container.h:30
Definition DataLoadHelper.h:20
Definition ILevel.h:204
Definition ItemDescriptor.h:22
Definition ItemStack.h:25
Definition MobEffect.h:27
Definition Player.h:120
Definition SaveContext.h:5
Definition Vec3.h:10
Definition BeaconBeamSection.h:5