17class CommandBlockComponent {
21 ::ll::TypedStorage<8, 192, ::BaseCommandBlock> mBaseCommandBlock;
22 ::ll::TypedStorage<4, 4, int> mCurrentTickCount;
23 ::ll::TypedStorage<1, 1, bool> mTicking;
29 MCAPI CommandBlockComponent();
31 MCAPI
void addAdditionalSaveData(
::CompoundTag& entityTag)
const;
33 MCAPI
int decrementTickCount();
35 MCFOLD ::BaseCommandBlock& getBaseCommandBlock();
37 MCFOLD
int getCurrentTickCount()
const;
39 MCFOLD
bool getTicking()
const;
41 MCAPI
void initFromDefinition(
::Actor& owner);
43 MCAPI
void onCommandBlockUpdate(
45 ::std::string
const& command,
49 bool executeOnFirstTick
54 MCAPI
void resetCurrentTick();
56 MCAPI
void setLastOutput(
::Actor& owner, ::std::string
const& lastOutput);
62 MCAPI
void setTicking(
bool ticking);
64 MCAPI
void setTrackOutput(
::Actor& owner,
bool trackOutput);