LeviLamina
Loading...
Searching...
No Matches
MinecraftReportGameListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/gametest/framework/IGameTestListener.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockSource;
12namespace gametest { class BaseGameTestInstance; }
13namespace gametest { struct GameTestError; }
14// clang-format on
15
17 public ::std::enable_shared_from_this<::MinecraftReportGameListener> {
18public:
19 // member variables
20 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 0
35 virtual ~MinecraftReportGameListener() /*override*/ = default;
36
37 // vIndex: 1
38 virtual void onTestStructureLoaded(::gametest::BaseGameTestInstance& testInstance) /*override*/;
39
40 // vIndex: 2
41 virtual void onTestPassed(::gametest::BaseGameTestInstance& testInstance) /*override*/;
42
43 // vIndex: 3
44 virtual void onTestFailed(::gametest::BaseGameTestInstance& testInstance) /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI ::std::string _generateErrorDescription(::gametest::GameTestError const& error) const;
51
52 MCAPI void _reportFailure(::gametest::GameTestError const& error, ::BlockSource& region);
53
54 MCAPI void _say(::std::string const& chatColor, ::std::string const& text);
55
56 MCAPI void _spawnBeacon(::Block const& glassType);
57
58 MCAPI void _spawnLectern(::std::string const& text);
59
60 MCAPI void _visualizeFailedTest(::gametest::GameTestError const& error, ::BlockSource&);
61 // NOLINTEND
62
63public:
64 // destructor thunk
65 // NOLINTBEGIN
66
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI void $onTestStructureLoaded(::gametest::BaseGameTestInstance& testInstance);
73
74 MCAPI void $onTestPassed(::gametest::BaseGameTestInstance& testInstance);
75
76 MCAPI void $onTestFailed(::gametest::BaseGameTestInstance& testInstance);
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCAPI static void** $vftable();
83 // NOLINTEND
84};
Definition BlockSource.h:67
Definition Block.h:36
Definition MinecraftReportGameListener.h:17
Definition BaseGameTestInstance.h:23
Definition IGameTestListener.h:12
Definition GameTestError.h:12
Definition Alias.h:14