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

Classes

struct  CommandInfo

Public Types

enum class  FacingResult : int { HaveFacing = 0 , NoFacing = 1 , Error = 2 }
enum class  Mode : int {
  Attack = 0 , Collect = 1 , Create = 2 , Detect = 3 ,
  DetectRedstone = 4 , Drop = 5 , DropAll = 6 , GetItemCount = 7 ,
  GetItemDetail = 8 , GetItemSpace = 9 , GetPosition = 10 , InspectData = 11 ,
  Move = 12 , Place = 13 , SetItem = 14 , Till = 15 ,
  Tp = 16 , Transfer = 17 , Turn = 18
}
using AgentCommandFunction = ::std::function<::std::unique_ptr<::AgentCommands::Command>(::Player&)>
using AgentCommandReturnType = ::std::unique_ptr<::AgentCommands::Command>

Public Member Functions

virtual void execute (::CommandOrigin const &origin, ::CommandOutput &output) const
MCAPI void createAgent (::Player &player, ::CommandOrigin const &origin, ::CommandOutput &output) const
MCAPI void reportSuccess (bool success, ::CommandOutput &output) const
MCAPI void $execute (::CommandOrigin const &origin, ::CommandOutput &output) const
LLNDAPI std::string getCommandName () const
virtual bool collectOptionalArguments ()
MCAPI void run (::CommandOrigin const &origin, ::CommandOutput &output) const
MCAPI void sendTelemetry (::CommandOrigin const &origin, ::CommandOutput &output) const
MCFOLD bool $collectOptionalArguments ()

Static Public Member Functions

static MCAPI void setup (::CommandRegistry &registry)
static MCAPI bool isWildcard (::CommandSelectorBase const &selector)
static MCAPI bool shouldUseCommandOriginRotation (::CommandOrigin const &origin, int version)
static MCAPI bool validRange (int input, int low, int high, ::CommandOutput &output)
static MCAPI bool validRange (float input, float low, float high, ::CommandOutput &output)

Public Attributes

::ll::TypedStorage< 4, 4, ::AgentCommand::Mode > mMode
::ll::TypedStorage< 1, 1, ::AgentComponents::CollectionSpecification > mCollectMode
::ll::TypedStorage< 1, 1, ::AgentComponents::Direction > mDirection
::ll::TypedStorage< 8, 8, ::CommandItem > mItem
::ll::TypedStorage< 4, 4, int > mSlot
::ll::TypedStorage< 4, 4, int > mDestination
::ll::TypedStorage< 4, 4, int > mQuantity
::ll::TypedStorage< 4, 4, int > mAux
::ll::TypedStorage< 4, 16, ::CommandPosition > mPos
::ll::TypedStorage< 4, 16, ::CommandPosition > mFacing
::ll::TypedStorage< 1, 1, bool > mIsPosSet
::ll::TypedStorage< 4, 4, ::AgentCommand::FacingResult > mHaveFacing
::ll::TypedStorage< 4, 4, float > mYRot
::ll::TypedStorage< 1, 1, bool > mIsYRotSet
::ll::TypedStorage< 4, 4, int > mVersion
::ll::TypedStorage< 8, 8, ::CommandRegistry const * > mRegistry
::ll::TypedStorage< 4, 4, int > mCommandSymbol
::ll::TypedStorage< 1, 1, ::CommandPermissionLevel > mPermissionLevel
::ll::TypedStorage< 2, 2, ::CommandFlag > mFlags

Member Function Documentation

◆ execute()

virtual void AgentCommand::execute ( ::CommandOrigin const & origin,
::CommandOutput & output ) const
virtual

Implements Command.


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