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;
17// clang-format on
18
19namespace ScriptModuleMinecraft {
20
21class ScriptLevelEventListener : public ::EventListenerDispatcher<::LevelEventListener> {
22public:
23 // member variables
24 // NOLINTBEGIN
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 // vIndex: 12
40 virtual ::EventResult onEvent(::LevelGameRuleChangeEvent const& event) /*override*/;
41
42 // vIndex: 11
43 virtual ::EventResult onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent) /*override*/;
44
45 // vIndex: 5
46 virtual ::EventResult onLevelTick(::Level&) /*override*/;
47
48 // vIndex: 2
49 virtual ::EventResult onLevelAddedPlayer(::Player& player) /*override*/;
50
51 // vIndex: 3
52 virtual ::EventResult onLevelRemovedPlayer(::Player& player) /*override*/;
53
54 // vIndex: 8
55 virtual ::EventResult onLevelWeatherChange(
56 ::std::string const& dimension,
57 bool wasRaining,
58 bool wasLightning,
59 bool isRaining,
60 bool isLightning
61 ) /*override*/;
62
63 // vIndex: 4
64 virtual ::EventResult onLevelRemovedActor(::Actor& actor) /*override*/;
65
66 // vIndex: 0
67 virtual ~ScriptLevelEventListener() /*override*/ = default;
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCNAPI ::EventResult $onEvent(::LevelGameRuleChangeEvent const& event);
74
75 MCNAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent);
76
77 MCNAPI ::EventResult $onLevelTick(::Level&);
78
79 MCNAPI ::EventResult $onLevelAddedPlayer(::Player& player);
80
81 MCNAPI ::EventResult $onLevelRemovedPlayer(::Player& player);
82
83 MCNAPI ::EventResult $onLevelWeatherChange(
84 ::std::string const& dimension,
85 bool wasRaining,
86 bool wasLightning,
87 bool isRaining,
88 bool isLightning
89 );
90
91 MCNAPI ::EventResult $onLevelRemovedActor(::Actor& actor);
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
100
101} // namespace ScriptModuleMinecraft
Definition Actor.h:103
Definition EventListenerDispatcher.h:6
Definition Level.h:239
Definition Player.h:120
Definition ScriptLevelEventListener.h:21
MCAPI::EventResult $onLevelWeatherChange(::std::string const &dimension, bool wasRaining, bool wasLightning, bool isRaining, bool isLightning)
MCAPI::EventResult $onLevelAddedPlayer(::Player &player)
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 ScriptingWorldInitializeEvent.h:16
Definition Alias.h:14