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<1, 1, bool> mHasFastAlphaTest;
62 ::ll::TypedStorage<8, 8, ::HashedString const&> mSapling;
63 ::ll::TypedStorage<4, 28, ::std::optional<::LeavesBlock::ParticleParams>> mParticleParams;
64 ::ll::TypedStorage<1, 1, bool> mUseSeasonsOpaqueLayerIfSnowingBiome;
65 // NOLINTEND
66
67public:
68 // prevent constructor by default
69 LeavesBlock& operator=(LeavesBlock const&);
72
73public:
74 // virtual functions
75 // NOLINTBEGIN
76 // vIndex: 131
77 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
78
79 // vIndex: 117
80 virtual int getVariant(::Block const& block) const /*override*/;
81
82 // vIndex: 113
83 virtual bool isSeasonTinted(::Block const& block, ::BlockSource& region, ::BlockPos const& p) const /*override*/;
84
85 // vIndex: 139
86 virtual ::BlockRenderLayer getRenderLayer(::Block const&, ::BlockSource& region, ::BlockPos const& pos) const
87 /*override*/;
88
89 // vIndex: 141
90 virtual ::HashedString const& getCullingLayer() const /*override*/;
91
92 // vIndex: 123
93 virtual void animateTick(::BlockAnimateTickData const& tickData) const /*override*/;
94
95 // vIndex: 83
96 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
97
98 // vIndex: 91
99 virtual ::Block const&
100 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
101 /*override*/;
102
103 // vIndex: 114
104 virtual void onGraphicsModeChanged(::BlockGraphicsModeChangeContext const& context) /*override*/;
105
106 // vIndex: 22
107 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
108
109 // vIndex: 23
110 virtual bool canProvideMultifaceSupport(::Block const& block, uchar face) const /*override*/;
111
112 // vIndex: 130
113 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
114
115 // vIndex: 0
116 virtual ~LeavesBlock() /*override*/ = default;
117 // NOLINTEND
118
119public:
120 // member functions
121 // NOLINTBEGIN
122 MCAPI void _die(::BlockSource& region, ::BlockPos const& pos) const;
123
124 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
125
126 MCAPI ::LeavesBlock& setUseSeasonsOpaqueLayerIfSnowingBiome(bool enabled);
127 // NOLINTEND
128
129public:
130 // static functions
131 // NOLINTBEGIN
132 MCAPI static void runDecay(::BlockSource& region, ::BlockPos const& pos, int range);
133 // NOLINTEND
134
135public:
136 // static variables
137 // NOLINTBEGIN
138 MCAPI static ::LeavesBlock::ParticleParams const& BIOME_TINTED_LEAVES_PARTICLE_PARAMS();
139 // NOLINTEND
140
141public:
142 // virtual function thunks
143 // NOLINTBEGIN
144 MCAPI void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
145
146 MCAPI int $getVariant(::Block const& block) const;
147
148 MCAPI bool $isSeasonTinted(::Block const& block, ::BlockSource& region, ::BlockPos const& p) const;
149
150 MCAPI ::BlockRenderLayer $getRenderLayer(::Block const&, ::BlockSource& region, ::BlockPos const& pos) const;
151
152 MCAPI ::HashedString const& $getCullingLayer() const;
153
154 MCAPI void $animateTick(::BlockAnimateTickData const& tickData) const;
155
156 MCFOLD bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
157
158 MCAPI ::Block const& $getPlacementBlock(
159 ::Actor const& by,
160 ::BlockPos const& pos,
161 uchar face,
162 ::Vec3 const& clickPos,
163 int itemValue
164 ) const;
165
166 MCAPI void $onGraphicsModeChanged(::BlockGraphicsModeChangeContext const& context);
167
168 MCFOLD bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
169
170 MCFOLD bool $canProvideMultifaceSupport(::Block const& block, uchar face) const;
171
172 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
173 // NOLINTEND
174
175public:
176 // vftables
177 // NOLINTBEGIN
178 MCNAPI static void** $vftable();
179 // NOLINTEND
180};
Definition Actor.h:103
Definition BaseGameVersion.h:8
Definition BlockLegacy.h:88
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