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
19class WardenVibrationConfig : public ::VibrationListenerConfig {
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
33 WardenVibrationConfig();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual void onSignalReceive(
39 ::BlockSource& region,
40 ::BlockPos const& vibrationSourcePos,
41 ::GameEvent const& vibrationSource,
42 ::Actor* projectileOwner,
43 float,
44 uint,
45 ::Actor*
46 ) /*override*/;
47
48 virtual bool isValidVibration(::GameEvent const& gameEvent) /*override*/;
49
50 virtual bool
51 shouldListen(::BlockSource& region, ::GameEvent const& gameEventContext, ::GameEventContext const&) /*override*/;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI WardenVibrationConfig(::Actor& actor, ushort signalThrottlingTicks);
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCAPI void* $ctor(::Actor& actor, ushort signalThrottlingTicks);
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCAPI void $onSignalReceive(
70 ::BlockSource& region,
71 ::BlockPos const& vibrationSourcePos,
72 ::GameEvent const& vibrationSource,
73 ::Actor* projectileOwner,
74 float,
75 uint,
76 ::Actor*
77 );
78
79 MCAPI bool $isValidVibration(::GameEvent const& gameEvent);
80
81 MCAPI bool $shouldListen(::BlockSource& region, ::GameEvent const& gameEventContext, ::GameEventContext const&);
82
83
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCAPI static void** $vftable();
90 // NOLINTEND
91};
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition GameEvent.h:9
Definition VibrationListenerConfig.h:14
Definition GameEventContext.h:14