LeviLamina
Loading...
Searching...
No Matches
JigsawStructureUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/puv/Loader.h"
7#include "mc/util/Rotation.h"
8#include "mc/world/level/levelgen/structure/structurepools/StructurePoolElementType.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
13class BoundingBox;
14class CompoundTag;
15namespace JigsawStructureUtils { struct JigsawBlockMetadataCacheHandle; }
16namespace SharedTypes::v1_21_80 { class JigsawBlockMetadata; }
17namespace SharedTypes::v1_21_80 { struct JigsawStructureMetadataFile; }
18namespace cereal { struct ReflectionCtx; }
19// clang-format on
20
21namespace JigsawStructureUtils {
22// functions
23// NOLINTBEGIN
24MCAPI bool canAttach(
25 ::JigsawStructureUtils::JigsawBlockMetadataCacheHandle cacheHandle,
26 ::JigsawStructureUtils::JigsawBlockMetadataCacheHandle rhsCacheHandle,
27 ::Rotation rotation,
28 ::Rotation rhsRotation,
29 bool ignoreNameCheck
30);
31
32MCAPI ::Puv::
33 Loader<::SharedTypes::v1_21_80::JigsawStructureMetadataFile, ::SharedTypes::v1_21_80::JigsawStructureMetadataFile>
34 createMetadataLoader(::cereal::ReflectionCtx const& ctx);
35
36MCAPI ::BoundingBox getBoundingBox(::BlockPos const& size, ::BlockPos const& offset, ::Rotation rotation);
37
38MCAPI uchar getFrontFacing(::JigsawStructureUtils::JigsawBlockMetadataCacheHandle cacheHandle, ::Rotation rotation);
39
40MCAPI ::BlockPos getPosition(
41 ::SharedTypes::v1_21_80::JigsawBlockMetadata const& metadata,
42 ::BlockPos const& offset,
43 ::Rotation rotation
44);
45
46MCAPI ::std::string getSerializationIdString(::CompoundTag const& blockIdTag);
47
48MCAPI ::BlockPos getSize(::BlockPos const& size, ::Rotation rotation);
49
50MCAPI bool ignoresJigsawBlockNameCheck(::StructurePoolElementType elementType);
51// NOLINTEND
52
53} // namespace JigsawStructureUtils
Definition BlockPos.h:21
Definition BoundingBox.h:13
Definition CompoundTag.h:23
Definition JigsawBlockMetadata.h:16
Definition JigsawBlockMetadataCacheHandle.h:13
Definition JigsawStructureMetadataFile.h:15
Definition ReflectionCtx.h:11