3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/world/level/block/CommandBlockMode.h"
8#include "mc/world/level/block/actor/BaseCommandBlock.h"
9#include "mc/world/level/block/actor/BlockActor.h"
23namespace Bedrock::Safety {
class RedactableString; }
30 ::ll::TypedStorage<8, 192, ::BaseCommandBlock> mBaseCB;
31 ::ll::TypedStorage<1, 1, bool> mPowered;
32 ::ll::TypedStorage<1, 1, bool> mConditionMet;
33 ::ll::TypedStorage<1, 1, bool> mRedstoneMode;
34 ::ll::TypedStorage<1, 1, bool> mLastPerformedConditionalMode;
35 ::ll::TypedStorage<1, 1, bool> mLastPerformedRedstoneMode;
36 ::ll::TypedStorage<1, 1, bool> mExecuteFirstTickOnPlace;
37 ::ll::TypedStorage<2, 2, ::CommandBlockMode> mLastPerformedCBMode;
70 virtual ::Bedrock::Safety::RedactableString
const& getCustomName()
const ;
73 virtual ::std::string
const&
74 getFilteredCustomName(::Bedrock::NotNullNonOwnerPtr<::ProfanityContext>
const&
context) ;
80 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource& region) ;
86 virtual bool _playerCanUpdate(
::Player const& player)
const ;
113 ::std::string
const& cmd,
115 ::CommandBlockMode newMode,
120 bool executeFirstTick
149 MCNAPI ::std::string
const&
Definition RedactableString.h:10
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockSource.h:67
Definition CommandBlockActor.h:26
MCAPI void $onPlace(::BlockSource ®ion)
MCAPI void $loadBlockData(::CompoundTag const &tag, ::BlockSource ®ion, ::DataLoadHelper &dataLoadHelper)
static MCAPI void ** $vftable()
MCAPI void $saveBlockData(::CompoundTag &tag, ::BlockSource ®ion) const
MCAPI bool $_playerCanUpdate(::Player const &player) const
MCAPI void markForSaving(::BlockSource ®ion, int oldSuccessCount, bool oldConditionMet)
MCAPI::CommandBlock const * getCommandBlock(::BlockSource ®ion) const
MCAPI void $onCustomTagLoadDone(::BlockSource ®ion)
MCAPI void $setCustomName(::Bedrock::Safety::RedactableString const &str)
MCAPI::Bedrock::Safety::RedactableString const & $getCustomName() const
MCAPI void markForSaving(::BlockSource ®ion)
MCAPI void _setAutomatic(::BlockSource ®ion, bool alwaysActive, ::CommandBlockMode currentMode)
MCAPI void $_onUpdatePacket(::CompoundTag const &tag, ::BlockSource ®ion)
MCAPI bool markConditionMet(::BlockSource ®ion)
MCAPI void * $ctor(::BlockPos const &pos, ::CommandBlockMode mode)
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI CommandBlockActor(::BlockPos const &pos, ::CommandBlockMode mode)
MCAPI bool performCommand(::BlockSource ®ion)
MCAPI::std::string const & $getFilteredCustomName(::Bedrock::NotNullNonOwnerPtr<::ProfanityContext > const &context)
MCAPI bool getConditionalMode(::BlockSource ®ion) const
MCAPI void $onChanged(::BlockSource ®ion)
MCAPI void updateBlock(::BlockSource ®ion, ::std::string const &cmd, ::Bedrock::Safety::RedactableString const &name, ::CommandBlockMode newMode, bool isConditional, bool redstoneMode, bool trackOutput, int tickDelay, bool executeFirstTick)
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource ®ion)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
Definition CommandBlock.h:26
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ProfanityContext.h:8
Definition SaveContext.h:5