LeviLamina
Loading...
Searching...
No Matches
br.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/WeightedRandomList.h"
7#include "mc/world/actor/spawn_category/Type.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BoundingBox;
13class IDataOutput;
14class StructureStart;
15class Vec3;
16namespace br { class LevelChunkDataRegistry; }
17namespace br { struct StructureKey; }
18namespace br::worldgen { class StructureInstance; }
19namespace br::worldgen { struct SpawnerData; }
20// clang-format on
21
22namespace br {
23// functions
24// NOLINTBEGIN
25MCAPI ::std::optional<::WeightedRandomList<::br::worldgen::SpawnerData>>
26dynamicStructureMobs(::br::LevelChunkDataRegistry const& reg, ::BlockPos pos, ::SpawnCategory::Type category);
27
28MCAPI ::std::optional<::WeightedRandomList<::br::worldgen::SpawnerData>>
29findMobsPiece(::br::LevelChunkDataRegistry const& reg, ::br::StructureKey key, ::SpawnCategory::Type category);
30
31MCAPI ::std::optional<::WeightedRandomList<::br::worldgen::SpawnerData>>
32findMobsStructure(::br::LevelChunkDataRegistry const& reg, ::br::StructureKey key, ::SpawnCategory::Type category);
33
34MCAPI ::br::StructureKey findStructureKey(::br::LevelChunkDataRegistry const& reg, ::std::string_view name);
35
36MCAPI ::std::vector<::std::string> getStructureTypes(::br::LevelChunkDataRegistry const& reg, ::Vec3 pos);
37
38MCAPI void insertStructure(
40 ::BoundingBox chunkBB,
42 ::StructureStart const& instance
43);
44
45MCAPI void insertStructure(
47 ::BoundingBox chunkBB,
50);
51
52MCAPI bool serialize(::IDataOutput& stream, ::br::LevelChunkDataRegistry const& val);
53
54MCAPI ::br::StructureKey spawnStructureKey(::br::LevelChunkDataRegistry& reg, ::std::string_view name);
55
56MCAPI ::std::optional<::WeightedRandomList<::br::worldgen::SpawnerData>>
57staticStructureMobs(::br::LevelChunkDataRegistry const& reg, ::BlockPos pos, ::SpawnCategory::Type category);
58// NOLINTEND
59
60} // namespace br
Definition BlockPos.h:17
Definition BoundingBox.h:13
Definition IDataOutput.h:5
Definition StructureStart.h:15
Definition Vec3.h:10
Definition LevelChunkDataRegistry.h:23
Definition StructureInstance.h:19
Definition StructureKey.h:10
Definition serialize.h:11