LeviLamina
Loading...
Searching...
No Matches
npc.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ActorInitializationMethod.h"
7#include "mc/world/actor/Mob.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
14class EntityContext;
17namespace mce { class Color; }
18// clang-format on
19
20class Npc : public ::Mob {
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 // vIndex: 2
25 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
26
27 // vIndex: 4
28 virtual void
29 initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
30
31 // vIndex: 175
32 virtual void newServerAiStep() /*override*/;
33
34 // vIndex: 123
35 virtual void die(::ActorDamageSource const& source) /*override*/;
36
37 // vIndex: 105
38 virtual bool canBeAffected(uint id) const /*override*/;
39
40 // vIndex: 34
41 virtual ::mce::Color getNameTagTextColor() const /*override*/;
42
43 // vIndex: 32
44 virtual bool canShowNameTag() const /*override*/;
45
46 // vIndex: 50
47 virtual bool isTargetable() const /*override*/;
48
49 // vIndex: 102
50 virtual void buildDebugInfo(::std::string& out) const /*override*/;
51
52 // vIndex: 138
53 virtual void knockback(::Actor*, int, float, float, float, float, float) /*override*/;
54
55 // vIndex: 96
56 virtual bool canBePulledIntoVehicle() const /*override*/;
57
58 // vIndex: 172
59 virtual bool canExistWhenDisallowMob() const /*override*/;
60
61 // vIndex: 135
62 virtual bool _hurt(::ActorDamageSource const& source, float, bool, bool) /*override*/;
63
64 // vIndex: 8
65 virtual ~Npc() /*override*/ = default;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCAPI
72 Npc(::ActorDefinitionGroup* definitions,
73 ::ActorDefinitionIdentifier const& definitionName,
74 ::EntityContext& entityContext);
75 // NOLINTEND
76
77public:
78 // static variables
79 // NOLINTBEGIN
80 MCAPI static ::std::string const& SKIN_ID_TAG();
81
82 MCAPI static ::std::vector<::std::pair<::std::string, ::std::string>> const& Skins();
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCAPI void* $ctor(
89 ::ActorDefinitionGroup* definitions,
90 ::ActorDefinitionIdentifier const& definitionName,
91 ::EntityContext& entityContext
92 );
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98
99 // NOLINTEND
100
101public:
102 // virtual function thunks
103 // NOLINTBEGIN
104 MCFOLD void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
105
106 MCAPI void $initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params);
107
108 MCFOLD void $newServerAiStep();
109
110 MCFOLD void $die(::ActorDamageSource const& source);
111
112 MCFOLD bool $canBeAffected(uint id) const;
113
114 MCAPI ::mce::Color $getNameTagTextColor() const;
115
116 MCFOLD bool $canShowNameTag() const;
117
118 MCFOLD bool $isTargetable() const;
119
120 MCAPI void $buildDebugInfo(::std::string& out) const;
121
122 MCFOLD void $knockback(::Actor*, int, float, float, float, float, float);
123
124 MCFOLD bool $canBePulledIntoVehicle() const;
125
126 MCFOLD bool $canExistWhenDisallowMob() const;
127
128 MCAPI bool $_hurt(::ActorDamageSource const& source, float, bool, bool);
129 // NOLINTEND
130
131public:
132 // vftables
133 // NOLINTBEGIN
134 MCAPI static void** $vftable();
135 // NOLINTEND
136};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:27
Definition Actor.h:104
Definition EntityContext.h:16
Definition Mob.h:47
Definition npc.h:20
Definition ActorDefinitionIdentifier.h:13
Definition VariantParameterList.h:5