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 // prevent constructor by default
31
32public:
33 // member functions
34 // NOLINTBEGIN
36
37 MCNAPI void initFromDefinition(::Actor& owner);
38
40 ::Actor& owner,
41 ::std::string const& command,
42 bool trackOutput,
44 int tickDelay,
45 bool executeOnFirstTick
46 );
47
48 MCNAPI void
49 readAdditionalSaveData(::Actor& owner, ::CompoundTag const& entityTag, ::DataLoadHelper& dataLoadHelper);
50
51 MCNAPI void setTrackOutput(::Actor& owner, bool trackOutput);
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
58 // NOLINTEND
59};
Definition Actor.h:103
Definition BaseCommandBlock.h:18
Definition RedactableString.h:10
Definition CommandBlockComponent.h:17
MCAPI CommandBlockComponent(::CommandBlockComponent &&)
MCAPI void setTrackOutput(::Actor &owner, bool trackOutput)
MCAPI void onCommandBlockUpdate(::Actor &owner, ::std::string const &command, bool trackOutput, ::Bedrock::Safety::RedactableString const &name, int tickDelay, bool executeOnFirstTick)
MCAPI void * $ctor(::CommandBlockComponent &&)
MCAPI void readAdditionalSaveData(::Actor &owner, ::CompoundTag const &entityTag, ::DataLoadHelper &dataLoadHelper)
MCAPI void initFromDefinition(::Actor &owner)
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20