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/CommandFilePath.h"
7#include "mc/server/commands/CommandPosition.h"
8#include "mc/server/commands/ServerCommand.h"
9#include "mc/world/level/levelgen/v2/LiquidSettings.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockPos;
14class BoundingBox;
15class CommandOrigin;
16class CommandOutput;
17class CommandRegistry;
18class Dimension;
19class Experiments;
20class HashedString;
21class IFeature;
23// clang-format on
24
26public:
27 // PlaceCommand inner types define
28 enum class PlaceAction : int {
29 Structure = 0,
30 Jigsaw = 1,
31 Feature = 2,
32 FeatureRule = 3,
33 };
34
35 using BiomeDecorationFeatureMap = ::std::unordered_map<::HashedString, ::BiomeDecorationFeature>;
36
37 using PlaceResult = ::nonstd::expected<::BoundingBox, ::std::string_view>;
38
39public:
40 // member variables
41 // NOLINTBEGIN
42 ::ll::TypedStorage<4, 4, ::PlaceCommand::PlaceAction> mPlaceAction;
43 ::ll::TypedStorage<8, 32, ::CommandFilePath> mPool;
44 ::ll::TypedStorage<8, 32, ::std::string> mTarget;
45 ::ll::TypedStorage<4, 4, int> mMaxDepth;
46 ::ll::TypedStorage<4, 16, ::CommandPosition> mPosition;
47 ::ll::TypedStorage<8, 32, ::std::string> mStructureOrFeatureName;
48 ::ll::TypedStorage<8, 8, ::IFeature const*> mFeature;
49 ::ll::TypedStorage<1, 1, ::br::worldgen::LiquidSettings> mLiquidSettings;
50 ::ll::TypedStorage<1, 1, bool> mPosIsSet;
51 ::ll::TypedStorage<1, 1, bool> mIgnoreStartHeight;
52 ::ll::TypedStorage<1, 1, bool> mKeepJigsaws;
53 ::ll::TypedStorage<1, 1, bool> mIncludeEntities;
54 // NOLINTEND
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
60 // NOLINTEND
61
62public:
63 // static functions
64 // NOLINTBEGIN
65 MCAPI static ::nonstd::expected<::BoundingBox, ::std::string_view> placeJigsaw(
66 ::std::string const& pool,
67 ::std::string const& target,
68 schar maxDepth,
69 ::BlockPos const& position,
70 bool keepJigsaws,
71 bool includeEntities,
72 ::Dimension& dimension,
73 ::br::worldgen::LiquidSettings liquidSettings
74 );
75
76 MCAPI static ::nonstd::expected<::BoundingBox, ::std::string_view> placeStructure(
77 ::std::string const& id,
78 ::BlockPos const& pos,
79 ::Dimension& dimension,
80 bool ignoreStartHeight,
81 bool keepJigsaws,
82 bool includeEntities,
83 ::br::worldgen::LiquidSettings liquidSettings
84 );
85
86 MCAPI static void setup(
87 ::CommandRegistry& registry,
88 ::std::unordered_map<::HashedString, ::BiomeDecorationFeature> const& biomeDecorationFeatures,
89 ::Experiments const&
90 );
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
97
98
99 // NOLINTEND
100};
Definition BlockPos.h:17
Definition BoundingBox.h:13
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:50
Definition Dimension.h:86
Definition Experiments.h:14
Definition Feature.h:18
Definition HashedString.h:5
Definition IFeature.h:18
Definition PlaceCommand.h:25
Definition ServerCommand.h:22
Definition BiomeDecorationFeature.h:15