3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/safety/RedactableString.h"
8#include "mc/world/level/BlockPos.h"
9#include "mc/world/level/block/CommandBlockMode.h"
22 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
23 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
24 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mActorUniqueId;
25 ::ll::TypedStorage<8, 32, ::std::string> mCommand;
26 ::ll::TypedStorage<8, 32, ::std::string> mLastOutput;
27 ::ll::TypedStorage<8, 72, ::Bedrock::Safety::RedactableString> mHoverName;
28 ::ll::TypedStorage<4, 4, uint> mTickDelay;
29 ::ll::TypedStorage<1, 1, bool> mExecuteOnFirstTick;
30 ::ll::TypedStorage<1, 1, bool> mTrackOutput;
35 MinecartCommandBlockManager& operator=(MinecartCommandBlockManager
const&);
36 MinecartCommandBlockManager(MinecartCommandBlockManager
const&);
37 MinecartCommandBlockManager();
42 virtual ~MinecartCommandBlockManager();
46 virtual bool setCommand(::std::string
const& command);
48 virtual bool setHoverName(::Bedrock::Safety::RedactableString
const& name);
50 virtual bool setTickDelay(uint delay);
52 virtual bool setShouldExecuteOnFirstTick(
bool shouldExecute);
54 virtual bool setLastOutput(::std::string
const& lastOutput);
56 virtual bool setTrackOutput(
bool trackOutput);
58 virtual bool setBlockTypeMode(::CommandBlockMode mode);
60 virtual bool setConditional(
bool mode);
62 virtual bool setRedstone(
bool mode);
64 virtual void saveAndExit();
66 virtual ::std::string
const& getCommand()
const;
68 virtual ::std::string
const& getOutput()
const;
70 virtual bool getTrackOutput()
const;
72 virtual bool isConditionalMode()
const;
74 virtual bool isRedstoneMode()
const;
76 virtual bool isMinecartCommandBlock()
const;
78 virtual ::CommandBlockMode getCommandBlockTypeMode()
const;
80 virtual bool getLastPerformedConditionalMode();
82 virtual bool getLastPerformedRedstoneMode();
84 virtual ::CommandBlockMode getLastPerformedCBMode();
86 virtual ::Bedrock::Safety::RedactableString
const& getHoverName()
const;
88 virtual uint getTickDelay()
const;
90 virtual bool shouldExecuteOnFirstTick()
const;
92 virtual ::BaseCommandBlock* getBaseCommandBlock();
94 virtual ::std::unique_ptr<::CommandOrigin> getCommandOrigin()
const;
100 MCAPI
void _loadFromBaseCommandBlock();
102 MCAPI
void _saveToBaseCommandBlock(::BaseCommandBlock& baseCommandBlock);
104 MCAPI ::std::string getLastPerformedCommandBlockConditionalModeString();
106 MCAPI ::std::string getLastPerformedCommandBlockRedstoneModeString();
108 MCAPI ::std::string getLastPerformedCommandBlockTypeModeString();
122 MCAPI
bool $setCommand(::std::string
const& command);
124 MCAPI
bool $setHoverName(::Bedrock::Safety::RedactableString
const& name);
126 MCAPI
bool $setTickDelay(uint delay);
128 MCAPI
bool $setShouldExecuteOnFirstTick(
bool shouldExecute);
130 MCAPI
bool $setLastOutput(::std::string
const& lastOutput);
132 MCAPI
bool $setTrackOutput(
bool trackOutput);
134 MCFOLD
bool $setBlockTypeMode(::CommandBlockMode mode);
136 MCFOLD
bool $setConditional(
bool mode);
138 MCFOLD
bool $setRedstone(
bool mode);
140 MCAPI
void $saveAndExit();
142 MCFOLD ::std::string
const& $getCommand()
const;
144 MCFOLD ::std::string
const& $getOutput()
const;
146 MCAPI
bool $getTrackOutput()
const;
148 MCFOLD
bool $isConditionalMode()
const;
150 MCFOLD
bool $isRedstoneMode()
const;
152 MCFOLD
bool $isMinecartCommandBlock()
const;
154 MCFOLD ::CommandBlockMode $getCommandBlockTypeMode()
const;
156 MCFOLD
bool $getLastPerformedConditionalMode();
158 MCFOLD
bool $getLastPerformedRedstoneMode();
160 MCFOLD ::CommandBlockMode $getLastPerformedCBMode();
162 MCFOLD ::Bedrock::Safety::RedactableString
const& $getHoverName()
const;
164 MCFOLD uint $getTickDelay()
const;
166 MCAPI
bool $shouldExecuteOnFirstTick()
const;
168 MCAPI ::BaseCommandBlock* $getBaseCommandBlock();
170 MCAPI ::std::unique_ptr<::CommandOrigin> $getCommandOrigin()
const;
Definition BaseCommandBlock.h:20
Definition CommandOrigin.h:32
Definition MinecartCommandBlockManager.h:5
static MCAPI void ** $vftable()