LeviLamina
Loading...
Searching...
No Matches
StructurePlacementInfo.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/Rotation.h"
7#include "mc/world/level/BlockPos.h"
8#include "mc/world/level/chunk/NeighborAwareBlockUpdateType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Block;
13class BlockSource;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 12, ::BlockPos const> mSize;
24 ::ll::TypedStorage<4, 12, ::BlockPos const> mOrigin;
25 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mBlockVolume;
26 ::ll::TypedStorage<8, 24, ::std::vector<::StructureBlockPlacementInfo>> mBlockPlacementInfos;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
32
33public:
34 // member functions
35 // NOLINTBEGIN
36 MCAPI StructurePlacementInfo(::BlockPos const& size, ::BlockPos const& origin);
37
38 MCAPI uint _findOrInsertPlacementIndex(::StructureBlockPlacementInfo const& info);
39
40 MCAPI void _handleBlockPostPlacedStructure(
41 ::BlockSource& region,
42 ::BlockPos const& localPosition,
43 ::BlockPos const& worldPosition,
44 ::Rotation rotation
45 );
46
47 MCAPI void _handlePlacedConnectionBlock(
48 ::BlockSource& region,
49 ::BlockPos const& localPosition,
50 ::BlockPos const& worldPosition,
51 ::Rotation rotation,
52 ::PlacedConnectionBlock const& connectionBlock
53 );
54
55 MCAPI void _setBlockPlacementInfo(::BlockPos const& pos, ::StructureBlockPlacementInfo const& info);
56
57 MCAPI ::StructurePlacementNeighbors getNeighbors(::BlockPos const& relativePos, ::Rotation rotation);
58
59 MCAPI void
60 setBlockPlacementInfo(::BlockPos const& pos, ::Block const& block, ::NeighborAwareBlockUpdateType updateType);
61
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor(::BlockPos const& size, ::BlockPos const& origin);
69 // NOLINTEND
70
71public:
72 // destructor thunk
73 // NOLINTBEGIN
74 MCAPI void $dtor();
75 // NOLINTEND
76};
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition Block.h:38
Definition StructureBlockPlacementInfo.h:9
Definition StructurePlacementInfo.h:19
Definition PlacedConnectionBlock.h:13
Definition StructurePlacementNeighbors.h:11