LeviLamina
Loading...
Searching...
No Matches
SculkSpreader.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/Block.h"
7
8// auto generated forward declare list
9// clang-format off
10class BlockPos;
11class BlockSource;
12class CompoundTag;
14class Random;
16// clang-format on
17
18class SculkSpreader {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<1, 1, bool> mIsWorldGen;
23 ::ll::TypedStorage<4, 4, int> mGrowthSpawnCost;
24 ::ll::TypedStorage<4, 4, int> mNoGrowthRadius;
25 ::ll::TypedStorage<4, 4, int> mChargeDecayRate;
26 ::ll::TypedStorage<4, 4, int> mAdditionalDecayRate;
27 ::ll::TypedStorage<8, 24, ::std::vector<::SculkChargeCursor>> mCursors;
28 ::ll::TypedStorage<8, 16, ::std::set<::Block const*>> mSculkReplaceableBlocks;
29 // NOLINTEND
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI SculkSpreader();
35
36 MCAPI SculkSpreader(
37 bool isWorldGen,
38 int growthSpawnCost,
39 int noGrowthRadius,
40 int chargeDecayRate,
41 int additionalDecayRate
42 );
43
44 MCAPI void addCursors(::BlockPos const& pos, int charge);
45
46 MCAPI void clearCursors();
47
48 MCAPI ::BlockPos getCursorPosition(int index) const;
49
50 MCFOLD int getMaxCharge() const;
51
52 MCAPI int getNumberOfCursors() const;
53
54 MCAPI int getTotalCharge() const;
55
56 MCAPI void load(::CompoundTag const& tag);
57
58 MCAPI void save(::CompoundTag& tag) const;
59
60 MCAPI void updateCursors(
61 ::IBlockWorldGenAPI& target,
62 ::BlockSource* region,
63 ::BlockPos const& originPos,
64 ::Random& random,
65 bool spreadVeins
66 );
67
68 MCAPI ~SculkSpreader();
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
74 MCAPI void* $ctor();
75
76 MCAPI void*
77 $ctor(bool isWorldGen, int growthSpawnCost, int noGrowthRadius, int chargeDecayRate, int additionalDecayRate);
78 // NOLINTEND
79
80public:
81 // destructor thunk
82 // NOLINTBEGIN
83 MCAPI void $dtor();
84 // NOLINTEND
85};
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition CompoundTag.h:23
Definition IBlockWorldGenAPI.h:25
Definition Random.h:10
Definition SculkChargeCursor.h:20