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;
12class Vec3;
13namespace gametest { class BaseGameTestInstance; }
14namespace gametest { struct GameTestError; }
15// clang-format on
16
17class MinecraftReportGameListener : public ::gametest::IGameTestListener,
18 public ::std::enable_shared_from_this<::MinecraftReportGameListener> {
19public:
20 // member variables
21 // NOLINTBEGIN
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 MinecraftReportGameListener& operator=(MinecraftReportGameListener const&);
29 MinecraftReportGameListener(MinecraftReportGameListener const&);
30 MinecraftReportGameListener();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ~MinecraftReportGameListener() /*override*/ = default;
36
37 virtual void onTestStructureLoaded(::gametest::BaseGameTestInstance&) /*override*/;
38
39 virtual void onTestPassed(::gametest::BaseGameTestInstance& testInstance) /*override*/;
40
41 virtual void onTestFailed(::gametest::BaseGameTestInstance& testInstance) /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCNAPI ::std::string _generateErrorDescription(::gametest::GameTestError const& error) const;
48
49 MCNAPI void _reportFailure(::gametest::GameTestError const& error, ::BlockSource& region);
50
51 MCNAPI void _say(::std::string const& chatColor, ::std::string const& text);
52
53 MCNAPI void _showRedBox(::std::string const& text, ::Vec3 const& position);
54
55 MCNAPI void _spawnBeacon(::Block const& glassType);
56
57 MCNAPI void _spawnLectern(::std::string const& text);
58
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
66
68
70
71
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79};
Definition BlockSource.h:73
Definition Block.h:69
MCAPI void $onTestPassed(::gametest::BaseGameTestInstance &testInstance)
MCAPI void _showRedBox(::std::string const &text, ::Vec3 const &position)
MCAPI void _reportFailure(::gametest::GameTestError const &error, ::BlockSource &region)
MCAPI void _spawnLectern(::std::string const &text)
static MCAPI void ** $vftable()
MCAPI void $onTestFailed(::gametest::BaseGameTestInstance &testInstance)
MCAPI void _spawnBeacon(::Block const &glassType)
MCAPI void $onTestStructureLoaded(::gametest::BaseGameTestInstance &)
MCAPI void _visualizeFailedTest(::gametest::GameTestError const &error, ::BlockSource &)
MCAPI::std::string _generateErrorDescription(::gametest::GameTestError const &error) const
MCAPI void _say(::std::string const &chatColor, ::std::string const &text)
Definition Vec3.h:10
Definition BaseGameTestInstance.h:25
Definition IGameTestListener.h:12
Definition GameTestError.h:17
Definition Alias.h:14