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
// destructor thunk
70
// NOLINTBEGIN
71
72
// NOLINTEND
73
74
public
:
75
// virtual function thunks
76
// NOLINTBEGIN
77
MCFOLD ::EventResult $onServerInitializeStart(
::ServerInstance
& instance);
78
79
MCFOLD ::EventResult $onServerInitializeEnd(
::ServerInstance
& instance);
80
81
MCFOLD ::EventResult $onServerMinecraftInitialized(
82
::ServerInstance
& instance,
83
::Bedrock::NotNullNonOwnerPtr<::Minecraft>
const
& minecraft
84
);
85
86
MCFOLD ::EventResult $onServerLevelInitialized(
::ServerInstance
& instance,
::Level
& level);
87
88
MCFOLD ::EventResult $onServerUpdateStart(
::ServerInstance
& instance);
89
90
MCFOLD ::EventResult $onServerUpdateEnd(
::ServerInstance
& instance);
91
92
MCFOLD ::EventResult $onServerSuspend(
::ServerInstance
& instance);
93
94
MCFOLD ::EventResult $onServerResume(
::ServerInstance
& instance);
95
96
MCFOLD ::EventResult $onServerThreadStarted(
::ServerInstance
& instance);
97
98
MCFOLD ::EventResult $onServerThreadStopped(
::ServerInstance
& instance);
99
100
MCFOLD ::EventResult $onStartLeaveGame(
::ServerInstance
& instance);
101
102
MCFOLD ::EventResult $onEvent(
::ServerInstanceNotificationEvent
const
& event);
103
// NOLINTEND
104
};
Level
Definition
Level.h:234
Minecraft
Definition
Minecraft.h:53
ServerInstanceEventListener
Definition
ServerInstanceEventListener.h:17
ServerInstance
Definition
ServerInstance.h:65
ServerInstanceNotificationEvent
Definition
ServerInstanceNotificationEvent.h:17
src
mc
world
events
ServerInstanceEventListener.h
Generated on Sat Apr 26 2025 05:56:09 for LeviLamina by
1.12.0