LeviLamina
Loading...
Searching...
No Matches
PlaceCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/ServerCommand.h"
7#include "mc/world/level/levelgen/v2/LiquidSettings.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BoundingBox;
13class CommandOrigin;
14class CommandOutput;
15class CommandPosition;
16class CommandRegistry;
17class Dimension;
18class Experiments;
19class HashedString;
20class IFeature;
22// clang-format on
23
24class PlaceCommand : public ::ServerCommand {
25public:
26 // PlaceCommand inner types define
27 enum class PlaceAction : int {
28 Structure = 0,
29 Jigsaw = 1,
30 Feature = 2,
31 FeatureRule = 3,
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 PlaceCommand& operator=(PlaceCommand const&);
54 PlaceCommand(PlaceCommand const&);
55 PlaceCommand();
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
61
62 virtual ~PlaceCommand() /*override*/ = default;
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI void _placeFeature(
69 ::IFeature const* feature,
70 ::CommandPosition const& pos,
71 ::CommandOrigin const& origin,
72 ::CommandOutput& output
73 ) const;
74
75 MCAPI void _placeFeatureRule(
76 ::std::string const& featureRuleName,
77 ::CommandPosition const& pos,
78 ::CommandOrigin const& origin,
79 ::CommandOutput& output
80 ) const;
81
82 MCAPI void _placeJigsaw(
83 ::std::string const& pool,
84 ::std::string const& target,
85 schar maxDepth,
86 ::CommandPosition const& pos,
87 bool keepJigsaws,
88 bool includeEntities,
89 ::br::worldgen::LiquidSettings liquidSettings,
90 ::CommandOrigin const& origin,
91 ::CommandOutput& output
92 ) const;
93
94 MCAPI void _placeStructure(
95 ::std::string const& id,
96 ::CommandPosition const& pos,
97 bool ignoreStartHeight,
98 bool keepJigsaws,
99 bool includeEntities,
100 ::br::worldgen::LiquidSettings liquidSettings,
101 ::CommandOrigin const& origin,
102 ::CommandOutput& output
103 ) const;
104 // NOLINTEND
105
106public:
107 // static functions
108 // NOLINTBEGIN
109 MCAPI static ::nonstd::expected<::BoundingBox, ::std::string_view> placeJigsaw(
110 ::std::string const& pool,
111 ::std::string const& target,
112 schar maxDepth,
113 ::BlockPos const& position,
114 bool keepJigsaws,
115 bool includeEntities,
116 ::Dimension& dimension,
117 ::br::worldgen::LiquidSettings liquidSettings
118 );
119
120 MCAPI static ::nonstd::expected<::BoundingBox, ::std::string_view> placeStructure(
121 ::std::string const& id,
122 ::BlockPos const& pos,
123 ::Dimension& dimension,
124 bool ignoreStartHeight,
125 bool keepJigsaws,
126 bool includeEntities,
127 ::br::worldgen::LiquidSettings liquidSettings
128 );
129
130 MCAPI static void setup(
131 ::CommandRegistry& registry,
132 ::std::unordered_map<::HashedString, ::BiomeDecorationFeature> const& biomeDecorationFeatures,
133 ::Experiments const&
134 );
135 // NOLINTEND
136
137public:
138 // virtual function thunks
139 // NOLINTBEGIN
140 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
141
142
143 // NOLINTEND
144
145public:
146 // vftables
147 // NOLINTBEGIN
148 MCNAPI static void** $vftable();
149 // NOLINTEND
150};
Definition BlockPos.h:19
Definition BoundingBox.h:13
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandPosition.h:15
Definition CommandRegistry.h:47
Definition Dimension.h:85
Definition Experiments.h:14
Definition Feature.h:18
Definition HashedString.h:5
Definition IFeature.h:18
static MCAPI void ** $vftable()
Definition ServerCommand.h:22
Definition BiomeDecorationFeature.h:15
Definition Alias.h:14