LeviLamina
Loading...
Searching...
No Matches
StructureAnimationData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/BlockPos.h"
7#include "mc/world/level/dimension/DimensionType.h"
8#include "mc/world/level/levelgen/structure/StructureSettings.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockSource;
13class CommandArea;
14class CompoundTag;
15// clang-format on
16
17class StructureAnimationData {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, uint64> mTickQueued;
22 ::ll::TypedStorage<8, 32, ::std::string> mStructureName;
23 ::ll::TypedStorage<8, 104, ::StructureSettings> mStructureSettings;
24 ::ll::TypedStorage<4, 4, uint> mBlocksPlaced;
25 ::ll::TypedStorage<4, 4, uint> mTotalBlocks;
26 ::ll::TypedStorage<1, 1, uchar> mInitialStructureVersion;
27 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CommandArea>> mCmdArea;
28 ::ll::TypedStorage<4, 12, ::BlockPos> mPlacementPos;
29 ::ll::TypedStorage<4, 4, uint> mQueueID;
30 ::ll::TypedStorage<4, 4, ::DimensionType> mTargetDimension;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 StructureAnimationData& operator=(StructureAnimationData const&);
36 StructureAnimationData(StructureAnimationData const&);
37 StructureAnimationData();
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI StructureAnimationData(::StructureAnimationData&&);
43
44 MCAPI StructureAnimationData(
45 ::std::unique_ptr<::CommandArea> cmdArea,
46 uint64 tickQueued,
47 ::std::string const& structureName,
48 ::StructureSettings const& structureSettings,
49 uchar structureVersion,
50 ::BlockPos const& placementPos
51 );
52
53 MCAPI bool allBlocksPlaced() const;
54
55 MCAPI uint getBlocksExpectedToPlace(uint64 currentTick) const;
56
57 MCFOLD uint getBlocksPlaced() const;
58
59 MCAPI ::BlockSource& getDimensionBlockSource() const;
60
61 MCFOLD ::BlockPos const& getPosition() const;
62
63 MCFOLD uint getQueueID() const;
64
65 MCFOLD ::std::string const& getStructureName() const;
66
67 MCFOLD ::StructureSettings const& getStructureSettings() const;
68
69 MCFOLD uchar getStructureVersion() const;
70
71 MCFOLD ::DimensionType const& getTargetDimension() const;
72
73 MCFOLD uint getTotalBlocks() const;
74
75 MCAPI ::CompoundTag& serialize(::CompoundTag& tag);
76
77 MCFOLD void setBlocksPlaced(uint blocksPlaced);
78
79 MCAPI void setCmdArea(::std::unique_ptr<::CommandArea> cmdArea);
80
81 MCAPI void setQueueID(uint queueID);
82
83 MCAPI void setTargetDimension(::DimensionType const& targetDimension);
84
85 MCAPI ~StructureAnimationData();
86 // NOLINTEND
87
88public:
89 // static functions
90 // NOLINTBEGIN
91 MCAPI static ::StructureAnimationData load(::std::string const& key, ::CompoundTag const& tag);
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCAPI void* $ctor(::StructureAnimationData&&);
98
99 MCAPI void* $ctor(
100 ::std::unique_ptr<::CommandArea> cmdArea,
101 uint64 tickQueued,
102 ::std::string const& structureName,
103 ::StructureSettings const& structureSettings,
104 uchar structureVersion,
105 ::BlockPos const& placementPos
106 );
107 // NOLINTEND
108
109public:
110 // destructor thunk
111 // NOLINTBEGIN
112 MCAPI void $dtor();
113 // NOLINTEND
114};
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition CommandArea.h:11
Definition CompoundTag.h:23
Definition StructureSettings.h:18
Definition DimensionType.h:5