LeviLamina
Loading...
Searching...
No Matches
BaseMoveToGoal Class Referenceabstract
Inheritance diagram for BaseMoveToGoal:

Public Member Functions

BaseMoveToGoaloperator= (BaseMoveToGoal const &)
 BaseMoveToGoal (BaseMoveToGoal const &)
virtual bool canUse ()
virtual bool canContinueToUse ()
virtual void start ()
virtual void stop ()
virtual void tick ()
virtual bool hasReachedTarget () const
virtual bool isValidTarget (::BlockSource &region, ::BlockPos const &pos)=0
virtual int _nextStartTick ()
virtual bool _canReach (::BlockPos const &pos)
virtual void _moveToBlock ()=0
virtual::Vec3 _getTargetPosition () const
virtual uint64 _getRepathTime () const
virtual void setInterval (int const interval)
MCAPI BaseMoveToGoal (::Mob &mob, float speedMultiplier, float cooldownTimeout, float goalRadius)
MCAPI::BlockPos _blockAboveTarget () const
MCAPI void _checkIfStuck ()
MCFOLD bool _isCooldownActive () const
MCAPI void setTargetPositionOffset (::Vec3 const &offset)
MCAPI void * $ctor (::Mob &mob, float speedMultiplier, float cooldownTimeout, float goalRadius)
MCAPI bool $canUse ()
MCAPI bool $canContinueToUse ()
MCAPI void $start ()
MCAPI void $stop ()
MCAPI void $tick ()
MCFOLD bool $hasReachedTarget () const
MCAPI int $_nextStartTick ()
MCAPI bool $_canReach (::BlockPos const &pos)
MCAPI::Vec3 $_getTargetPosition () const
MCFOLD uint64 $_getRepathTime () const
MCFOLD void $setInterval (int const interval)
virtual bool canBeInterrupted ()
virtual void appendDebugInfo (::std::string &str) const =0
virtual bool isTargetGoal () const
virtual void onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
MCFOLD int getRequiredControlFlags () const
MCAPI ushort getTypeId () const
MCFOLD void setRequiredControlFlags (int requiredControlFlags)
MCAPI void * $ctor ()
MCAPI void $dtor ()
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< 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 > mSpeedMultiplier
::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

◆ canUse()

virtual bool BaseMoveToGoal::canUse ( )
virtual

Implements BaseGoal.

◆ canContinueToUse()

virtual bool BaseMoveToGoal::canContinueToUse ( )
virtual

Reimplemented from BaseGoal.

◆ start()

virtual void BaseMoveToGoal::start ( )
virtual

Reimplemented from BaseGoal.

◆ stop()

virtual void BaseMoveToGoal::stop ( )
virtual

Reimplemented from BaseGoal.

◆ tick()

virtual void BaseMoveToGoal::tick ( )
virtual

Reimplemented from BaseGoal.


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