LeviLamina
Loading...
Searching...
No Matches
LightningRodBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/Direction.h"
7#include "mc/world/level/block/BlockSupportType.h"
8#include "mc/world/level/block/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class BaseGameVersion;
15class Block;
16class BlockPos;
17class BlockSource;
18class Experiments;
19class Vec3;
21namespace BlockEvents { class BlockPlaceEvent; }
22namespace BlockEvents { class BlockQueuedTickEvent; }
23// clang-format on
24
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<1, 1, bool> mFlashOnPowered;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 44
36 virtual bool isSignalSource() const /*override*/;
37
38 // vIndex: 67
39 virtual void setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
40
41 // vIndex: 54
42 virtual bool
43 shouldConnectToRedstone(::BlockSource& region, ::BlockPos const& pos, ::Direction::Type direction) const
44 /*override*/;
45
46 // vIndex: 92
47 virtual ::Block const&
48 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
49 /*override*/;
50
51 // vIndex: 16
52 virtual void onProjectileHit(::BlockSource& region, ::BlockPos const& pos, ::Actor const& projectile) const
53 /*override*/;
54
55 // vIndex: 17
56 virtual void onLightningHit(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
57
58 // vIndex: 11
59 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
60
61 // vIndex: 24
62 virtual bool canConnect(::Block const&, uchar, ::Block const&) const /*override*/;
63
64 // vIndex: 123
65 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
66
67 // vIndex: 84
68 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
69
70 // vIndex: 22
71 virtual bool canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const /*override*/;
72
73 // vIndex: 118
74 virtual int getVariant(::Block const& block) const /*override*/;
75
76 // vIndex: 131
77 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
78
79 // vIndex: 0
80 virtual ~LightningRodBlock() /*override*/;
81 // NOLINTEND
82
83public:
84 // member functions
85 // NOLINTBEGIN
86 MCFOLD void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
87
88 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
89 // NOLINTEND
90
91public:
92 // destructor thunk
93 // NOLINTBEGIN
94 MCFOLD void $dtor();
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCFOLD bool $isSignalSource() const;
101
102 MCAPI void $setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const;
103
104 MCFOLD bool
105 $shouldConnectToRedstone(::BlockSource& region, ::BlockPos const& pos, ::Direction::Type direction) const;
106
107 MCFOLD ::Block const& $getPlacementBlock(
108 ::Actor const& by,
109 ::BlockPos const& pos,
110 uchar face,
111 ::Vec3 const& clickPos,
112 int itemValue
113 ) const;
114
115 MCAPI void $onProjectileHit(::BlockSource& region, ::BlockPos const& pos, ::Actor const& projectile) const;
116
117 MCAPI void $onLightningHit(::BlockSource& region, ::BlockPos const& pos) const;
118
119 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
120
121 MCFOLD bool $canConnect(::Block const&, uchar, ::Block const&) const;
122
123 MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
124
125 MCFOLD bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
126
127 MCAPI bool $canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const;
128
129 MCAPI int $getVariant(::Block const& block) const;
130
131 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
132 // NOLINTEND
133
134public:
135 // vftables
136 // NOLINTBEGIN
137 MCNAPI static void** $vftable();
138 // NOLINTEND
139};
Definition AABB.h:18
Definition Actor.h:102
Definition BaseGameVersion.h:8
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition BlockType.h:84
Definition Block.h:37
Definition Experiments.h:14
Definition LightningRodBlock.h:25
static MCAPI void ** $vftable()
Definition Vec3.h:10
Definition BlockAnimateTickData.h:14