LeviLamina
Loading...
Searching...
No Matches
StructurePoolBlockPredicateCappedRandomBlockReplacement.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/structure/structurepools/IStructurePoolBlockPredicate.h"
7#include "mc/world/level/levelgen/structure/structurepools/StructurePoolBlockPredicateType.h"
8
9// auto generated forward declare list
10// clang-format off
11class Block;
12class BlockPos;
13class BlockSource;
14class HashedString;
15class IRandom;
16class Randomize;
17namespace Bedrock::Threading { class Mutex; }
18namespace Util { class XXHash; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<4, 4, uint const> mMaximumAmount;
26 ::ll::TypedStorage<8, 16, ::std::map<::HashedString, ::HashedString> const> mBlockMappings;
27 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPos>> mCandidatePositions;
28 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mCandidatePositionsLock;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 2
35 virtual bool test(::Block const& block, ::Randomize&) const /*override*/;
36
37 // vIndex: 1
38 virtual bool test(::BlockPos const& worldPos, ::BlockPos const&, ::Randomize&) const /*override*/;
39
40 // vIndex: 3
41 virtual bool finalize(::BlockSource& region, ::IRandom& random) /*override*/;
42
43 // vIndex: 5
44 virtual ::StructurePoolBlockPredicateType getType() const /*override*/;
45
46 // vIndex: 6
47 virtual void appendMetadataKey(::Util::XXHash& hash) const /*override*/;
48
49 // vIndex: 7
50 virtual bool operator==(::StructurePoolBlockPredicateCappedRandomBlockReplacement const& other) const;
51
52 // vIndex: 8
53 virtual bool operator!=(::StructurePoolBlockPredicateCappedRandomBlockReplacement const& other) const;
54
55 // vIndex: 0
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
63 ::std::map<::HashedString, ::HashedString> const& blockMappings,
64 uint maximumAmount
65 );
66
67 MCAPI bool _finalize(::BlockSource& region, ::IRandom& random, ::std::function<void(::BlockPos&)> applyToBlocks);
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor(::std::map<::HashedString, ::HashedString> const& blockMappings, uint maximumAmount);
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79 MCAPI void $dtor();
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCAPI bool $test(::Block const& block, ::Randomize&) const;
86
87 MCAPI bool $test(::BlockPos const& worldPos, ::BlockPos const&, ::Randomize&) const;
88
89 MCAPI bool $finalize(::BlockSource& region, ::IRandom& random);
90
91 MCFOLD ::StructurePoolBlockPredicateType $getType() const;
92
93 MCAPI void $appendMetadataKey(::Util::XXHash& hash) const;
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCAPI static void** $vftable();
100 // NOLINTEND
101};
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition HashedString.h:5
Definition IRandom.h:10
Definition IStructurePoolBlockPredicate.h:18
Definition Randomize.h:13
Definition StructurePoolBlockPredicateCappedRandomBlockReplacement.h:21
Definition XXHash.h:7