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() =
default;
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;
Definition BaseCommandBlock.h:20
Definition RedactableString.h:10
Definition CommandOrigin.h:32
Definition MinecartCommandBlockManager.h:5
MCAPI bool $isMinecartCommandBlock() const
MCAPI bool $setCommand(::std::string const &command)
MCAPI bool $getLastPerformedConditionalMode()
MCAPI uint $getTickDelay() const
MCAPI bool $setBlockTypeMode(::CommandBlockMode mode)
MCAPI bool $getTrackOutput() const
MCAPI bool $setConditional(bool mode)
MCAPI bool $shouldExecuteOnFirstTick() const
MCAPI bool $setHoverName(::Bedrock::Safety::RedactableString const &name)
MCAPI bool $setTrackOutput(bool trackOutput)
MCAPI void _saveToBaseCommandBlock(::BaseCommandBlock &baseCommandBlock)
MCAPI::BaseCommandBlock * $getBaseCommandBlock()
MCAPI bool $isConditionalMode() const
MCAPI void $saveAndExit()
MCAPI bool $setLastOutput(::std::string const &lastOutput)
MCAPI::CommandBlockMode $getLastPerformedCBMode()
MCAPI bool $setShouldExecuteOnFirstTick(bool shouldExecute)
MCAPI bool $setRedstone(bool mode)
MCAPI bool $setTickDelay(uint delay)
MCAPI::CommandBlockMode $getCommandBlockTypeMode() const
MCAPI bool $isRedstoneMode() const
MCAPI bool $getLastPerformedRedstoneMode()
MCAPI::std::string const & $getCommand() const
MCAPI::std::string const & $getOutput() const
MCAPI void _loadFromBaseCommandBlock()
MCAPI::Bedrock::Safety::RedactableString const & $getHoverName() const
static MCAPI void ** $vftable()
MCAPI ::std::unique_ptr<::CommandOrigin > $getCommandOrigin() const