LeviLamina
Loading...
Searching...
No Matches
SculkShriekerBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/events/gameevents/VibrationListener.h"
7#include "mc/world/level/block/actor/BlockActor.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockPos;
13class BlockSource;
14class CompoundTag;
15class DataLoadHelper;
16class ILevel;
17class Player;
18class SaveContext;
19// clang-format on
20
21class SculkShriekerBlockActor : public ::BlockActor {
22public:
23 // SculkShriekerBlockActor inner types declare
24 // clang-format off
25 struct QueuedResponse;
26 // clang-format on
27
28 // SculkShriekerBlockActor inner types define
30 public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<4, 4, int> threatLevel;
34 // NOLINTEND
35 };
36
37public:
38 // member variables
39 // NOLINTBEGIN
40 ::ll::TypedStorage<8, 200, ::VibrationListener> mVibrationListener;
41 ::ll::TypedStorage<8, 80, ::std::optional<::gsl::final_action<::std::function<void()>>>> mListenerRegistration;
42 ::ll::TypedStorage<4, 8, ::std::optional<::SculkShriekerBlockActor::QueuedResponse>> mQueuedResponse;
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 SculkShriekerBlockActor();
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual void tick(::BlockSource& region) /*override*/;
53
54 virtual void onRemoved(::BlockSource& region) /*override*/;
55
56 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
57
58 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
59
60 virtual ~SculkShriekerBlockActor() /*override*/ = default;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI explicit SculkShriekerBlockActor(::BlockPos const& pos);
67
68 MCAPI void tryRespond(::BlockSource& region, ::BlockPos const& pos);
69
70 MCAPI bool tryShriek(::BlockSource& region, ::BlockPos pos, ::Player& provokingPlayer);
71 // NOLINTEND
72
73public:
74 // static functions
75 // NOLINTBEGIN
76 MCAPI static bool _canRespond(::BlockSource const& region, ::BlockPos const& pos);
77
78 MCAPI static ::Player* tryGetPlayerInHierarchy(::Actor* actor);
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCAPI void* $ctor(::BlockPos const& pos);
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCFOLD void $tick(::BlockSource& region);
91
92 MCFOLD void $onRemoved(::BlockSource& region);
93
94 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
95
96 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
97
98
99 // NOLINTEND
100
101public:
102 // vftables
103 // NOLINTBEGIN
104 MCNAPI static void** $vftable();
105 // NOLINTEND
106};
Definition Actor.h:105
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition ILevel.h:214
Definition Player.h:125
Definition SaveContext.h:5
static MCAPI void ** $vftable()
Definition SculkShriekerBlockActor.h:29