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);
116 MCAPI
bool $setCommand(::std::string
const& command);
118 MCAPI
bool $setHoverName(::Bedrock::Safety::RedactableString
const& name);
120 MCAPI
bool $setTickDelay(uint delay);
122 MCAPI
bool $setShouldExecuteOnFirstTick(
bool shouldExecute);
124 MCAPI
bool $setLastOutput(::std::string
const& lastOutput);
126 MCAPI
bool $setTrackOutput(
bool trackOutput);
128 MCFOLD
bool $setBlockTypeMode(::CommandBlockMode mode);
130 MCFOLD
bool $setConditional(
bool mode);
132 MCFOLD
bool $setRedstone(
bool mode);
134 MCAPI
void $saveAndExit();
136 MCFOLD ::std::string
const& $getCommand()
const;
138 MCFOLD ::std::string
const& $getOutput()
const;
140 MCAPI
bool $getTrackOutput()
const;
142 MCFOLD
bool $isConditionalMode()
const;
144 MCFOLD
bool $isRedstoneMode()
const;
146 MCFOLD
bool $isMinecartCommandBlock()
const;
148 MCFOLD ::CommandBlockMode $getCommandBlockTypeMode()
const;
150 MCFOLD
bool $getLastPerformedConditionalMode();
152 MCFOLD
bool $getLastPerformedRedstoneMode();
154 MCFOLD ::CommandBlockMode $getLastPerformedCBMode();
156 MCFOLD ::Bedrock::Safety::RedactableString
const& $getHoverName()
const;
158 MCFOLD uint $getTickDelay()
const;
160 MCAPI
bool $shouldExecuteOnFirstTick()
const;
162 MCAPI ::BaseCommandBlock* $getBaseCommandBlock();
164 MCAPI ::std::unique_ptr<::CommandOrigin> $getCommandOrigin()
const;
Definition BaseCommandBlock.h:19
Definition CommandOrigin.h:32
Definition MinecartCommandBlockManager.h:5
static MCAPI void ** $vftable()