LeviLamina
Loading...
Searching...
No Matches
LeavesBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockLegacy.h"
7#include "mc/world/level/block/BlockRenderLayer.h"
8#include "mc/world/level/block/BlockSupportType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BaseGameVersion;
14class Block;
15class BlockPos;
16class BlockSource;
17class Experiments;
18class HashedString;
19class Vec3;
22namespace BlockEvents { class BlockRandomTickEvent; }
23// clang-format on
24
25class LeavesBlock : public ::BlockLegacy {
26public:
27 // LeavesBlock inner types declare
28 // clang-format off
29 struct ParticleParams;
30 // clang-format on
31
32 // LeavesBlock inner types define
34 public:
35 // ParticleParams inner types declare
36 // clang-format off
37 struct BiomeTintedColor;
38 // clang-format on
39
40 // ParticleParams inner types define
42
43 public:
44 // member variables
45 // NOLINTBEGIN
48 // NOLINTEND
49
50 public:
51 // prevent constructor by default
52 ParticleParams& operator=(ParticleParams const&);
55 };
56
57public:
58 // member variables
59 // NOLINTBEGIN
60 ::ll::TypedStorage<1, 1, bool> mHasTransparentLeaves;
61 ::ll::TypedStorage<8, 8, ::HashedString const&> mSapling;
62 ::ll::TypedStorage<4, 28, ::std::optional<::LeavesBlock::ParticleParams>> mParticleParams;
63 // NOLINTEND
64
65public:
66 // prevent constructor by default
67 LeavesBlock& operator=(LeavesBlock const&);
70
71public:
72 // virtual functions
73 // NOLINTBEGIN
74 // vIndex: 131
75 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
76
77 // vIndex: 117
78 virtual int getVariant(::Block const& block) const /*override*/;
79
80 // vIndex: 113
81 virtual bool isSeasonTinted(::Block const& block, ::BlockSource& region, ::BlockPos const& p) const /*override*/;
82
83 // vIndex: 138
84 virtual ::BlockRenderLayer getRenderLayer(::Block const&, ::BlockSource& region, ::BlockPos const& pos) const
85 /*override*/;
86
87 // vIndex: 140
88 virtual ::HashedString const& getCullingLayer() const /*override*/;
89
90 // vIndex: 123
91 virtual void animateTick(::BlockAnimateTickData const& tickData) const /*override*/;
92
93 // vIndex: 83
94 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
95
96 // vIndex: 91
97 virtual ::Block const&
98 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
99 /*override*/;
100
101 // vIndex: 114
102 virtual void onGraphicsModeChanged(::BlockGraphicsModeChangeContext const& context) /*override*/;
103
104 // vIndex: 22
105 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
106
107 // vIndex: 23
108 virtual bool canProvideMultifaceSupport(::Block const& block, uchar face) const /*override*/;
109
110 // vIndex: 130
111 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
112
113 // vIndex: 0
114 virtual ~LeavesBlock() /*override*/ = default;
115 // NOLINTEND
116
117public:
118 // member functions
119 // NOLINTBEGIN
120 MCAPI void _die(::BlockSource& region, ::BlockPos const& pos) const;
121
122 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
123 // NOLINTEND
124
125public:
126 // static functions
127 // NOLINTBEGIN
128 MCAPI static void runDecay(::BlockSource& region, ::BlockPos const& pos, int range);
129 // NOLINTEND
130
131public:
132 // static variables
133 // NOLINTBEGIN
134 MCAPI static ::LeavesBlock::ParticleParams const& BIOME_TINTED_LEAVES_PARTICLE_PARAMS();
135 // NOLINTEND
136
137public:
138 // virtual function thunks
139 // NOLINTBEGIN
140 MCAPI void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
141
142 MCAPI int $getVariant(::Block const& block) const;
143
144 MCAPI bool $isSeasonTinted(::Block const& block, ::BlockSource& region, ::BlockPos const& p) const;
145
146 MCAPI ::BlockRenderLayer $getRenderLayer(::Block const&, ::BlockSource& region, ::BlockPos const& pos) const;
147
148 MCAPI ::HashedString const& $getCullingLayer() const;
149
150 MCAPI void $animateTick(::BlockAnimateTickData const& tickData) const;
151
152 MCFOLD bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
153
154 MCAPI ::Block const& $getPlacementBlock(
155 ::Actor const& by,
156 ::BlockPos const& pos,
157 uchar face,
158 ::Vec3 const& clickPos,
159 int itemValue
160 ) const;
161
162 MCAPI void $onGraphicsModeChanged(::BlockGraphicsModeChangeContext const& context);
163
164 MCFOLD bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
165
166 MCFOLD bool $canProvideMultifaceSupport(::Block const& block, uchar face) const;
167
168 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
169 // NOLINTEND
170
171public:
172 // vftables
173 // NOLINTBEGIN
174 MCNAPI static void** $vftable();
175 // NOLINTEND
176};
Definition Actor.h:103
Definition BaseGameVersion.h:8
Definition BlockLegacy.h:86
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition HashedString.h:5
Definition LeavesBlock.h:25
static MCAPI void ** $vftable()
Definition Vec3.h:10
Definition BlockAnimateTickData.h:5
Definition BlockGraphicsModeChangeContext.h:5
Definition BlockRandomTickEvent.h:13
Definition LeavesBlock.h:33
Definition context.h:5
Definition Alias.h:14