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/events/EventListenerDispatcher.h"
7#include "mc/world/events/EventResult.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
13class Block;
15class BlockPos;
17class Player;
19struct ActorHurtEvent;
22// clang-format on
23
25 public ::EventListenerDispatcher<::BlockEventListener>,
26 public ::EventListenerDispatcher<::PlayerEventListener>,
27 public ::EventListenerDispatcher<::LevelEventListener> {
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 32
32 virtual ::EventResult onEvent(::ActorHurtEvent const& actorHurtEvent) /*override*/;
33
34 // vIndex: 64
35 virtual ::EventResult onEvent(::PlayerDamageEvent const& playerDamageEvent) /*override*/;
36
37 // vIndex: 58
38 virtual ::EventResult onEvent(::PlayerOpenContainerEvent const& playerOpenContainerEvent) /*override*/;
39
40 // vIndex: 8
41 virtual ::EventResult onActorCreationAttemptFailed(::Actor& actor, ::std::string_view message) /*override*/;
42
43 // vIndex: 7
44 virtual ::EventResult onBlockInteractedWith(::Player& player, ::BlockPos const& blockPos) /*override*/;
45
46 // vIndex: 1
47 virtual ::EventResult onBlockPlacedByPlayer(
48 ::Player& player,
49 ::Block const& placedBlock,
50 ::BlockPos const& pos,
51 bool isUnderwater
52 ) /*override*/;
53
54 // vIndex: 0
55 virtual ~VanillaServerGameplayEventListener() /*override*/ = default;
56 // NOLINTEND
57
58public:
59 // destructor thunk
60 // NOLINTBEGIN
61
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCFOLD ::EventResult $onEvent(::ActorHurtEvent const& actorHurtEvent);
68
69 MCFOLD ::EventResult $onEvent(::PlayerDamageEvent const& playerDamageEvent);
70
71 MCAPI ::EventResult $onEvent(::PlayerOpenContainerEvent const& playerOpenContainerEvent);
72
73 MCAPI ::EventResult $onActorCreationAttemptFailed(::Actor& actor, ::std::string_view message);
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
84 MCAPI static void** $vftableForEventListenerDispatcherLevelEventListener();
85
86 MCAPI static void** $vftableForEventListenerDispatcherActorEventListener();
87
88 MCAPI static void** $vftableForEventListenerDispatcherBlockEventListener();
89
90 MCAPI static void** $vftableForEventListenerDispatcherPlayerEventListener();
91 // NOLINTEND
92};
Definition ActorEventListener.h:20
Definition Actor.h:104
Definition BlockEventListener.h:22
Definition BlockPos.h:18
Definition Block.h:36
Definition EventListenerDispatcher.h:6
Definition LevelEventListener.h:16
Definition PlayerEventListener.h:29
Definition Player.h:119
Definition VanillaServerGameplayEventListener.h:27
Definition ActorHurtEvent.h:11
Definition PlayerDamageEvent.h:14
Definition PlayerOpenContainerEvent.h:15