LeviLamina
Loading...
Searching...
No Matches
ScriptLevelEventListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/events/EventListenerDispatcher.h"
7#include "mc/world/events/EventResult.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Level;
14class Player;
18// clang-format on
19
20namespace ScriptModuleMinecraft {
21
22class ScriptLevelEventListener : public ::EventListenerDispatcher<::LevelEventListener> {
23public:
24 // member variables
25 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 12
41 virtual ::EventResult onEvent(::LevelGameRuleChangeEvent const& event) /*override*/;
42
43 // vIndex: 13
44 virtual ::EventResult onEvent(::LevelStartLeaveGameEvent const&) /*override*/;
45
46 // vIndex: 11
47 virtual ::EventResult onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent) /*override*/;
48
49 // vIndex: 5
50 virtual ::EventResult onLevelTick(::Level&) /*override*/;
51
52 // vIndex: 2
53 virtual ::EventResult onLevelAddedPlayer(::Player& player) /*override*/;
54
55 // vIndex: 3
56 virtual ::EventResult onLevelRemovedPlayer(::Player& player) /*override*/;
57
58 // vIndex: 8
59 virtual ::EventResult onLevelWeatherChange(
60 ::std::string const& dimension,
61 bool wasRaining,
62 bool wasLightning,
63 bool isRaining,
64 bool isLightning
65 ) /*override*/;
66
67 // vIndex: 4
68 virtual ::EventResult onLevelRemovedActor(::Actor& actor) /*override*/;
69
70 // vIndex: 0
71 virtual ~ScriptLevelEventListener() /*override*/ = default;
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI ::EventResult $onEvent(::LevelGameRuleChangeEvent const& event);
84
85 MCAPI ::EventResult $onEvent(::LevelStartLeaveGameEvent const&);
86
87 MCAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent);
88
89 MCAPI ::EventResult $onLevelTick(::Level&);
90
91 MCAPI ::EventResult $onLevelAddedPlayer(::Player& player);
92
93 MCAPI ::EventResult $onLevelRemovedPlayer(::Player& player);
94
95 MCAPI ::EventResult $onLevelWeatherChange(
96 ::std::string const& dimension,
97 bool wasRaining,
98 bool wasLightning,
99 bool isRaining,
100 bool isLightning
101 );
102
103 MCAPI ::EventResult $onLevelRemovedActor(::Actor& actor);
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCAPI static void** $vftable();
110 // NOLINTEND
111};
112
113} // namespace ScriptModuleMinecraft
Definition Actor.h:104
Definition EventListenerDispatcher.h:6
Definition LevelEventListener.h:16
Definition Level.h:234
Definition Player.h:119
Definition ScriptLevelEventListener.h:22
Definition LevelGameRuleChangeEvent.h:9
Definition LevelStartLeaveGameEvent.h:13
Definition ScriptingWorldInitializeEvent.h:16
Definition Alias.h:14