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 Vec3;
20namespace BlockEvents { class BlockPlaceEvent; }
21namespace BlockEvents { class BlockQueuedTickEvent; }
22// clang-format on
23
24class LightningRodBlock : public ::BlockType {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<1, 1, bool> mFlashOnPowered;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 LightningRodBlock();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual bool isSignalSource() const /*override*/;
39
40 virtual void setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
41
42 virtual bool shouldConnectToRedstone(::BlockSource&, ::BlockPos const&, ::Direction::Type) const /*override*/;
43
44 virtual ::Block const&
45 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
46 /*override*/;
47
48 virtual void onProjectileHit(::BlockSource& region, ::BlockPos const& pos, ::Actor const& projectile) const
49 /*override*/;
50
51 virtual void onLightningHit(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
52
53 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
54
55 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
56
57 virtual bool breaksFallingBlocks(::Block const& version, ::BaseGameVersion const) const /*override*/;
58
59 virtual bool canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const /*override*/;
60
61 virtual int getVariant(::Block const& block) const /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI LightningRodBlock(::std::string const& nameId, int id, bool flashOnPowered);
68
69 MCFOLD void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
70
71 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor(::std::string const& nameId, int id, bool flashOnPowered);
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCFOLD bool $isSignalSource() const;
84
85 MCAPI void $setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const;
86
87 MCFOLD bool $shouldConnectToRedstone(::BlockSource&, ::BlockPos const&, ::Direction::Type) const;
88
89 MCFOLD ::Block const& $getPlacementBlock(
90 ::Actor const& by,
91 ::BlockPos const& pos,
92 uchar face,
93 ::Vec3 const& clickPos,
94 int itemValue
95 ) const;
96
97 MCAPI void $onProjectileHit(::BlockSource& region, ::BlockPos const& pos, ::Actor const& projectile) const;
98
99 MCAPI void $onLightningHit(::BlockSource& region, ::BlockPos const& pos) const;
100
101 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
102
103 MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
104
105 MCFOLD bool $breaksFallingBlocks(::Block const& version, ::BaseGameVersion const) const;
106
107 MCAPI bool $canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const;
108
109 MCAPI int $getVariant(::Block const& block) const;
110
111
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCAPI static void** $vftable();
118 // NOLINTEND
119};
Definition AABB.h:18
Definition Actor.h:125
Definition BaseGameVersion.h:13
Definition BlockPlaceEvent.h:18
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Vec3.h:10
Definition BlockAnimateTickData.h:14