LeviLamina
Loading...
Searching...
No Matches
StructureCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7#include "mc/server/commands/CommandPosition.h"
8#include "mc/server/commands/standard/StructureActionType.h"
9#include "mc/util/AnimationMode.h"
10#include "mc/util/Mirror.h"
11#include "mc/util/Rotation.h"
12#include "mc/world/level/levelgen/structure/StructureRedstoneSaveMode.h"
13
14// auto generated forward declare list
15// clang-format off
16class BlockPos;
17class BlockSource;
18class CommandOrigin;
19class CommandOutput;
20class CommandRegistry;
22class Level;
25// clang-format on
26
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<4, 4, ::StructureActionType> mAction;
32 ::ll::TypedStorage<1, 1, ::StructureRedstoneSaveMode> mSaveMode;
33 ::ll::TypedStorage<1, 1, ::Rotation> mRotation;
34 ::ll::TypedStorage<1, 1, ::Mirror> mMirror;
35 ::ll::TypedStorage<1, 1, ::AnimationMode> mAnimationMode;
36 ::ll::TypedStorage<4, 4, float> mAnimationTimeSeconds;
37 ::ll::TypedStorage<8, 32, ::std::string> mName;
38 ::ll::TypedStorage<8, 32, ::std::string> mSeed;
39 ::ll::TypedStorage<4, 16, ::CommandPosition> mFrom;
40 ::ll::TypedStorage<4, 16, ::CommandPosition> mTo;
41 ::ll::TypedStorage<4, 4, float> mIntegrity;
42 ::ll::TypedStorage<1, 1, bool> mSeedSpecified;
43 ::ll::TypedStorage<1, 1, bool> mIncludeEntities;
44 ::ll::TypedStorage<1, 1, bool> mIncludeBlocks;
45 ::ll::TypedStorage<1, 1, bool> mWaterlogged;
46 // NOLINTEND
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 // vIndex: 2
52 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
53
54 // vIndex: 0
55 virtual ~StructureCommand() /*override*/ = default;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI void _delete(::CommandOrigin const& origin, ::CommandOutput& output) const;
62
63 MCAPI void
64 _editorDelete(::CommandOrigin const& origin, ::CommandOutput& output, ::std::string const& fullName) const;
65
66 MCAPI void _editorLoad(
67 ::CommandOrigin const& origin,
68 ::CommandOutput& output,
69 ::Level& level,
70 ::std::string const& fullName,
71 ::BlockPos const& loadPosition,
72 ::StructureEditorData& settings
73 ) const;
74
75 MCAPI void _editorSave(
76 ::CommandOrigin const& origin,
77 ::CommandOutput& output,
78 ::BlockSource& region,
79 ::std::string const& fullName,
80 ::BlockPos from,
81 ::BlockPos to,
82 ::StructureSettings const& settings
83 ) const;
84
85 MCAPI ::std::string _getFullName() const;
86
87 MCAPI bool
88 _isValidSize(::BlockPos const& size, ::DimensionHeightRange const& heightRange, ::CommandOutput& output) const;
89
90 MCAPI void _load(::CommandOrigin const& origin, ::CommandOutput& output) const;
91
92 MCAPI void _save(::CommandOrigin const& origin, ::CommandOutput& output) const;
93 // NOLINTEND
94
95public:
96 // static functions
97 // NOLINTBEGIN
98 MCAPI static void setup(::CommandRegistry& registry, bool isEditorWorld);
99 // NOLINTEND
100
101public:
102 // virtual function thunks
103 // NOLINTBEGIN
104 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCNAPI static void** $vftable();
111 // NOLINTEND
112};
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:44
Definition Command.h:17
Definition DimensionHeightRange.h:5
Definition Level.h:243
Definition StructureCommand.h:27
static MCAPI void ** $vftable()
Definition StructureEditorData.h:18
Definition StructureSettings.h:18