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 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI explicit SculkCatalystBlockActor(::BlockPos const& pos);
66
67 MCAPI void _tryConsumeOnDeathExperience(::Level& level, ::Actor& actor);
68
69 MCFOLD ::SculkSpreader& getSculkSpreader();
70 // NOLINTEND
71
72public:
73 // static functions
74 // NOLINTBEGIN
75 MCAPI static void _trySendItSpreadsEventPacket(::Actor& actor);
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCAPI void* $ctor(::BlockPos const& pos);
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
88
89 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
90
91 MCAPI void $tick(::BlockSource& region);
92
93 MCAPI void $onRemoved(::BlockSource& region);
94
95 MCAPI void
96 $handleGameEvent(::GameEvent const& gameEvent, ::GameEventContext const& gameEventContext, ::BlockSource& region);
97
98 MCFOLD ::GameEvents::PositionSource const& $getPositionSource() const;
99
100 MCFOLD uint $getRange() const;
101
102 MCFOLD ::GameEventListener::DeliveryMode $getDeliveryMode() const;
103
104
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCAPI static void** $vftableForBlockActor();
111
112 MCAPI static void** $vftableForGameEventListener();
113 // NOLINTEND
114};
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition GameEventListener.h:13
Definition GameEvent.h:9
Definition ILevel.h:219
Definition Level.h:255
Definition SaveContext.h:5
Definition GameEventContext.h:14