Skip to content
LeviMC
English
AutoLightDark
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
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 MCNAPI void addAdditionalSaveData(::CompoundTag& entityTag) const;
30
31 MCNAPI void initFromDefinition(::Actor& owner);
32
34 ::Actor& owner,
35 ::std::string const& command,
36 bool trackOutput,
38 int tickDelay,
39 bool executeOnFirstTick
40 );
41
42 MCNAPI void
43 readAdditionalSaveData(::Actor& owner, ::CompoundTag const& entityTag, ::DataLoadHelper& dataLoadHelper);
44
45 MCNAPI void setLastOutput(::Actor& owner, ::std::string const& lastOutput);
46
47#ifdef LL_PLAT_C
48 MCNAPI void setTrackOutput(::Actor& owner, bool trackOutput);
49#endif
50 // NOLINTEND
51};
Definition Actor.h:116
Definition BaseCommandBlock.h:20
Definition RedactableString.h:10
Definition CommandBlockComponent.h:17
MCAPI void setLastOutput(::Actor &owner, ::std::string const &lastOutput)
MCAPI void onCommandBlockUpdate(::Actor &owner, ::std::string const &command, bool trackOutput, ::Bedrock::Safety::RedactableString const &name, int tickDelay, bool executeOnFirstTick)
MCAPI void readAdditionalSaveData(::Actor &owner, ::CompoundTag const &entityTag, ::DataLoadHelper &dataLoadHelper)
MCAPI void initFromDefinition(::Actor &owner)
MCAPI void addAdditionalSaveData(::CompoundTag &entityTag) const
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20