LeviLamina
Loading...
Searching...
No Matches
ConduitBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/world/level/BlockPos.h"
8#include "mc/world/level/block/actor/BlockActor.h"
9
10// auto generated forward declare list
11// clang-format off
13class BlockSource;
14class CompoundTag;
15class DataLoadHelper;
16class ILevel;
17class SaveContext;
18// clang-format on
19
20class ConduitBlockActor : public ::BlockActor {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<1, 1, bool> mIsActive;
25 ::ll::TypedStorage<1, 1, bool> mIsHunting;
26 ::ll::TypedStorage<4, 4, int> mBlockRefreshCounter;
27 ::ll::TypedStorage<8, 8, uint64> mNextAmbientSound;
28 ::ll::TypedStorage<4, 4, float> mAnimationValue;
29 ::ll::TypedStorage<4, 4, float> mRotation;
30 ::ll::TypedStorage<4, 4, int> mRotationTickCount;
31 ::ll::TypedStorage<4, 4, int> mWindLevel;
32 ::ll::TypedStorage<4, 4, int> mEffectRange;
33 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTarget;
34 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPos>> mBlockPositions;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 ConduitBlockActor();
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual void tick(::BlockSource& region) /*override*/;
45
46 virtual bool hasAlphaLayer() const /*override*/;
47
48 virtual bool save(::CompoundTag& tag, ::SaveContext const&) const /*override*/;
49
50 virtual void load(::ILevel& tag, ::CompoundTag const& dataLoadHelper, ::DataLoadHelper&) /*override*/;
51
52 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
53
54 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI explicit ConduitBlockActor(::BlockPos const& pos);
61
62 MCAPI void _animateTick(::BlockSource& region) const;
63
64 MCAPI void _applyEffects(::BlockSource& region);
65
66 MCAPI void _checkShape(::BlockSource& region);
67
68 MCAPI void _updateTarget(::BlockSource& region);
69
70#ifdef LL_PLAT_C
71 MCAPI void incrementAnimationValue(float animationStep);
72
73 MCAPI void incrementWindLevel();
74#endif
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void* $ctor(::BlockPos const& pos);
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI void $tick(::BlockSource& region);
87
88 MCFOLD bool $hasAlphaLayer() const;
89
90 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const&) const;
91
92 MCAPI void $load(::ILevel& tag, ::CompoundTag const& dataLoadHelper, ::DataLoadHelper&);
93
94 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
95
96 MCFOLD void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
97
98
99 // NOLINTEND
100
101public:
102 // vftables
103 // NOLINTBEGIN
104 MCNAPI static void** $vftable();
105 // NOLINTEND
106};
Definition BlockActorDataPacket.h:19
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition CompoundTag.h:23
static MCAPI void ** $vftable()
Definition DataLoadHelper.h:20
Definition ILevel.h:219
Definition SaveContext.h:5