LeviLamina
Loading...
Searching...
No Matches
CreakingHeartBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/ActorBlockBase.h"
7#include "mc/world/level/block/RotatedPillarBlock.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class Player;
16namespace BlockEvents { class ActorEvent; }
17namespace BlockEvents { class BlockPlaceEvent; }
18namespace BlockEvents { class BlockQueuedTickEvent; }
19// clang-format on
20
21class CreakingHeartBlock : public ::ActorBlockBase<::RotatedPillarBlock> {
22public:
23 // prevent constructor by default
24 CreakingHeartBlock();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual void onFillBlock(::BlockSource& region, ::BlockPos const& pos, ::Block const& block) const /*override*/;
30
31 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
32 /*override*/;
33
34 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
35 /*override*/;
36
37 virtual void onExploded(::BlockSource& region, ::BlockPos const& pos, ::Actor* entitySource) const /*override*/;
38
39 virtual int getVariant(::Block const& block) const /*override*/;
40
41 virtual bool hasComparatorSignal() const /*override*/;
42
43 virtual int getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar) const
44 /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI CreakingHeartBlock(::std::string const& nameId, int id);
51
52 MCFOLD void _onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
53
54 MCAPI bool isInPaleOakPillar(::BlockSource const& region, ::BlockPos const& pos) const;
55
56 MCAPI void onEvent(::BlockEvents::ActorEvent& event) const;
57
58 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCAPI void* $ctor(::std::string const& nameId, int id);
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCAPI void $onFillBlock(::BlockSource& region, ::BlockPos const& pos, ::Block const& block) const;
71
72 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
73
74 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
75
76 MCAPI void $onExploded(::BlockSource& region, ::BlockPos const& pos, ::Actor* entitySource) const;
77
78 MCAPI int $getVariant(::Block const& block) const;
79
80 MCFOLD bool $hasComparatorSignal() const;
81
82 MCAPI int $getComparatorSignal(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, uchar) const;
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCAPI static void** $vftable();
91 // NOLINTEND
92};
Definition ActorBlockBase.h:6
Definition Actor.h:125
Definition ActorEvent.h:17
Definition BlockPlaceEvent.h:18
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Player.h:137