24class CommandBlockActor :
public ::BlockActor {
28 ::ll::TypedStorage<8, 192, ::BaseCommandBlock> mBaseCB;
29 ::ll::TypedStorage<1, 1, bool> mPowered;
30 ::ll::TypedStorage<1, 1, bool> mConditionMet;
31 ::ll::TypedStorage<1, 1, bool> mRedstoneMode;
32 ::ll::TypedStorage<1, 1, bool> mLastPerformedConditionalMode;
33 ::ll::TypedStorage<1, 1, bool> mLastPerformedRedstoneMode;
34 ::ll::TypedStorage<1, 1, bool> mExecuteFirstTickOnPlace;
35 ::ll::TypedStorage<2, 2, ::CommandBlockMode> mLastPerformedCBMode;
59 virtual ::Bedrock::Safety::RedactableString
const& getCustomName()
const ;
63 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource& region) ;
67 virtual bool _playerCanUpdate(
::Player const& player)
const ;
73 MCAPI CommandBlockActor(
::BlockPos const& pos, ::CommandBlockMode mode);
75 MCFOLD ::BaseCommandBlock& getBaseCommandBlock();
77 MCFOLD ::std::string
const& getCommand()
const;
79 MCAPI ::CommandBlock
const* getCommandBlock(
::BlockSource& region)
const;
83 MCAPI
int getDelayOnActivation()
const;
86 MCAPI ::std::string getLastOutput()
const;
88 MCAPI ::CommandBlockMode getLastPerformedCBMode()
const;
90 MCAPI
bool getLastPerformedConditionalMode()
const;
92 MCAPI
bool getLastPerformedRedstoneMode()
const;
95 MCAPI ::CommandBlockMode getMode(
::BlockSource& region)
const;
97 MCFOLD
bool getPowered()
const;
99 MCFOLD
int getSuccessCount()
const;
101 MCFOLD
int getTickDelay()
const;
104 MCAPI
bool getTrackOutput()
const;
107 MCAPI
bool isAutomatic()
const;
110 MCFOLD
bool isRedstoneMode()
const;
117 MCAPI
void markForSaving(
::BlockSource& region,
int oldSuccessCount,
bool oldConditionMet);
121 MCAPI
void setAutomatic(
::BlockSource& region,
bool automatic, ::CommandBlockMode oldMode);
123 MCAPI
void setPowered(
bool powered);
125 MCAPI
void setSuccessCount(
int successCount);
128 MCAPI
bool shouldExecuteOnFirstTick()
const;
131 MCAPI
void updateBlock(
133 ::std::string
const& cmd,
135 ::CommandBlockMode newMode,
140 bool executeFirstTick
143 MCFOLD
bool wasConditionMet();
149 MCAPI
void* $ctor(
::BlockPos const& pos, ::CommandBlockMode mode);
169 MCFOLD ::Bedrock::Safety::RedactableString
const& $getCustomName()
const;
173 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource& region);
177 MCAPI
bool $_playerCanUpdate(
::Player const& player)
const;
185 MCAPI
static void** $vftable();
Definition SaveContext.h:5