LeviLamina
Loading...
Searching...
No Matches
CreakingHeartBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/world/level/block/actor/BlockActor.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class CompoundTag;
16class DataLoadHelper;
17class ILevel;
18class Level;
19class SaveContext;
20// clang-format on
21
22class CreakingHeartBlockActor : public ::BlockActor {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 4, uint> mCooldown;
27 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mSpawnedCreakingID;
28 ::ll::TypedStorage<4, 4, uint> mTrailResidualDuration;
29 ::ll::TypedStorage<4, 4, uint> mElapsedCooldownsWithBlockedPlayer;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 CreakingHeartBlockActor();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual void load(::ILevel& tag, ::CompoundTag const& dataLoadHelper, ::DataLoadHelper&) /*override*/;
40
41 virtual bool save(::CompoundTag& tag, ::SaveContext const&) const /*override*/;
42
43 virtual bool saveItemInstanceData(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
44
45 virtual void tick(::BlockSource& region) /*override*/;
46
47 virtual void onRemoved(::BlockSource& region) /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI explicit CreakingHeartBlockActor(::BlockPos const& pos);
54
55 MCAPI void despawnSpawnedCreaking(::Level& level);
56
57 MCAPI void executeEvent(
58 ::BlockSource& region,
59 ::BlockPos const&,
60 ::Block const& block,
61 ::std::string const& eventName,
62 ::Actor& actor
63 );
64
65 MCAPI int getComparatorSignal(::Level& level) const;
66
67 MCAPI void onSpawnedCreakingDamaged(::BlockSource& region, ::Actor& creaking);
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor(::BlockPos const& pos);
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI void $load(::ILevel& tag, ::CompoundTag const& dataLoadHelper, ::DataLoadHelper&);
80
81 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const&) const;
82
83 MCFOLD bool $saveItemInstanceData(::CompoundTag& tag, ::SaveContext const& saveContext) const;
84
85 MCAPI void $tick(::BlockSource& region);
86
87 MCAPI void $onRemoved(::BlockSource& region);
88
89
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCNAPI static void** $vftable();
96 // NOLINTEND
97};
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition CompoundTag.h:23
static MCAPI void ** $vftable()
Definition DataLoadHelper.h:20
Definition ILevel.h:219
Definition Level.h:255
Definition SaveContext.h:5