LeviLamina
Loading...
Searching...
No Matches
SummonCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CommandPositionFloat.h"
7#include "mc/server/commands/CommandSelector.h"
8#include "mc/server/commands/RelativeFloat.h"
9#include "mc/server/commands/ServerCommand.h"
10#include "mc/util/rotation_command_utils/FacingResult.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15class CommandOrigin;
16class CommandOutput;
17class CommandRegistry;
18class Vec3;
20// clang-format on
21
22class SummonCommand : public ::ServerCommand {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::ActorDefinitionIdentifier const*> mActorId;
27 ::ll::TypedStorage<4, 16, ::CommandPositionFloat> mPosition;
28 ::ll::TypedStorage<8, 32, ::std::string> mEventName;
29 ::ll::TypedStorage<8, 32, ::std::string> mActorName;
30 ::ll::TypedStorage<1, 1, bool> mNameSet;
31 ::ll::TypedStorage<4, 8, ::RelativeFloat> mYRot;
32 ::ll::TypedStorage<4, 8, ::RelativeFloat> mXRot;
33 ::ll::TypedStorage<1, 1, bool> mIsUsingRotation;
34 ::ll::TypedStorage<1, 1, bool> mFacingIsPosition;
35 ::ll::TypedStorage<4, 4, ::RotationCommandUtils::FacingResult> mHaveFacing;
36 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mFacingEntity;
37 ::ll::TypedStorage<4, 16, ::CommandPositionFloat> mFacingPos;
38 // NOLINTEND
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
44
45 virtual void postExecute(::Actor&) const;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI SummonCommand();
52
53 MCAPI ::RotationCommandUtils::FacingResult
54 _getFacingDirection(::CommandOrigin const& origin, ::CommandOutput& output, ::Vec3& faceTarget) const;
55 // NOLINTEND
56
57public:
58 // static functions
59 // NOLINTBEGIN
60 MCAPI static void setup(::CommandRegistry& registry);
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor();
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
73
74 MCFOLD void $postExecute(::Actor&) const;
75
76
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition Actor.h:125
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition ServerCommand.h:22
static MCAPI void ** $vftable()
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15