LeviLamina
Loading...
Searching...
No Matches
GameTestCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/ServerCommand.h"
7#include "mc/util/Rotation.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BlockSource;
13class CommandOrigin;
14class CommandOutput;
15class CommandRegistry;
17namespace gametest { struct TestParameters; }
18// clang-format on
19
21public:
22 // GameTestCommand inner types define
23 enum class Mode : int {
24 Unknown = 0,
25 ClearAll = 1,
26 Create = 2,
27 Run = 3,
28 RunThis = 4,
29 RunSet = 5,
30 RunSetUntilFail = 6,
31 RunNearbyTests = 7,
32 ShowPosition = 8,
33 Stop = 9,
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
52 GameTestCommand& operator=(GameTestCommand const&);
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 // vIndex: 2
60 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
61
62 // vIndex: 0
63 virtual ~GameTestCommand() /*override*/ = default;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCAPI ::gametest::TestParameters _createTestParameters(::BlockSource& region, ::CommandOrigin const& origin) const;
70
71 MCAPI void _handleCreateTest(::BlockSource& region, ::CommandOrigin const& origin, ::CommandOutput& output) const;
72
73 MCAPI void _handleRun(
74 ::MinecraftGameTest& gameTest,
75 ::BlockSource& region,
76 ::CommandOrigin const& origin,
77 ::CommandOutput& output
78 ) const;
79
80 MCAPI void _handleRunNearbyTests(
81 ::MinecraftGameTest& gameTest,
82 ::BlockSource& region,
83 ::CommandOrigin const& origin,
84 ::CommandOutput& output
85 ) const;
86
87 MCAPI void _handleRunSet(
88 ::MinecraftGameTest& gameTest,
89 ::BlockSource& region,
90 ::CommandOrigin const& origin,
91 ::CommandOutput& output,
92 bool stopOtherTestsOnFailure
93 ) const;
94
95 MCAPI void _handleRunThis(
96 ::MinecraftGameTest& gameTest,
97 ::BlockSource& region,
98 ::CommandOrigin const& origin,
99 ::CommandOutput& output
100 ) const;
101
102 MCAPI void _handleShowPosition(::BlockSource& region, ::CommandOrigin const& origin, ::CommandOutput& output) const;
103
104 MCAPI void _runTestAt(
105 ::MinecraftGameTest& gameTest,
106 ::BlockSource& region,
107 ::CommandOutput* output,
108 ::BlockPos const& structureBlockPos,
109 ::std::optional<::Rotation> rotation
110 ) const;
111 // NOLINTEND
112
113public:
114 // static functions
115 // NOLINTBEGIN
116 MCAPI static void addGameTestNameEnums(::MinecraftGameTest& gameTest, ::CommandRegistry& commandRegistry);
117
118 MCAPI static void setup(::CommandRegistry& registry);
119 // NOLINTEND
120
121public:
122 // destructor thunk
123 // NOLINTBEGIN
124
125 // NOLINTEND
126
127public:
128 // virtual function thunks
129 // NOLINTBEGIN
130 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
131 // NOLINTEND
132
133public:
134 // vftables
135 // NOLINTBEGIN
136 MCAPI static void** $vftable();
137 // NOLINTEND
138};
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:44
Definition GameTestCommand.h:20
Definition MinecraftGameTest.h:21
Definition ServerCommand.h:22
Definition Alias.h:14