LeviLamina
Loading...
Searching...
No Matches
StructurePoolBlockPredicateAlwaysTrueExcept.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#include "mc/world/level/levelgen/structure/structurepools/IStructurePoolBlockPredicate.h"
8#include "mc/world/level/levelgen/structure/structurepools/StructurePoolBlockPredicateType.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
13class IRandom;
14namespace Util { class XXHash; }
15// clang-format on
16
17class StructurePoolBlockPredicateAlwaysTrueExcept : public ::IStructurePoolBlockPredicate {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 16, ::std::set<::Block const*>> mCannotReplace;
22 ::ll::TypedStorage<4, 4, float const> mProbability;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 StructurePoolBlockPredicateAlwaysTrueExcept();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual bool test(::Block const& block, ::IRandom& random) const /*override*/;
33
34 virtual bool test(::BlockPos const&, ::BlockPos const&, ::IRandom&) const /*override*/;
35
36 virtual ::StructurePoolBlockPredicateType getType() const /*override*/;
37
38 virtual void appendMetadataKey(::Util::XXHash& hash) const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI
45 StructurePoolBlockPredicateAlwaysTrueExcept(::std::set<::Block const*> const& cannotReplace, float probability);
46 // NOLINTEND
47
48public:
49 // constructor thunks
50 // NOLINTBEGIN
51 MCAPI void* $ctor(::std::set<::Block const*> const& cannotReplace, float probability);
52 // NOLINTEND
53
54public:
55 // virtual function thunks
56 // NOLINTBEGIN
57 MCAPI bool $test(::Block const& block, ::IRandom& random) const;
58
59 MCFOLD bool $test(::BlockPos const&, ::BlockPos const&, ::IRandom&) const;
60
61 MCFOLD ::StructurePoolBlockPredicateType $getType() const;
62
63 MCAPI void $appendMetadataKey(::Util::XXHash& hash) const;
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
Definition BlockPos.h:21
Definition Block.h:69
Definition IRandom.h:10
Definition IStructurePoolBlockPredicate.h:17
Definition XXHash.h:7