Skip to content
LeviMC
English
AutoLightDark
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/VanillaBlockActor.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 ::VanillaBlockActor {
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 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCNAPI explicit SculkShriekerBlockActor(::BlockPos const& pos);
65
66 MCNAPI void tryRespond(::BlockSource& region, ::BlockPos const& pos);
67
68 MCNAPI bool tryShriek(::BlockSource& region, ::BlockPos pos, ::Player& provokingPlayer);
69 // NOLINTEND
70
71public:
72 // static functions
73 // NOLINTBEGIN
74 MCNAPI static bool _canRespond(::BlockSource const& region, ::BlockPos const& pos);
75
76 MCNAPI static ::Player* tryGetPlayerInHierarchy(::Actor* actor);
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCNAPI void* $ctor(::BlockPos const& pos);
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCNAPI void $tick(::BlockSource& region);
89
90 MCNAPI void $onRemoved(::BlockSource& region);
91
92 MCNAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
93
94 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
95
96
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
103
104 MCNAPI static void** $vftableForBlockActor();
105
107
109 // NOLINTEND
110};
Definition Actor.h:116
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition ILevel.h:223
Definition Player.h:131
Definition SaveContext.h:5
MCAPI bool tryShriek(::BlockSource &region, ::BlockPos pos, ::Player &provokingPlayer)
MCAPI SculkShriekerBlockActor(::BlockPos const &pos)
static MCAPI void ** $vftableForBlockActor()
MCAPI void * $ctor(::BlockPos const &pos)
MCAPI void $onRemoved(::BlockSource &region)
static MCAPI ::Player * tryGetPlayerInHierarchy(::Actor *actor)
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
static MCAPI void ** $vftableForIVanillaTickBlockActorComponent()
static MCAPI void ** $vftableForIVanillaMainBlockActorComponent()
static MCAPI bool _canRespond(::BlockSource const &region, ::BlockPos const &pos)
static MCAPI void ** $vftableForIVanillaRenderBlockActorComponent()
MCAPI void tryRespond(::BlockSource &region, ::BlockPos const &pos)
MCAPI void $tick(::BlockSource &region)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
Definition SculkShriekerBlockActor.h:29