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
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
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 // vIndex: 9
53 virtual void tick(::BlockSource& region) /*override*/;
54
55 // vIndex: 13
56 virtual void onRemoved(::BlockSource& region) /*override*/;
57
58 // vIndex: 1
59 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
60
61 // vIndex: 2
62 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
63
64 // vIndex: 0
65 virtual ~SculkShriekerBlockActor() /*override*/;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCAPI explicit SculkShriekerBlockActor(::BlockPos const& pos);
72
73 MCAPI void tryRespond(::BlockSource& region, ::BlockPos const& pos);
74
75 MCAPI bool tryShriek(::BlockSource& region, ::BlockPos pos, ::Player& provokingPlayer);
76 // NOLINTEND
77
78public:
79 // static functions
80 // NOLINTBEGIN
81 MCAPI static bool _canRespond(::BlockSource const& region, ::BlockPos const& pos);
82
83 MCAPI static ::Player* tryGetPlayerInHierarchy(::Actor* actor);
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCAPI void* $ctor(::BlockPos const& pos);
90 // NOLINTEND
91
92public:
93 // destructor thunk
94 // NOLINTBEGIN
95 MCFOLD void $dtor();
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCFOLD void $tick(::BlockSource& region);
102
103 MCFOLD void $onRemoved(::BlockSource& region);
104
105 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
106
107 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCNAPI static void** $vftable();
114 // NOLINTEND
115};
Definition Actor.h:102
Definition BlockActor.h:32
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:207
Definition Player.h:123
Definition SaveContext.h:5
Definition SculkShriekerBlockActor.h:21
static MCAPI void ** $vftable()
Definition SculkShriekerBlockActor.h:29