LeviLamina
Loading...
Searching...
No Matches
CommandBlockComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/actor/BaseCommandBlock.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
12class CompoundTag;
13class DataLoadHelper;
14namespace Bedrock::Safety { class RedactableString; }
15// clang-format on
16
17class CommandBlockComponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 192, ::BaseCommandBlock> mBaseCommandBlock;
22 ::ll::TypedStorage<4, 4, int> mCurrentTickCount;
23 ::ll::TypedStorage<1, 1, bool> mTicking;
24 // NOLINTEND
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCAPI CommandBlockComponent();
30
31 MCAPI void addAdditionalSaveData(::CompoundTag& entityTag) const;
32
33 MCAPI int decrementTickCount();
34
35 MCFOLD ::BaseCommandBlock& getBaseCommandBlock();
36
37 MCFOLD int getCurrentTickCount() const;
38
39 MCFOLD bool getTicking() const;
40
41 MCAPI void initFromDefinition(::Actor& owner);
42
43 MCAPI void onCommandBlockUpdate(
44 ::Actor& owner,
45 ::std::string const& command,
46 bool trackOutput,
48 int tickDelay,
49 bool executeOnFirstTick
50 );
51
52 MCAPI void readAdditionalSaveData(::Actor& owner, ::CompoundTag const& entityTag, ::DataLoadHelper& dataLoadHelper);
53
54 MCAPI void resetCurrentTick();
55
56 MCAPI void setLastOutput(::Actor& owner, ::std::string const& lastOutput);
57
58#ifdef LL_PLAT_C
59 MCAPI void setName(::Actor& owner, ::Bedrock::Safety::RedactableString const& name);
60#endif
61
62 MCAPI void setTicking(bool ticking);
63
64 MCAPI void setTrackOutput(::Actor& owner, bool trackOutput);
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor();
71 // NOLINTEND
72};
Definition Actor.h:125
Definition BaseCommandBlock.h:20
Definition RedactableString.h:10
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20