LeviLamina
Loading...
Searching...
No Matches
IcebergFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/feature/Feature.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockPos;
12class BlockSource;
13class Random;
14// clang-format on
15
16class IcebergFeature : public ::Feature {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::Block const&> mAirBlock;
21 ::ll::TypedStorage<8, 8, ::Block const&> mWaterBlock;
22 ::ll::TypedStorage<8, 8, ::Block const&> mSnowBlock;
23 ::ll::TypedStorage<8, 8, ::Block const&> mPackedIceBlock;
24 ::ll::TypedStorage<8, 8, ::Block const&> mBlueIceBlock;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 IcebergFeature& operator=(IcebergFeature const&);
30 IcebergFeature(IcebergFeature const&);
31 IcebergFeature();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual bool place(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
37
38 virtual ~IcebergFeature() /*override*/ = default;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI void _generateIcebergBlock(
45 ::BlockSource& region,
46 ::Random& random,
47 ::BlockPos const& origin,
48 int height,
49 int xo,
50 int yOff,
51 int zo,
52 int radius,
53 int a,
54 bool snowOnTop,
55 bool isEllipse,
56 float shapeAngle,
57 int ellipseC,
58 ::Block const& blockToPlace
59 ) const;
60
61 MCAPI void carve(
62 int radius,
63 int yOff,
64 ::BlockPos const& globalOrigin,
65 ::BlockSource& region,
66 bool underWater,
67 float angle,
68 ::BlockPos const& localOrigin,
69 int ellipseA,
70 int ellipseC
71 ) const;
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI bool $place(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
78
79
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition Feature.h:18
static MCAPI void ** $vftable()
Definition Random.h:10