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