Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
RandomSearchAndDigGoal Class Reference
Inheritance diagram for RandomSearchAndDigGoal:

Public Types

enum class  CanUseOutcome : int {
  Ok = 0 , InCooldown = 1 , NoNavigation = 2 , CouldNotFindTargetPos = 3 ,
  CouldNotCreatePath = 4 , CouldNotPathAllTheWay = 5
}
enum class  State : int { Searching = 0 , Digging = 1 , Success = 2 , Done = 3 }

Public Member Functions

RandomSearchAndDigGoal & operator= (RandomSearchAndDigGoal const &)
 RandomSearchAndDigGoal (RandomSearchAndDigGoal const &)
virtual bool canUse ()
virtual bool canContinueToUse ()
virtual void start ()
virtual void stop ()
virtual void tick ()
virtual void appendDebugInfo (::std::string &str) const
MCAPI RandomSearchAndDigGoal (::Mob &mob, ::std::string name, ::GoalId const &goalId)
MCAPI ::std::optional<::BlockPos > _findWantedTargetPos () const
MCAPI bool _isValidTarget (::BlockSource const &region, ::BlockPos const pos) const
MCAPI void * $ctor (::Mob &mob, ::std::string name, ::GoalId const &goalId)
MCAPI bool $canUse ()
MCAPI bool $canContinueToUse ()
MCAPI void $start ()
MCAPI void $stop ()
MCAPI void $tick ()
MCAPI void $appendDebugInfo (::std::string &str) const
virtual bool canBeInterrupted ()
virtual bool isTargetGoal () const
virtual void onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
virtual::GoalId getGoalId () const
MCAPI void $dtor ()
MCAPI bool $canBeInterrupted ()
MCAPI bool $isTargetGoal () const
MCAPI void $onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
MCAPI::GoalId $getGoalId () const

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 4, 4, float > mSpeedMod
::ll::TypedStorage< 4, 4, float > mGoalRadius
::ll::TypedStorage< 4, 4, float > mDigSpawnItemPosOffset
::ll::TypedStorage< 4, 4, float > mDigSpawnItemAfterSeconds
::ll::TypedStorage< 4, 4, float > mTargetDigPositionOffset
::ll::TypedStorage< 4, 4, int > mFindWantedPosRetries
::ll::TypedStorage< 4, 4, int > mSearchRangeXZ
::ll::TypedStorage< 4, 4, int > mSearchRangeY
::ll::TypedStorage< 8, 104, ::ActorDefinitionTrigger > mOnSearchingStartEvent
::ll::TypedStorage< 8, 104, ::ActorDefinitionTrigger > mOnFailDuringSearchingEvent
::ll::TypedStorage< 8, 104, ::ActorDefinitionTrigger > mOnDiggingStartEvent
::ll::TypedStorage< 8, 104, ::ActorDefinitionTrigger > mOnItemFoundEvent
::ll::TypedStorage< 8, 104, ::ActorDefinitionTrigger > mOnFailDuringDiggingEvent
::ll::TypedStorage< 8, 104, ::ActorDefinitionTrigger > mOnSuccessEvent
::ll::TypedStorage< 8, 24, ::std::vector<::BlockDescriptor > > mTargetBlocks
::ll::TypedStorage< 8, 32, ::std::string > mItemTable
::ll::TypedStorage< 8, 8, ::Mob & > mMob
::ll::TypedStorage< 4, 4, ::RandomSearchAndDigGoal::State > mState
::ll::TypedStorage< 4, 4, float > mGoalRadiusSqr
::ll::TypedStorage< 1, 1, bool > mItemFound
::ll::TypedStorage< 4, 12, ::BlockPos > mTargetPos
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::Path > > mPath
::ll::TypedStorage< 2, 2, ushort > mCooldownDurationTicks
::ll::TypedStorage< 2, 2, ushort > mDiggingDurationTicks
::ll::TypedStorage< 2, 2, ushort > mSpawnItemAfterTicks
::ll::TypedStorage< 8, 8, ::Tick > mCooldownEndTick
::ll::TypedStorage< 8, 8, ::Tick > mItemFoundEndTick
::ll::TypedStorage< 8, 8, ::Tick > mDiggingEndTick
::ll::TypedStorage< 8, 24, ::std::optional<::ExpiringTick > > mDiggingParticleCooldown
::ll::TypedStorage< 8, 32, ::std::string > mName
::ll::TypedStorage< 4, 4, int > mRequiredControlFlags
::ll::TypedStorage< 2, 2, ushort > mTypeId

Constructor & Destructor Documentation

◆ RandomSearchAndDigGoal()

MCAPI RandomSearchAndDigGoal::RandomSearchAndDigGoal ( ::Mob & mob,
::std::string name,
::GoalId const & goalId )
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

◆ canUse()

virtual bool RandomSearchAndDigGoal::canUse ( )
virtual

Implements BaseGoal.

◆ canContinueToUse()

virtual bool RandomSearchAndDigGoal::canContinueToUse ( )
virtual

Reimplemented from BaseGoal.

◆ start()

virtual void RandomSearchAndDigGoal::start ( )
virtual

Reimplemented from BaseGoal.

◆ stop()

virtual void RandomSearchAndDigGoal::stop ( )
virtual

Reimplemented from BaseGoal.

◆ tick()

virtual void RandomSearchAndDigGoal::tick ( )
virtual

Reimplemented from BaseGoal.

◆ appendDebugInfo()

virtual void RandomSearchAndDigGoal::appendDebugInfo ( ::std::string & str) const
virtual

Implements BaseGoal.

◆ _findWantedTargetPos()

MCAPI ::std::optional<::BlockPos > RandomSearchAndDigGoal::_findWantedTargetPos ( ) 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.

◆ _isValidTarget()

MCAPI bool RandomSearchAndDigGoal::_isValidTarget ( ::BlockSource const & region,
::BlockPos const pos ) 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.

◆ $ctor()

MCAPI void * RandomSearchAndDigGoal::$ctor ( ::Mob & mob,
::std::string name,
::GoalId const & goalId )
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.

◆ $canUse()

MCAPI bool RandomSearchAndDigGoal::$canUse ( )
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.

◆ $canContinueToUse()

MCAPI bool RandomSearchAndDigGoal::$canContinueToUse ( )
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.

◆ $start()

MCAPI void RandomSearchAndDigGoal::$start ( )
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.

◆ $stop()

MCAPI void RandomSearchAndDigGoal::$stop ( )
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.

◆ $tick()

MCAPI void RandomSearchAndDigGoal::$tick ( )
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.

◆ $appendDebugInfo()

MCAPI void RandomSearchAndDigGoal::$appendDebugInfo ( ::std::string & str) 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.

◆ $dtor()

MCAPI void BaseGoal::$dtor ( )
inherited
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.

◆ $canBeInterrupted()

MCAPI bool BaseGoal::$canBeInterrupted ( )
inherited
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.

◆ $isTargetGoal()

MCAPI bool BaseGoal::$isTargetGoal ( ) const
inherited
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.

◆ $onPlayerDimensionChanged()

MCAPI void BaseGoal::$onPlayerDimensionChanged ( ::Player * player,
::DimensionType fromDimension,
::DimensionType toDimension )
inherited
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.

◆ $getGoalId()

MCAPI::GoalId BaseGoal::$getGoalId ( ) const
inherited
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()

MCAPI void ** BaseGoal::$vftable ( )
staticinherited
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: