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 HashedString;
18class Random;
19class Vec3;
22// clang-format on
23
24class LeavesBlock : public ::BlockLegacy {
25public:
26 // LeavesBlock inner types declare
27 // clang-format off
28 struct ParticleParams;
29 // clang-format on
30
31 // LeavesBlock inner types define
33 public:
34 // member variables
35 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
42 ParticleParams& operator=(ParticleParams const&);
44
45 public:
46 // member functions
47 // NOLINTBEGIN
49
50 MCAPI ~ParticleParams();
51 // NOLINTEND
52
53 public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCAPI void* $ctor(::LeavesBlock::ParticleParams const&);
57 // NOLINTEND
58
59 public:
60 // destructor thunk
61 // NOLINTBEGIN
62 MCFOLD void $dtor();
63 // NOLINTEND
64 };
65
66public:
67 // member variables
68 // NOLINTBEGIN
69 ::ll::TypedStorage<1, 1, bool> mHasTransparentLeaves;
70 ::ll::TypedStorage<1, 1, bool> mHasFastAlphaTest;
71 ::ll::TypedStorage<8, 8, ::HashedString const&> mSapling;
72 ::ll::TypedStorage<8, 72, ::std::optional<::LeavesBlock::ParticleParams>> mParticleParams;
73 ::ll::TypedStorage<1, 1, bool> mUseSeasonsOpaqueLayerIfSnowingBiome;
74 // NOLINTEND
75
76public:
77 // virtual functions
78 // NOLINTBEGIN
79 // vIndex: 132
80 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
81
82 // vIndex: 118
83 virtual int getVariant(::Block const& block) const /*override*/;
84
85 // vIndex: 114
86 virtual bool isSeasonTinted(::Block const& block, ::BlockSource& region, ::BlockPos const& p) const /*override*/;
87
88 // vIndex: 143
89 virtual ::BlockRenderLayer getRenderLayer(::Block const&, ::BlockSource& region, ::BlockPos const& pos) const
90 /*override*/;
91
92 // vIndex: 137
93 virtual void randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
94
95 // vIndex: 124
96 virtual void animateTick(::BlockAnimateTickData const& tickData) const /*override*/;
97
98 // vIndex: 84
99 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
100
101 // vIndex: 92
102 virtual ::Block const&
103 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
104 /*override*/;
105
106 // vIndex: 115
107 virtual void onGraphicsModeChanged(::BlockGraphicsModeChangeContext const& context) /*override*/;
108
109 // vIndex: 23
110 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
111
112 // vIndex: 24
113 virtual bool canProvideMultifaceSupport(::Block const& block, uchar face) const /*override*/;
114
115 // vIndex: 0
116 virtual ~LeavesBlock() /*override*/ = default;
117 // NOLINTEND
118
119public:
120 // member functions
121 // NOLINTBEGIN
122 MCAPI LeavesBlock(
123 ::std::string const& nameId,
124 int id,
125 ::HashedString const& sapling,
126 ::std::optional<::LeavesBlock::ParticleParams> particleParams
127 );
128
129 MCAPI void _die(::BlockSource& region, ::BlockPos const& pos) const;
130
131 MCAPI ::LeavesBlock& setUseSeasonsOpaqueLayerIfSnowingBiome(bool enabled);
132 // NOLINTEND
133
134public:
135 // static functions
136 // NOLINTBEGIN
137 MCAPI static void runDecay(::BlockSource& region, ::BlockPos const& pos, int range);
138 // NOLINTEND
139
140public:
141 // static variables
142 // NOLINTBEGIN
143 MCAPI static ::LeavesBlock::ParticleParams const& BIOME_TINTED_LEAVES_PARTICLE_PARAMS();
144 // NOLINTEND
145
146public:
147 // constructor thunks
148 // NOLINTBEGIN
149 MCAPI void* $ctor(
150 ::std::string const& nameId,
151 int id,
152 ::HashedString const& sapling,
153 ::std::optional<::LeavesBlock::ParticleParams> particleParams
154 );
155 // NOLINTEND
156
157public:
158 // destructor thunk
159 // NOLINTBEGIN
160
161 // NOLINTEND
162
163public:
164 // virtual function thunks
165 // NOLINTBEGIN
166 MCAPI void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
167
168 MCAPI int $getVariant(::Block const& block) const;
169
170 MCAPI bool $isSeasonTinted(::Block const& block, ::BlockSource& region, ::BlockPos const& p) const;
171
172 MCAPI ::BlockRenderLayer $getRenderLayer(::Block const&, ::BlockSource& region, ::BlockPos const& pos) const;
173
174 MCAPI void $randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
175
176 MCAPI void $animateTick(::BlockAnimateTickData const& tickData) const;
177
178 MCFOLD bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
179
180 MCAPI ::Block const&
181 $getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue)
182 const;
183
184 MCAPI void $onGraphicsModeChanged(::BlockGraphicsModeChangeContext const& context);
185
186 MCFOLD bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
187
188 MCFOLD bool $canProvideMultifaceSupport(::Block const& block, uchar face) const;
189 // NOLINTEND
190
191public:
192 // vftables
193 // NOLINTBEGIN
194 MCAPI static void** $vftable();
195 // NOLINTEND
196};
Definition Actor.h:104
Definition BaseGameVersion.h:13
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition HashedString.h:5
Definition LeavesBlock.h:24
Definition Random.h:16
Definition Vec3.h:10
Definition BlockAnimateTickData.h:5
Definition BlockGraphicsModeChangeContext.h:5
Definition LeavesBlock.h:32
Definition context.h:5
Definition Alias.h:14