LeviLamina
Loading...
Searching...
No Matches
ServerInstanceEventListener.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/core/utility/NonOwnerPointer.h"
7
#include "mc/world/events/EventResult.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
Level
;
12
class
Minecraft
;
13
class
ServerInstance
;
14
struct
ServerInstanceNotificationEvent
;
15
// clang-format on
16
17
class
ServerInstanceEventListener
{
18
public
:
19
// ServerInstanceEventListener inner types define
20
using
EventType
=
::ServerInstanceNotificationEvent
;
21
22
public
:
23
// virtual functions
24
// NOLINTBEGIN
25
// vIndex: 0
26
virtual
~ServerInstanceEventListener
() =
default
;
27
28
// vIndex: 1
29
virtual ::EventResult onServerInitializeStart(
::ServerInstance
& instance);
30
31
// vIndex: 2
32
virtual ::EventResult onServerInitializeEnd(
::ServerInstance
& instance);
33
34
// vIndex: 3
35
virtual ::EventResult onServerMinecraftInitialized(
36
::ServerInstance
& instance,
37
::Bedrock::NotNullNonOwnerPtr<::Minecraft>
const
& minecraft
38
);
39
40
// vIndex: 4
41
virtual ::EventResult onServerLevelInitialized(
::ServerInstance
& instance,
::Level
& level);
42
43
// vIndex: 5
44
virtual ::EventResult onServerUpdateStart(
::ServerInstance
& instance);
45
46
// vIndex: 6
47
virtual ::EventResult onServerUpdateEnd(
::ServerInstance
& instance);
48
49
// vIndex: 7
50
virtual ::EventResult onServerSuspend(
::ServerInstance
& instance);
51
52
// vIndex: 8
53
virtual ::EventResult onServerResume(
::ServerInstance
& instance);
54
55
// vIndex: 9
56
virtual ::EventResult onServerThreadStarted(
::ServerInstance
& instance);
57
58
// vIndex: 10
59
virtual ::EventResult onServerThreadStopped(
::ServerInstance
& instance);
60
61
// vIndex: 11
62
virtual ::EventResult onStartLeaveGame(
::ServerInstance
& instance);
63
64
// vIndex: 12
65
virtual ::EventResult onEvent(
::ServerInstanceNotificationEvent
const
& event);
66
// NOLINTEND
67
68
public
:
69
// virtual function thunks
70
// NOLINTBEGIN
71
MCFOLD ::EventResult $onServerInitializeStart(
::ServerInstance
& instance);
72
73
MCFOLD ::EventResult $onServerInitializeEnd(
::ServerInstance
& instance);
74
75
MCFOLD ::EventResult $onServerMinecraftInitialized(
76
::ServerInstance
& instance,
77
::Bedrock::NotNullNonOwnerPtr<::Minecraft>
const
& minecraft
78
);
79
80
MCFOLD ::EventResult $onServerLevelInitialized(
::ServerInstance
& instance,
::Level
& level);
81
82
MCFOLD ::EventResult $onServerUpdateStart(
::ServerInstance
& instance);
83
84
MCFOLD ::EventResult $onServerUpdateEnd(
::ServerInstance
& instance);
85
86
MCFOLD ::EventResult $onServerSuspend(
::ServerInstance
& instance);
87
88
MCFOLD ::EventResult $onServerResume(
::ServerInstance
& instance);
89
90
MCFOLD ::EventResult $onServerThreadStarted(
::ServerInstance
& instance);
91
92
MCFOLD ::EventResult $onServerThreadStopped(
::ServerInstance
& instance);
93
94
MCFOLD ::EventResult $onStartLeaveGame(
::ServerInstance
& instance);
95
96
MCFOLD ::EventResult $onEvent(
::ServerInstanceNotificationEvent
const
& event);
97
// NOLINTEND
98
};
Level
Definition
Level.h:238
Minecraft
Definition
Minecraft.h:55
ServerInstanceEventListener
Definition
ServerInstanceEventListener.h:17
ServerInstance
Definition
ServerInstance.h:71
ServerInstanceNotificationEvent
Definition
ServerInstanceNotificationEvent.h:17
src
mc
world
events
ServerInstanceEventListener.h
Generated on Mon Jun 30 2025 05:54:02 for LeviLamina by
1.12.0