LeviLamina
Loading...
Searching...
No Matches
VanillaServerGameplayEventListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ActorInitializationMethod.h"
7#include "mc/world/events/ActorEventListener.h"
8#include "mc/world/events/BlockEventListener.h"
9#include "mc/world/events/EventListenerDispatcher.h"
10#include "mc/world/events/EventResult.h"
11#include "mc/world/events/LevelEventListener.h"
12#include "mc/world/events/PlayerEventListener.h"
13
14// auto generated forward declare list
15// clang-format off
16class Actor;
17class Block;
18class BlockPos;
19class Player;
20struct ActorHurtEvent;
23// clang-format on
24
26 public ::EventListenerDispatcher<::BlockEventListener>,
27 public ::EventListenerDispatcher<::PlayerEventListener>,
28 public ::EventListenerDispatcher<::LevelEventListener> {
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 34
33 virtual ::EventResult onEvent(::ActorHurtEvent const& actorHurtEvent) /*override*/;
34
35 // vIndex: 63
36 virtual ::EventResult onEvent(::PlayerDamageEvent const& playerDamageEvent) /*override*/;
37
38 // vIndex: 57
39 virtual ::EventResult onEvent(::PlayerOpenContainerEvent const& playerOpenContainerEvent) /*override*/;
40
41 // vIndex: 8
42 virtual ::EventResult onActorCreationAttemptFailed(::Actor& actor, ::std::string_view message) /*override*/;
43
44 // vIndex: 7
45 virtual ::EventResult onActorCreated(::Actor& actor, ::ActorInitializationMethod initializationMethod) /*override*/;
46
47 // vIndex: 7
48 virtual ::EventResult onBlockInteractedWith(::Player& player, ::BlockPos const& blockPos) /*override*/;
49
50 // vIndex: 1
51 virtual ::EventResult onBlockPlacedByPlayer(
52 ::Player& player,
53 ::Block const& placedBlock,
54 ::BlockPos const& pos,
55 bool isUnderwater
56 ) /*override*/;
57
58 // vIndex: 0
59 virtual ~VanillaServerGameplayEventListener() /*override*/ = default;
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCFOLD ::EventResult $onEvent(::ActorHurtEvent const& actorHurtEvent);
66
67 MCFOLD ::EventResult $onEvent(::PlayerDamageEvent const& playerDamageEvent);
68
69 MCAPI ::EventResult $onEvent(::PlayerOpenContainerEvent const& playerOpenContainerEvent);
70
71 MCAPI ::EventResult $onActorCreationAttemptFailed(::Actor& actor, ::std::string_view message);
72
73 MCAPI ::EventResult $onActorCreated(::Actor& actor, ::ActorInitializationMethod initializationMethod);
74
75 MCAPI ::EventResult $onBlockInteractedWith(::Player& player, ::BlockPos const& blockPos);
76
77 MCAPI ::EventResult
78 $onBlockPlacedByPlayer(::Player& player, ::Block const& placedBlock, ::BlockPos const& pos, bool isUnderwater);
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
85
87
89
91 // NOLINTEND
92};
Definition Actor.h:103
Definition BlockPos.h:18
Definition Block.h:38
Definition EventListenerDispatcher.h:6
Definition Player.h:119
Definition VanillaServerGameplayEventListener.h:28
static MCAPI void ** $vftableForEventListenerDispatcherBlockEventListener()
static MCAPI void ** $vftableForEventListenerDispatcherLevelEventListener()
static MCAPI void ** $vftableForEventListenerDispatcherActorEventListener()
static MCAPI void ** $vftableForEventListenerDispatcherPlayerEventListener()
Definition ActorHurtEvent.h:13
Definition PlayerDamageEvent.h:14
Definition PlayerOpenContainerEvent.h:11