LeviLamina
Loading...
Searching...
No Matches
MinecraftGameTest.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/Rotation.h"
7#include "mc/world/level/LevelListener.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BlockSource;
13class Dimension;
14class Level;
15namespace gametest { class BaseGameTestFunction; }
16namespace gametest { class BaseGameTestInstance; }
17namespace gametest { class IGameTestListener; }
18namespace gametest { struct TestParameters; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 MinecraftGameTest& operator=(MinecraftGameTest const&);
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 0
41 virtual ~MinecraftGameTest() /*override*/ = default;
42
43 // vIndex: 24
44 virtual void onLevelDestruction(::std::string const&) /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCNAPI explicit MinecraftGameTest(::Level& level);
51
52 MCNAPI void _runTestPreparation(::gametest::BaseGameTestFunction const& testFunction);
53
54 MCNAPI void clearAllTests(::BlockSource& region);
55
56 MCNAPI ::std::string
57 runTest(::std::string const& testName, ::Dimension& dimension, ::gametest::TestParameters const& params);
58
59 MCNAPI ::std::string runTest(
60 ::std::string const& testName,
61 ::Dimension& dimension,
62 ::gametest::TestParameters const& params,
63 ::std::vector<::std::shared_ptr<::gametest::IGameTestListener>> listeners
64 );
65
66 MCNAPI ::std::string
67 runTestAt(::BlockSource& region, ::BlockPos const& structureBlockPos, ::std::optional<::Rotation> rotation);
68
69 MCNAPI ::std::vector<::std::shared_ptr<::gametest::BaseGameTestInstance>> const&
71 // NOLINTEND
72
73public:
74 // constructor thunks
75 // NOLINTBEGIN
76 MCNAPI void* $ctor(::Level& level);
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCNAPI void $onLevelDestruction(::std::string const&);
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCNAPI static void** $vftable();
89 // NOLINTEND
90};
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition Dimension.h:83
Definition LevelListener.h:28
Definition Level.h:243
Definition MinecraftGameTest.h:21
MCAPI ::std::vector<::std::shared_ptr<::gametest::BaseGameTestInstance > > const & runTests(::Dimension &dimension, ::gametest::TestParameters &&params)
MCAPI::std::string runTestAt(::BlockSource &region, ::BlockPos const &structureBlockPos, ::std::optional<::Rotation > rotation)
MCAPI MinecraftGameTest(::Level &level)
MCAPI void $onLevelDestruction(::std::string const &)
static MCAPI void ** $vftable()
MCAPI void * $ctor(::Level &level)
MCAPI::std::string runTest(::std::string const &testName, ::Dimension &dimension, ::gametest::TestParameters const &params, ::std::vector<::std::shared_ptr<::gametest::IGameTestListener > > listeners)
MCAPI void clearAllTests(::BlockSource &region)
MCAPI void _runTestPreparation(::gametest::BaseGameTestFunction const &testFunction)
MCAPI::std::string runTest(::std::string const &testName, ::Dimension &dimension, ::gametest::TestParameters const &params)
Definition BaseGameTestFunction.h:14
Definition TestParameters.h:16
Definition Alias.h:14