LeviLamina
Loading...
Searching...
No Matches
CommandBlockActor Class Reference
+ Inheritance diagram for CommandBlockActor:

Public Types

using MapIdType = ::std::map<::std::string, ::BlockActorType>
 
using MapTypeId = ::std::map<::BlockActorType, ::std::string>
 

Public Member Functions

virtual bool save (::CompoundTag &tag, ::SaveContext const &saveContext) const
 
virtual void saveBlockData (::CompoundTag &tag, ::BlockSource &region) const
 
virtual void load (::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
 
virtual void loadBlockData (::CompoundTag const &tag, ::BlockSource &region, ::DataLoadHelper &dataLoadHelper)
 
virtual void onCustomTagLoadDone (::BlockSource &region)
 
virtual void onChanged (::BlockSource &region)
 
virtual void onPlace (::BlockSource &region)
 
virtual::Bedrock::Safety::RedactableString const & getCustomName () const
 
virtual::std::string const & getFilteredCustomName (::Bedrock::NotNullNonOwnerPtr<::ProfanityContext > const &context)
 
virtual void setCustomName (::Bedrock::Safety::RedactableString const &str)
 
virtual ::std::unique_ptr<::BlockActorDataPacket_getUpdatePacket (::BlockSource &region)
 
virtual void _onUpdatePacket (::CompoundTag const &tag, ::BlockSource &region)
 
virtual bool _playerCanUpdate (::Player const &player) const
 
MCAPI CommandBlockActor (::BlockPos const &pos, ::CommandBlockMode mode)
 
MCAPI void _setAutomatic (::BlockSource &region, bool alwaysActive, ::CommandBlockMode currentMode)
 
MCAPI::CommandBlock const * getCommandBlock (::BlockSource &region) const
 
MCAPI bool getConditionalMode (::BlockSource &region) const
 
MCAPI bool markConditionMet (::BlockSource &region)
 
MCAPI void markForSaving (::BlockSource &region)
 
MCAPI void markForSaving (::BlockSource &region, int oldSuccessCount, bool oldConditionMet)
 
MCAPI bool performCommand (::BlockSource &region)
 
MCAPI void updateBlock (::BlockSource &region, ::std::string const &cmd, ::Bedrock::Safety::RedactableString const &name, ::CommandBlockMode newMode, bool isConditional, bool redstoneMode, bool trackOutput, int tickDelay, bool executeFirstTick)
 
MCAPI void * $ctor (::BlockPos const &pos, ::CommandBlockMode mode)
 
MCAPI bool $save (::CompoundTag &tag, ::SaveContext const &saveContext) const
 
MCAPI void $saveBlockData (::CompoundTag &tag, ::BlockSource &region) const
 
MCAPI void $load (::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
 
MCAPI void $loadBlockData (::CompoundTag const &tag, ::BlockSource &region, ::DataLoadHelper &dataLoadHelper)
 
MCAPI void $onCustomTagLoadDone (::BlockSource &region)
 
MCAPI void $onChanged (::BlockSource &region)
 
MCAPI void $onPlace (::BlockSource &region)
 
MCAPI::Bedrock::Safety::RedactableString const & $getCustomName () const
 
MCAPI::std::string const & $getFilteredCustomName (::Bedrock::NotNullNonOwnerPtr<::ProfanityContext > const &context)
 
MCAPI void $setCustomName (::Bedrock::Safety::RedactableString const &str)
 
MCAPI ::std::unique_ptr<::BlockActorDataPacket$_getUpdatePacket (::BlockSource &region)
 
MCAPI void $_onUpdatePacket (::CompoundTag const &tag, ::BlockSource &region)
 
MCAPI bool $_playerCanUpdate (::Player const &player) const
 
LLAPI void refresh (optional_ref< class BlockSource > blockSource=std::nullopt)
 
virtual bool saveItemInstanceData (::CompoundTag &tag, ::SaveContext const &saveContext) const
 
virtual bool isWithinRenderDistance (::Vec3 const &cameraPosition) const
 
virtual void tick (::BlockSource &region)
 
virtual bool isMovable (::BlockSource &)
 
virtual bool isCustomNameSaved ()
 
virtual void onMove ()
 
virtual void onRemoved (::BlockSource &)
 
virtual bool isPreserved (::BlockSource &) const
 
virtual bool shouldPreserve (::BlockSource &)
 
virtual void triggerEvent (int, int)
 
virtual void clearCache ()
 
virtual void onNeighborChanged (::BlockSource &, ::BlockPos const &)
 
virtual float getShadowRadius (::BlockSource &) const
 
virtual bool hasAlphaLayer () const
 
virtual::BlockActor * getCrackEntity (::BlockSource &, ::BlockPos const &)
 
virtual::AABB getCollisionShape (::IConstBlockSource const &) const
 
virtual void getDebugText (::std::vector<::std::string > &outputInfo, ::BlockPos const &debugPos) const
 
virtual::std::string getName () const
 
virtual::std::string getImmersiveReaderText (::BlockSource &)
 
virtual int getRepairCost () const
 
virtual::PistonBlockActor * getOwningPiston (::BlockSource &)
 
virtual::PistonBlockActor const * getOwningPiston (::BlockSource &) const
 
virtual::Container * getContainer ()
 
virtual::Container const * getContainer () const
 
virtual void eraseLootTable ()
 
virtual void onChunkLoaded (::LevelChunk &)
 
virtual void onChunkUnloaded (::LevelChunk &)
 
virtual void onSubChunkLoaded (::LevelChunk &, short, bool)
 
virtual ::std::vector<::std::string > getUgcStrings (::CompoundTag const &) const
 
virtual ::std::vector<::std::string > getFilteredUgcStrings (::CompoundTag const &) const
 
virtual void setUgcStrings (::CompoundTag &, ::std::vector<::std::string > const &) const
 
virtual void setFilteredUgcStrings (::CompoundTag &, ::std::vector<::std::string > const &) const
 
virtual void fixupOnLoad (::LevelChunk &)
 
MCAPI bool onUpdatePacket (::CompoundTag const &data, ::BlockSource &region, ::Player const *fromPlayer)
 
MCAPI void * $ctor (::BlockActorType type, ::BlockPos const &pos, ::std::string const &)
 
MCAPI void $dtor ()
 
MCAPI bool $saveItemInstanceData (::CompoundTag &tag, ::SaveContext const &saveContext) const
 
MCAPI bool $isWithinRenderDistance (::Vec3 const &cameraPosition) const
 
MCAPI void $tick (::BlockSource &region)
 
MCAPI bool $isMovable (::BlockSource &)
 
MCAPI bool $isCustomNameSaved ()
 
MCFOLD void $onMove ()
 
MCFOLD void $onRemoved (::BlockSource &)
 
MCFOLD bool $isPreserved (::BlockSource &) const
 
MCFOLD bool $shouldPreserve (::BlockSource &)
 
MCFOLD void $triggerEvent (int, int)
 
MCFOLD void $clearCache ()
 
MCFOLD void $onNeighborChanged (::BlockSource &, ::BlockPos const &)
 
MCFOLD float $getShadowRadius (::BlockSource &) const
 
MCFOLD bool $hasAlphaLayer () const
 
MCFOLD::BlockActor * $getCrackEntity (::BlockSource &, ::BlockPos const &)
 
MCAPI::AABB $getCollisionShape (::IConstBlockSource const &) const
 
MCAPI void $getDebugText (::std::vector<::std::string > &outputInfo, ::BlockPos const &debugPos) const
 
MCFOLD::std::string $getName () const
 
MCFOLD::std::string $getImmersiveReaderText (::BlockSource &)
 
MCAPI int $getRepairCost () const
 
MCFOLD::PistonBlockActor * $getOwningPiston (::BlockSource &)
 
MCFOLD::PistonBlockActor const * $getOwningPiston (::BlockSource &) const
 
MCFOLD::Container * $getContainer ()
 
MCFOLD::Container const * $getContainer () const
 
MCFOLD void $eraseLootTable ()
 
MCFOLD void $onChunkLoaded (::LevelChunk &)
 
MCFOLD void $onChunkUnloaded (::LevelChunk &)
 
MCFOLD void $onSubChunkLoaded (::LevelChunk &, short, bool)
 
MCFOLD ::std::vector<::std::string > $getUgcStrings (::CompoundTag const &) const
 
MCFOLD ::std::vector<::std::string > $getFilteredUgcStrings (::CompoundTag const &) const
 
MCFOLD void $setUgcStrings (::CompoundTag &, ::std::vector<::std::string > const &) const
 
MCFOLD void $setFilteredUgcStrings (::CompoundTag &, ::std::vector<::std::string > const &) const
 
MCFOLD void $fixupOnLoad (::LevelChunk &)
 

Static Public Member Functions

static MCAPI void ** $vftable ()
 
static LLNDAPI std::shared_ptr< BlockActorcreate (class CompoundTag const &nbt)
 
static LLNDAPI std::shared_ptr< BlockActorcreate (class CompoundTag const &nbt, class BlockPos const &pos)
 
static MCAPI ::std::map<::BlockActorType, ::std::string > const & _getClassIdMap ()
 
static MCAPI ::std::shared_ptr<::BlockActorloadStatic (::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
 

Public Attributes

::ll::TypedStorage< 8, 192, ::BaseCommandBlockmBaseCB
 
::ll::TypedStorage< 1, 1, bool > mPowered
 
::ll::TypedStorage< 1, 1, bool > mConditionMet
 
::ll::TypedStorage< 1, 1, bool > mRedstoneMode
 
::ll::TypedStorage< 1, 1, bool > mLastPerformedConditionalMode
 
::ll::TypedStorage< 1, 1, bool > mLastPerformedRedstoneMode
 
::ll::TypedStorage< 1, 1, bool > mExecuteFirstTickOnPlace
 
::ll::TypedStorage< 2, 2, ::CommandBlockMode > mLastPerformedCBMode
 
::ll::TypedStorage< 4, 4, int > mTickCount
 
::ll::TypedStorage< 8, 8, ::Block const * > mBlock
 
::ll::TypedStorage< 4, 4, float > mDestroyTimer
 
::ll::TypedStorage< 4, 12, ::Vec3mDestroyDirection
 
::ll::TypedStorage< 4, 4, float > mDestroyProgress
 
::ll::TypedStorage< 4, 12, ::BlockPosmPosition
 
::ll::TypedStorage< 4, 24, ::AABBmBB
 
::ll::TypedStorage< 4, 4, ::BlockActorType const > mType
 
::ll::TypedStorage< 4, 4, ::BlockActorRendererId > mRendererId
 
::ll::TypedStorage< 8, 72, ::Bedrock::Safety::RedactableStringmCustomName
 
::ll::TypedStorage< 8, 32, ::std::string > mFilteredCustomName
 
::ll::TypedStorage< 4, 4, int > mRepairCost
 
::ll::TypedStorage< 1, 1, bool > mClientSideOnly
 
::ll::TypedStorage< 1, 1, bool > mIsMovable
 
::ll::TypedStorage< 1, 1, bool > mSaveCustomName
 
::ll::TypedStorage< 1, 1, bool > mCanRenderCustomName
 
::ll::TypedStorage< 4, 4, float const > signShadowRadius
 
::ll::TypedStorage< 8, 24, ::ActorTerrainInterlockDatamTerrainInterlockData
 
::ll::TypedStorage< 1, 1, bool > mChanged
 

Constructor & Destructor Documentation

◆ CommandBlockActor()

MCAPI CommandBlockActor::CommandBlockActor ( ::BlockPos const & pos,
::CommandBlockMode mode )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ save()

virtual bool CommandBlockActor::save ( ::CompoundTag & tag,
::SaveContext const & saveContext ) const
virtual

Reimplemented from BlockActor.

◆ saveBlockData()

virtual void CommandBlockActor::saveBlockData ( ::CompoundTag & tag,
::BlockSource & region ) const
virtual

Reimplemented from BlockActor.

◆ load()

virtual void CommandBlockActor::load ( ::ILevel & level,
::CompoundTag const & tag,
::DataLoadHelper & dataLoadHelper )
virtual

Reimplemented from BlockActor.

◆ loadBlockData()

virtual void CommandBlockActor::loadBlockData ( ::CompoundTag const & tag,
::BlockSource & region,
::DataLoadHelper & dataLoadHelper )
virtual

Reimplemented from BlockActor.

◆ onCustomTagLoadDone()

virtual void CommandBlockActor::onCustomTagLoadDone ( ::BlockSource & region)
virtual

Reimplemented from BlockActor.

◆ onChanged()

virtual void CommandBlockActor::onChanged ( ::BlockSource & region)
virtual

Reimplemented from BlockActor.

◆ onPlace()

virtual void CommandBlockActor::onPlace ( ::BlockSource & region)
virtual

Reimplemented from BlockActor.

◆ setCustomName()

virtual void CommandBlockActor::setCustomName ( ::Bedrock::Safety::RedactableString const & str)
virtual

Reimplemented from BlockActor.

◆ _onUpdatePacket()

virtual void CommandBlockActor::_onUpdatePacket ( ::CompoundTag const & tag,
::BlockSource & region )
virtual

Reimplemented from BlockActor.

◆ _playerCanUpdate()

virtual bool CommandBlockActor::_playerCanUpdate ( ::Player const & player) const
virtual

Reimplemented from BlockActor.

◆ _setAutomatic()

MCAPI void CommandBlockActor::_setAutomatic ( ::BlockSource & region,
bool alwaysActive,
::CommandBlockMode currentMode )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getCommandBlock()

MCAPI::CommandBlock const * CommandBlockActor::getCommandBlock ( ::BlockSource & region) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getConditionalMode()

MCAPI bool CommandBlockActor::getConditionalMode ( ::BlockSource & region) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ markConditionMet()

MCAPI bool CommandBlockActor::markConditionMet ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ markForSaving() [1/2]

MCAPI void CommandBlockActor::markForSaving ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ markForSaving() [2/2]

MCAPI void CommandBlockActor::markForSaving ( ::BlockSource & region,
int oldSuccessCount,
bool oldConditionMet )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ performCommand()

MCAPI bool CommandBlockActor::performCommand ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ updateBlock()

MCAPI void CommandBlockActor::updateBlock ( ::BlockSource & region,
::std::string const & cmd,
::Bedrock::Safety::RedactableString const & name,
::CommandBlockMode newMode,
bool isConditional,
bool redstoneMode,
bool trackOutput,
int tickDelay,
bool executeFirstTick )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * CommandBlockActor::$ctor ( ::BlockPos const & pos,
::CommandBlockMode mode )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $save()

MCAPI bool CommandBlockActor::$save ( ::CompoundTag & tag,
::SaveContext const & saveContext ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $saveBlockData()

MCAPI void CommandBlockActor::$saveBlockData ( ::CompoundTag & tag,
::BlockSource & region ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $load()

MCAPI void CommandBlockActor::$load ( ::ILevel & level,
::CompoundTag const & tag,
::DataLoadHelper & dataLoadHelper )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $loadBlockData()

MCAPI void CommandBlockActor::$loadBlockData ( ::CompoundTag const & tag,
::BlockSource & region,
::DataLoadHelper & dataLoadHelper )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onCustomTagLoadDone()

MCAPI void CommandBlockActor::$onCustomTagLoadDone ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onChanged()

MCAPI void CommandBlockActor::$onChanged ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onPlace()

MCAPI void CommandBlockActor::$onPlace ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getCustomName()

MCAPI::Bedrock::Safety::RedactableString const & CommandBlockActor::$getCustomName ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getFilteredCustomName()

MCAPI::std::string const & CommandBlockActor::$getFilteredCustomName ( ::Bedrock::NotNullNonOwnerPtr<::ProfanityContext > const & context)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setCustomName()

MCAPI void CommandBlockActor::$setCustomName ( ::Bedrock::Safety::RedactableString const & str)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $_getUpdatePacket()

MCAPI ::std::unique_ptr<::BlockActorDataPacket > CommandBlockActor::$_getUpdatePacket ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $_onUpdatePacket()

MCAPI void CommandBlockActor::$_onUpdatePacket ( ::CompoundTag const & tag,
::BlockSource & region )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $_playerCanUpdate()

MCAPI bool CommandBlockActor::$_playerCanUpdate ( ::Player const & player) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

static MCAPI void ** CommandBlockActor::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: