Skip to content
LeviMC
English
AutoLightDark
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
25MCNAPI ::std::optional<::WeightedRandomList<::br::worldgen::SpawnerData>>
26dynamicStructureMobs(::br::LevelChunkDataRegistry const& reg, ::BlockPos pos, ::SpawnCategory::Type category);
27
28MCNAPI ::std::optional<::WeightedRandomList<::br::worldgen::SpawnerData>>
29findMobsPiece(::br::LevelChunkDataRegistry const& reg, ::br::StructureKey key, ::SpawnCategory::Type category);
30
31MCNAPI ::std::vector<::std::string> getStructureTypes(::br::LevelChunkDataRegistry const& reg, ::Vec3 pos);
32
33MCNAPI void insertStructure(
34 ::br::LevelChunkDataRegistry& reg,
35 ::BoundingBox chunkBB,
36 ::br::StructureKey key,
37 ::br::worldgen::StructureInstance const& instance
38);
39
40MCNAPI void insertStructure(
41 ::br::LevelChunkDataRegistry& reg,
42 ::BoundingBox chunkBB,
43 ::br::StructureKey key,
44 ::StructureStart const& instance
45);
46
47MCNAPI bool serialize(::IDataOutput& stream, ::br::LevelChunkDataRegistry const& val);
48
49MCNAPI ::br::StructureKey spawnStructureKey(::br::LevelChunkDataRegistry& reg, ::std::string_view name);
50
51MCNAPI ::std::optional<::WeightedRandomList<::br::worldgen::SpawnerData>>
52staticStructureMobs(::br::LevelChunkDataRegistry const& reg, ::BlockPos pos, ::SpawnCategory::Type category);
53// NOLINTEND
54
55} // namespace br
Definition BlockPos.h:14
Definition BoundingBox.h:13
Definition IDataOutput.h:5
Definition StructureStart.h:15
Definition Vec3.h:10
Definition LevelChunkDataRegistry.h:23
Definition StructureInstance.h:20
Definition StructureKey.h:10
Definition SpawnerData.h:12