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

Classes

class  ContainerCloser

Public Types

enum class  Event : int {
  StartTakeInteractionWillFail = 0 , StartTakeInteractionWillSucceed = 1 , StartPlaceInteractionWillFail = 2 , StartPlaceInteractionWillSucceed = 3 ,
  FinishedInteraction = 4
}
enum class  State : int { Idle = 0 , Travelling = 1 , Queuing = 2 , Interacting = 3 }

Public Member Functions

TransportItemsGoaloperator= (TransportItemsGoal const &)
 TransportItemsGoal (TransportItemsGoal const &)
virtual bool canUse ()
virtual bool canContinueToUse ()
virtual void start ()
virtual void stop ()
virtual void tick ()
virtual void appendDebugInfo (::std::string &str) const
MCAPI bool _canSeeTarget (::BlockPos const &targetPosition) const
MCAPI void _executeEvent (::TransportItemsGoal::Event event) const
MCAPI void _tickIdle ()
MCAPI void _tickQueuing (::BlockPos const &targetPos)
MCAPI void _tickTravelling (::BlockPos const &targetPos)
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)
MCFOLD void $dtor ()
MCFOLD bool $canBeInterrupted ()
MCFOLD bool $isTargetGoal () const
MCFOLD void $onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)

Static Public Member Functions

static MCAPI bool _canSeeTarget (::BlockSource const &region, ::Vec3 const &mobHeadPosition, ::AABB const &visualShape, ::BlockPos const &targetPosition)
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 8, ::Mob & > mMob
::ll::TypedStorage< 8, 136, ::TransportItemsGoalSettingsmSettings
::ll::TypedStorage< 4, 4, ::TransportItemsGoal::State > mState
::ll::TypedStorage< 4, 4, uint > mCountedPositions
::ll::TypedStorage< 8, 24, ::std::vector<::BlockPos > > mVisitedPositions
::ll::TypedStorage< 8, 16, ::std::optional<::Tick > > mInteractEndTick
::ll::TypedStorage< 8, 16, ::std::optional<::Tick > > mCooldownEndTick
::ll::TypedStorage< 4, 16, ::std::optional<::BlockPos > > mTargetContainerPosition
::ll::TypedStorage< 1, 2, ::std::optional< bool > > mWasHoldingItemLastTick
::ll::TypedStorage< 8, 24, ::std::optional<::TransportItemsGoal::ContainerCloser > > mContainerCloser
::ll::TypedStorage< 1, 1, bool > mCheckLineOfSight
::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 TransportItemsGoal::canUse ( )
virtual

Implements Goal.

◆ canContinueToUse()

virtual bool TransportItemsGoal::canContinueToUse ( )
virtual

Reimplemented from Goal.

◆ start()

virtual void TransportItemsGoal::start ( )
virtual

Reimplemented from Goal.

◆ stop()

virtual void TransportItemsGoal::stop ( )
virtual

Reimplemented from Goal.

◆ tick()

virtual void TransportItemsGoal::tick ( )
virtual

Reimplemented from Goal.

◆ appendDebugInfo()

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

Implements Goal.

◆ $vftable()

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