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

Public Member Functions

virtual bool findTargetBlock ()
virtual bool canUse ()
virtual bool canContinueToUse ()
virtual void start ()
virtual void tick ()
virtual void appendDebugInfo (::std::string &str) const
virtual bool isValidTarget (::BlockSource &region, ::BlockPos const &pos)
virtual void _moveToBlock ()
MCAPI LayEggGoal (::Mob &mob, float speedModifier, int searchRange, int searchHeight, float goalRadius, ::std::vector<::ItemDescriptor > const &targetBlocks, ::std::vector<::MaterialType > const &targetMaterialsAboveBlock, bool allowLayingFromBelow, bool useDefaultAnimation, float laySeconds, ::ItemDescriptor const &eggType, ::ActorDefinitionTrigger const &onLay, ::std::string const &layEggSound)
MCAPI bool _isTargetBlock (::BlockType const &block) const
MCAPI void * $ctor (::Mob &mob, float speedModifier, int searchRange, int searchHeight, float goalRadius, ::std::vector<::ItemDescriptor > const &targetBlocks, ::std::vector<::MaterialType > const &targetMaterialsAboveBlock, bool allowLayingFromBelow, bool useDefaultAnimation, float laySeconds, ::ItemDescriptor const &eggType, ::ActorDefinitionTrigger const &onLay, ::std::string const &layEggSound)
MCAPI void $dtor ()
MCAPI bool $findTargetBlock ()
MCAPI bool $canUse ()
MCAPI bool $canContinueToUse ()
MCAPI void $start ()
MCAPI void $tick ()
MCAPI void $appendDebugInfo (::std::string &str) const
MCAPI bool $isValidTarget (::BlockSource &region, ::BlockPos const &pos)
MCAPI void $_moveToBlock ()
virtual void stop ()
virtual bool hasReachedTarget () const
virtual int _nextStartTick ()
virtual bool _canReach (::BlockPos const &pos)
virtual::Vec3 _getTargetPosition () const
virtual uint64 _getRepathTime () const
MCAPI void _checkIfStuck ()
MCFOLD void $stop ()
MCAPI bool $hasReachedTarget () const
MCAPI int $_nextStartTick ()
MCAPI bool $_canReach (::BlockPos const &pos)
MCAPI::Vec3 $_getTargetPosition () const
MCFOLD uint64 $_getRepathTime () const
virtual bool canBeInterrupted ()
virtual bool isTargetGoal () const
virtual void onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
MCFOLD bool $canBeInterrupted ()
MCFOLD bool $isTargetGoal () const
MCFOLD void $onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::ItemDescriptor > const > mTargetBlocks
::ll::TypedStorage< 8, 24, ::std::vector<::MaterialType > const > mTargetMaterialsAboveBlock
::ll::TypedStorage< 1, 1, bool const > mAllowLayingFromBelow
::ll::TypedStorage< 1, 1, bool const > mUseDefaultAnimation
::ll::TypedStorage< 4, 4, float const > mLaySeconds
::ll::TypedStorage< 8, 16, ::ItemDescriptor const > mEggType
::ll::TypedStorage< 8, 104, ::ActorDefinitionTrigger const > mOnLay
::ll::TypedStorage< 4, 4, ::SharedTypes::Legacy::LevelSoundEvent const > mLayEggSound
::ll::TypedStorage< 4, 4, int > mLayEggCounter
::ll::TypedStorage< 4, 4, int > mSearchRange
::ll::TypedStorage< 4, 4, int > mSearchHeight
::ll::TypedStorage< 4, 4, int > mSearchCount
::ll::TypedStorage< 4, 4, int > mTravelTicks
::ll::TypedStorage< 4, 4, int > mNextStartTick
::ll::TypedStorage< 4, 4, int > mGiveUpTicks
::ll::TypedStorage< 4, 4, int > mStayTicks
::ll::TypedStorage< 4, 4, int > mMaxStayTicks
::ll::TypedStorage< 1, 1, bool > mReachedTarget
::ll::TypedStorage< 4, 4, float > mSpeedMod
::ll::TypedStorage< 4, 4, float > mGoalRadiusSq
::ll::TypedStorage< 8, 8, uint64 > mCooldownCounter
::ll::TypedStorage< 8, 8, uint64 > mCooldownTimeoutTime
::ll::TypedStorage< 4, 12, ::BlockPosmStartPos
::ll::TypedStorage< 4, 12, ::Vec3mBlockPos
::ll::TypedStorage< 4, 12, ::Vec3mTargetPositionOffset
::ll::TypedStorage< 4, 4, float > mChanceToStart
::ll::TypedStorage< 8, 8, ::Mob & > mMob
::ll::TypedStorage< 4, 4, int > mInterval
::ll::TypedStorage< 8, 32, ::std::string > mDebugName
::ll::TypedStorage< 4, 4, int > mRequiredControlFlags
::ll::TypedStorage< 2, 2, ushort > mTypeId

Member Function Documentation

◆ findTargetBlock()

virtual bool LayEggGoal::findTargetBlock ( )
virtual

Reimplemented from BaseMoveToBlockGoal.

◆ canUse()

virtual bool LayEggGoal::canUse ( )
virtual

Reimplemented from BaseMoveToBlockGoal.

◆ canContinueToUse()

virtual bool LayEggGoal::canContinueToUse ( )
virtual

Reimplemented from BaseMoveToBlockGoal.

◆ start()

virtual void LayEggGoal::start ( )
virtual

Reimplemented from BaseMoveToGoal.

◆ tick()

virtual void LayEggGoal::tick ( )
virtual

Reimplemented from BaseMoveToGoal.

◆ appendDebugInfo()

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

Implements Goal.

◆ isValidTarget()

virtual bool LayEggGoal::isValidTarget ( ::BlockSource & region,
::BlockPos const & pos )
virtual

Implements BaseMoveToGoal.

◆ _moveToBlock()

virtual void LayEggGoal::_moveToBlock ( )
virtual

Reimplemented from BaseMoveToBlockGoal.

◆ $vftable()

MCAPI void ** LayEggGoal::$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.

◆ stop()

virtual void BaseMoveToGoal::stop ( )
virtualinherited

Reimplemented from Goal.


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