LeviLamina
Loading...
Searching...
No Matches
WardenVibrationConfig.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/WeakEntityRef.h"
7#include "mc/world/events/gameevents/VibrationListenerConfig.h"
8#include "mc/world/level/Tick.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BlockPos;
14class BlockSource;
15class GameEvent;
16struct GameEventContext;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mActor;
24 ::ll::TypedStorage<2, 2, ushort> mSignalThrottlingTicks;
25 ::ll::TypedStorage<8, 16, ::std::optional<uint64>> mLastSignalReceivedTick;
26 ::ll::TypedStorage<8, 8, ::Tick> mLastProjectileTick;
27 ::ll::TypedStorage<4, 4, int> mProjectileSuspiciousIntervalTicks;
28 ::ll::TypedStorage<4, 4, float> mTargetProjectileOwnerRange;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 // vIndex: 1
39 virtual void onSignalReceive(
40 ::BlockSource& region,
41 ::BlockPos const& vibrationSourcePos,
42 ::GameEvent const&,
43 ::Actor* vibrationSource,
44 float,
45 uint,
46 ::Actor* projectileOwner
47 ) /*override*/;
48
49 // vIndex: 2
50 virtual bool isValidVibration(::GameEvent const& gameEvent) /*override*/;
51
52 // vIndex: 3
53 virtual bool
54 shouldListen(::BlockSource& region, ::GameEvent const&, ::GameEventContext const& gameEventContext) /*override*/;
55
56 // vIndex: 0
57 virtual ~WardenVibrationConfig() /*override*/ = default;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI WardenVibrationConfig(::Actor& actor, ushort signalThrottlingTicks);
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor(::Actor& actor, ushort signalThrottlingTicks);
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCAPI void $onSignalReceive(
76 ::BlockSource& region,
77 ::BlockPos const& vibrationSourcePos,
78 ::GameEvent const&,
79 ::Actor* vibrationSource,
80 float,
81 uint,
82 ::Actor* projectileOwner
83 );
84
85 MCAPI bool $isValidVibration(::GameEvent const& gameEvent);
86
87 MCAPI bool $shouldListen(::BlockSource& region, ::GameEvent const&, ::GameEventContext const& gameEventContext);
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition Actor.h:102
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition GameEvent.h:8
Definition VibrationListenerConfig.h:14
Definition WardenVibrationConfig.h:19
static MCAPI void ** $vftable()
Definition GameEventContext.h:14