Skip to content
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/IGameEventListener.h"
7#include "mc/world/events/gameevents/PositionSource.h"
8#include "mc/world/level/block/SculkSpreader.h"
9#include "mc/world/level/block/actor/VanillaBlockActor.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockSource;
14class CompoundTag;
15class DataLoadHelper;
16class GameEvent;
17class ILevel;
18class SaveContext;
19struct GameEventContext;
20// clang-format on
21
22class SculkCatalystBlockActor : public ::VanillaBlockActor, public ::IGameEventListener {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 80, ::std::optional<::gsl::final_action<::std::function<void()>>>> mListenerRegistration;
27 ::ll::TypedStorage<8, 24, ::GameEvents::PositionSource> mPositionSource;
28 ::ll::TypedStorage<8, 64, ::SculkSpreader> mSculkSpreader;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
35
36 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
37
38 virtual void tick(::BlockSource& region) /*override*/;
39
40 virtual void onRemoved(::BlockSource& region) /*override*/;
41
42 virtual void handleGameEvent(
43 ::GameEvent const& gameEvent,
44 ::GameEventContext const& gameEventContext,
45 ::BlockSource& region
46 ) /*override*/;
47
48 virtual ::GameEvents::PositionSource const& getPositionSource() const /*override*/;
49
50 virtual uint getRange() const /*override*/;
51
52 virtual ::IGameEventListener::DeliveryMode getDeliveryMode() const /*override*/;
53 // NOLINTEND
54
55public:
56 // virtual function thunks
57 // NOLINTBEGIN
58 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
59
60 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
61
62 MCAPI void $tick(::BlockSource& region);
63
64 MCAPI void $onRemoved(::BlockSource& region);
65
66 MCAPI void
67 $handleGameEvent(::GameEvent const& gameEvent, ::GameEventContext const& gameEventContext, ::BlockSource& region);
68
69 MCFOLD ::GameEvents::PositionSource const& $getPositionSource() const;
70
71 MCFOLD uint $getRange() const;
72
73 MCFOLD ::IGameEventListener::DeliveryMode $getDeliveryMode() const;
74
75
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
82
83 MCAPI static void** $vftableForBlockActor();
84
85 MCNAPI static void** $vftable();
86
88
90 // NOLINTEND
91};
Definition BlockSource.h:71
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition GameEvent.h:8
Definition IGameEventListener.h:13
Definition ILevel.h:221
Definition SaveContext.h:5
Definition SculkCatalystBlockActor.h:22
static MCAPI void ** $vftableForIVanillaTickBlockActorComponent()
static MCAPI void ** $vftable()
static MCAPI void ** $vftableForIVanillaMainBlockActorComponent()
static MCAPI void ** $vftableForIVanillaRenderBlockActorComponent()
Definition GameEventContext.h:14