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

Classes

struct  mApplyTeleport

Public Member Functions

virtual void execute (::CommandOrigin const &origin, ::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 applyTarget (::Actor &victim, ::TeleportTarget target, int commandVersion, bool keepVelocity)
static MCAPI ::TeleportTarget computeTarget (::Actor &victim, ::Vec3 destination, ::Vec3 *facePosition, ::DimensionType destinationDimension, ::std::optional<::RotationCommandUtils::RotationData > const &rotationData, int commandVersion)
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< 8, 64, ::std::function< void(::Actor &, ::Vec3, ::Vec3 *, ::DimensionType, ::std::optional<::RotationCommandUtils::RotationData > const &, int)> > mApplyTeleport
::ll::TypedStorage< 8, 200, ::CommandSelector<::Actor > > mTargets
::ll::TypedStorage< 8, 200, ::CommandSelector<::Actor > > mDestinationEntity
::ll::TypedStorage< 4, 16, ::CommandPositionFloat > mDestinationPos
::ll::TypedStorage< 8, 200, ::CommandSelector<::Actor > > mFacingEntity
::ll::TypedStorage< 4, 16, ::CommandPositionFloat > mFacingPos
::ll::TypedStorage< 4, 8, ::RelativeFloat > mYRot
::ll::TypedStorage< 4, 8, ::RelativeFloat > mXRot
::ll::TypedStorage< 4, 4, ::RotationCommandUtils::FacingResult > mHaveFacing
::ll::TypedStorage< 1, 1, bool > mDestinationIsPosition
::ll::TypedStorage< 1, 1, bool > mIsUsingRotation
::ll::TypedStorage< 1, 1, bool > mFacingIsPosition
::ll::TypedStorage< 1, 1, bool > mCheckForBlocks
::ll::TypedStorage< 1, 1, bool > mForceProvidedPositionOnDimensionChange
::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 TeleportCommand::execute ( ::CommandOrigin const & origin,
::CommandOutput & output ) const
virtual

Implements Command.

◆ $execute()

MCAPI void TeleportCommand::$execute ( ::CommandOrigin const & origin,
::CommandOutput & output ) 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.

◆ isWildcard()

MCAPI bool Command::isWildcard ( ::CommandSelectorBase const & selector)
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.

◆ shouldUseCommandOriginRotation()

MCAPI bool Command::shouldUseCommandOriginRotation ( ::CommandOrigin const & origin,
int version )
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.

◆ validRange()

MCAPI bool Command::validRange ( float input,
float low,
float high,
::CommandOutput & output )
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: