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