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#include "mc/world/events/LevelEventListener.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class 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 // virtual function thunks
76 // NOLINTBEGIN
77 MCNAPI ::EventResult $onEvent(::LevelGameRuleChangeEvent const& event);
78
79 MCNAPI ::EventResult $onEvent(::LevelStartLeaveGameEvent const&);
80
81 MCNAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent);
82
83 MCNAPI ::EventResult $onLevelTick(::Level&);
84
85 MCNAPI ::EventResult $onLevelAddedPlayer(::Player& player);
86
87 MCNAPI ::EventResult $onLevelRemovedPlayer(::Player& player);
88
89 MCNAPI ::EventResult $onLevelWeatherChange(
90 ::std::string const& dimension,
91 bool wasRaining,
92 bool wasLightning,
93 bool isRaining,
94 bool isLightning
95 );
96
97 MCNAPI ::EventResult $onLevelRemovedActor(::Actor& actor);
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCNAPI static void** $vftable();
104 // NOLINTEND
105};
106
107} // namespace ScriptModuleMinecraft
Definition Actor.h:103
Definition EventListenerDispatcher.h:6
Definition Level.h:238
Definition Player.h:119
Definition ScriptLevelEventListener.h:22
MCAPI::EventResult $onLevelWeatherChange(::std::string const &dimension, bool wasRaining, bool wasLightning, bool isRaining, bool isLightning)
MCAPI::EventResult $onLevelAddedPlayer(::Player &player)
MCAPI::EventResult $onEvent(::LevelStartLeaveGameEvent const &)
MCAPI::EventResult $onLevelRemovedActor(::Actor &actor)
MCAPI::EventResult $onEvent(::LevelGameRuleChangeEvent const &event)
MCAPI::EventResult $onEvent(::ScriptingWorldInitializeEvent const &scriptingInitializedEvent)
MCAPI::EventResult $onLevelRemovedPlayer(::Player &player)
MCAPI::EventResult $onLevelTick(::Level &)
Definition LevelGameRuleChangeEvent.h:9
Definition LevelStartLeaveGameEvent.h:13
Definition ScriptingWorldInitializeEvent.h:16
Definition Alias.h:14