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 : uint {};
24
25public:
26 // member variables
27 // NOLINTBEGIN
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 GameTestCommand& operator=(GameTestCommand const&);
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 // vIndex: 2
49 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
50
51 // vIndex: 0
52 virtual ~GameTestCommand() /*override*/ = default;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI ::gametest::TestParameters _createTestParameters(::BlockSource& region, ::CommandOrigin const& origin) const;
59
60 MCAPI void _handleCreateTest(::BlockSource& region, ::CommandOrigin const& origin, ::CommandOutput& output) const;
61
62 MCAPI void _handleRun(
63 ::MinecraftGameTest& gameTest,
64 ::BlockSource& region,
65 ::CommandOrigin const& origin,
66 ::CommandOutput& output
67 ) const;
68
69 MCAPI void _handleRunNearbyTests(
70 ::MinecraftGameTest& gameTest,
71 ::BlockSource& region,
72 ::CommandOrigin const& origin,
73 ::CommandOutput& output
74 ) const;
75
76 MCAPI void _handleRunSet(
77 ::MinecraftGameTest& gameTest,
78 ::BlockSource& region,
79 ::CommandOrigin const& origin,
80 ::CommandOutput& output,
81 bool stopOtherTestsOnFailure
82 ) const;
83
84 MCAPI void _handleRunThis(
85 ::MinecraftGameTest& gameTest,
86 ::BlockSource& region,
87 ::CommandOrigin const& origin,
88 ::CommandOutput& output
89 ) const;
90
91 MCAPI void _handleShowPosition(::BlockSource& region, ::CommandOrigin const& origin, ::CommandOutput& output) const;
92
93 MCAPI void _runTestAt(
94 ::MinecraftGameTest& gameTest,
95 ::BlockSource& region,
96 ::CommandOutput* output,
97 ::BlockPos const& structureBlockPos,
98 ::std::optional<::Rotation> rotation
99 ) const;
100 // NOLINTEND
101
102public:
103 // static functions
104 // NOLINTBEGIN
105 MCAPI static void addGameTestNameEnums(::MinecraftGameTest& gameTest, ::CommandRegistry& commandRegistry);
106
107 MCAPI static void setup(::CommandRegistry& registry);
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
114 // NOLINTEND
115
116public:
117 // vftables
118 // NOLINTBEGIN
119 MCNAPI static void** $vftable();
120 // NOLINTEND
121};
Definition BlockPos.h:14
Definition BlockSource.h:63
Definition CommandOrigin.h:30
Definition CommandOutput.h:17
Definition CommandRegistry.h:34
Definition GameTestCommand.h:20
static MCAPI void ** $vftable()
Definition ServerCommand.h:22
Definition MinecraftGameTest.h:5
Definition _HeaderOutputPredefine.h:273