Skip to content
LeviMC
English
AutoLightDark
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;
21class Level;
24struct ActorUniqueID;
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 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCNAPI void _editorLoad(
58 ::CommandOrigin const& origin,
59 ::CommandOutput& output,
60 ::Level& level,
61 ::std::string const& fullName,
62 ::BlockPos const& loadPosition,
63 ::StructureEditorData& settings
64 ) const;
65
66 MCNAPI uint _generateSeed() const;
67
68 MCNAPI ::std::string _getFullName() const;
69
70 MCNAPI ::ActorUniqueID _getPlayerId(::CommandOrigin const& origin) const;
71 // NOLINTEND
72
73public:
74 // static functions
75 // NOLINTBEGIN
76 MCNAPI static void _editorSave(
77 ::CommandOrigin const& origin,
78 ::CommandOutput& output,
79 ::BlockSource& region,
80 ::std::string const& fullName,
81 ::BlockPos from,
82 ::BlockPos to,
83 ::StructureSettings const& settings
84 );
85
86 MCNAPI static void setup(::CommandRegistry& registry, bool isEditorWorld);
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCNAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
93
94
95 // NOLINTEND
96};
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Command.h:17
Definition Level.h:255
Definition StructureCommand.h:27
static MCAPI void _editorSave(::CommandOrigin const &origin, ::CommandOutput &output, ::BlockSource &region, ::std::string const &fullName, ::BlockPos from, ::BlockPos to, ::StructureSettings const &settings)
static MCAPI void setup(::CommandRegistry &registry, bool isEditorWorld)
MCAPI void $execute(::CommandOrigin const &origin, ::CommandOutput &output) const
MCAPI::ActorUniqueID _getPlayerId(::CommandOrigin const &origin) const
MCAPI::std::string _getFullName() const
MCAPI void _editorLoad(::CommandOrigin const &origin, ::CommandOutput &output, ::Level &level, ::std::string const &fullName, ::BlockPos const &loadPosition, ::StructureEditorData &settings) const
MCAPI uint _generateSeed() const
Definition StructureEditorData.h:17
Definition StructureSettings.h:18
Definition ActorUniqueID.h:5