LeviLamina
Loading...
Searching...
No Matches
ResourceUriCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7#include "mc/server/commands/CommandRawText.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
14class Level;
15class Player;
16// clang-format on
17
18class ResourceUriCommand : public ::Command {
19public:
20 // ResourceUriCommand inner types define
21 enum class ActionType : int {
22 Clear = 0,
23 UriOnly = 1,
24 Named = 2,
25 };
26
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<4, 4, ::ResourceUriCommand::ActionType> mAction;
31 ::ll::TypedStorage<8, 32, ::std::string> mName;
32 ::ll::TypedStorage<8, 32, ::CommandRawText> mLink;
33 // NOLINTEND
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI void _executeClear(::Level& level, ::Player* originPlayer, ::CommandOutput& output) const;
45
46 MCAPI void _executeNamed(::Level& level, ::Player* originPlayer, ::CommandOutput& output) const;
47
48 MCAPI void _executeUriOnly(::Level& level, ::Player* originPlayer, ::CommandOutput& output) const;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static void setup(::CommandRegistry& registry);
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
61
62
63 // NOLINTEND
64
65public:
66 // vftables
67 // NOLINTBEGIN
68 MCNAPI static void** $vftable();
69 // NOLINTEND
70};
71
72// clang-format off
73template <>
74MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::ResourceUriCommand::ActionType>();
75// clang-format on
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Level.h:255
Definition Player.h:137
Definition ResourceUriCommand.h:18
static MCAPI void ** $vftable()