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

Public Types

enum class  PlaceAction : int { Structure = 0 , Jigsaw = 1 , Feature = 2 , FeatureRule = 3 }
using BiomeDecorationFeatureMap = ::std::unordered_map<::HashedString, ::BiomeDecorationFeature>
using PlaceResult = ::nonstd::expected<::BoundingBox, ::std::string_view>

Public Member Functions

virtual void execute (::CommandOrigin const &origin, ::CommandOutput &output) const
MCAPI void $execute (::CommandOrigin const &origin, ::CommandOutput &output) const
MCAPI bool tryToFilterTextWithRemoteFilter (::CommandOrigin const &origin, ::CommandOutput &output, ::std::vector<::std::string > const &text, ::TextProcessingEventOrigin const &textOrigin, ::std::function< void(::std::vector<::std::string > const &, ::std::vector<::std::string > const &, ::std::vector<::Safety::TextFilteringEvent > const &)> callback) 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 ::nonstd::expected<::BoundingBox, ::std::string_view > placeJigsaw (::std::string const &pool, ::std::string const &target, schar maxDepth, ::BlockPos const &position, bool keepJigsaws, bool includeEntities, ::Dimension &dimension, ::br::worldgen::LiquidSettings liquidSettings)
static MCAPI ::nonstd::expected<::BoundingBox, ::std::string_view > placeStructure (::std::string const &id, ::BlockPos const &pos, ::Dimension &dimension, bool ignoreStartHeight, bool keepJigsaws, bool includeEntities, ::br::worldgen::LiquidSettings liquidSettings)
static MCAPI void setup (::CommandRegistry &registry, ::std::unordered_map<::HashedString, ::BiomeDecorationFeature > const &biomeDecorationFeatures, ::Experiments const &)
static MCAPI void kickPlayerDueToFlooding (::Bedrock::NonOwnerPointer<::ServerNetworkHandler > serverNetworkHandler, ::Player *player, ::IMinecraftEventing &eventing, ::std::string const &message)
static MCAPI ::Minecraft *& mGame ()
static MCAPI ::Bedrock::NonOwnerPointer<::TextFilteringProcessor > & mTextFilteringProcessor ()
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, ::PlaceCommand::PlaceAction > mPlaceAction
::ll::TypedStorage< 8, 32, ::CommandFilePath > mPool
::ll::TypedStorage< 8, 32, ::std::string > mTarget
::ll::TypedStorage< 4, 4, int > mMaxDepth
::ll::TypedStorage< 4, 16, ::CommandPosition > mPosition
::ll::TypedStorage< 8, 32, ::std::string > mStructureOrFeatureName
::ll::TypedStorage< 8, 8, ::IFeature const * > mFeature
::ll::TypedStorage< 1, 1, ::br::worldgen::LiquidSettings > mLiquidSettings
::ll::TypedStorage< 1, 1, bool > mPosIsSet
::ll::TypedStorage< 1, 1, bool > mIgnoreStartHeight
::ll::TypedStorage< 1, 1, bool > mKeepJigsaws
::ll::TypedStorage< 1, 1, bool > mIncludeEntities
::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 PlaceCommand::execute ( ::CommandOrigin const & origin,
::CommandOutput & output ) const
virtual

Implements Command.

◆ placeJigsaw()

MCAPI ::nonstd::expected<::BoundingBox, ::std::string_view > PlaceCommand::placeJigsaw ( ::std::string const & pool,
::std::string const & target,
schar maxDepth,
::BlockPos const & position,
bool keepJigsaws,
bool includeEntities,
::Dimension & dimension,
::br::worldgen::LiquidSettings liquidSettings )
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.

◆ placeStructure()

MCAPI ::nonstd::expected<::BoundingBox, ::std::string_view > PlaceCommand::placeStructure ( ::std::string const & id,
::BlockPos const & pos,
::Dimension & dimension,
bool ignoreStartHeight,
bool keepJigsaws,
bool includeEntities,
::br::worldgen::LiquidSettings liquidSettings )
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.

◆ $execute()

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

◆ tryToFilterTextWithRemoteFilter()

MCAPI bool ServerCommand::tryToFilterTextWithRemoteFilter ( ::CommandOrigin const & origin,
::CommandOutput & output,
::std::vector<::std::string > const & text,
::TextProcessingEventOrigin const & textOrigin,
::std::function< void(::std::vector<::std::string > const &, ::std::vector<::std::string > const &, ::std::vector<::Safety::TextFilteringEvent > const &)> callback ) const
inherited
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.

◆ kickPlayerDueToFlooding()

MCAPI void ServerCommand::kickPlayerDueToFlooding ( ::Bedrock::NonOwnerPointer<::ServerNetworkHandler > serverNetworkHandler,
::Player * player,
::IMinecraftEventing & eventing,
::std::string const & message )
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.

◆ mGame()

MCAPI ::Minecraft *& ServerCommand::mGame ( )
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.

◆ mTextFilteringProcessor()

MCAPI ::Bedrock::NonOwnerPointer<::TextFilteringProcessor > & ServerCommand::mTextFilteringProcessor ( )
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.

◆ 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: