Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
VillagerV2.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/world/actor/ActorInitializationMethod.h"
8#include "mc/world/actor/npc/VillagerBase.h"
9#include "mc/world/item/HandSlot.h"
10
11// auto generated forward declare list
12// clang-format off
16class EntityContext;
17class Interaction;
18class Player;
19class Vec3;
22// clang-format on
23
24class VillagerV2 : public ::VillagerBase {
25public:
26 // prevent constructor by default
27 VillagerV2();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
33
34 virtual void newServerAiStep() /*override*/;
35
36 virtual void die(::ActorDamageSource const& source) /*override*/;
37
38 virtual void remove() /*override*/;
39
40 virtual void buildDebugInfo(::std::string& out) const /*override*/;
41
42 virtual ::Interaction getInteraction(::Player& player, ::Vec3 const& location, ::HandSlot handSlot) /*override*/;
43
44 virtual ::SharedTypes::Legacy::LevelSoundEvent getAmbientSound() const /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCNAPI VillagerV2(
51 ::ActorDefinitionGroup* definitions,
52 ::ActorDefinitionIdentifier const& definitionName,
53 ::EntityContext& entityContext
54 );
55
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCNAPI void* $ctor(
63 ::ActorDefinitionGroup* definitions,
64 ::ActorDefinitionIdentifier const& definitionName,
65 ::EntityContext& entityContext
66 );
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCNAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
73
74 MCAPI void $newServerAiStep();
75
76 MCNAPI void $die(::ActorDamageSource const& source);
77
78 MCNAPI void $remove();
79
80 MCNAPI void $buildDebugInfo(::std::string& out) const;
81
82 MCNAPI ::Interaction $getInteraction(::Player& player, ::Vec3 const& location, ::HandSlot handSlot);
83
84 MCNAPI ::SharedTypes::Legacy::LevelSoundEvent $getAmbientSound() const;
85
86
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCNAPI static void** $vftable();
93 // NOLINTEND
94};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:26
Definition DwellerComponent.h:22
Definition EntityContext.h:15
Definition Interaction.h:9
MCAPI void $newServerAiStep()
Definition Player.h:131
Definition Vec3.h:10
MCAPI void _fixupVillagerProfessionSkinIfNeeded(::DwellerComponent const &dweller)
static MCAPI void ** $vftable()
MCAPI void $buildDebugInfo(::std::string &out) const
MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const &params)
MCAPI VillagerV2(::ActorDefinitionGroup *definitions, ::ActorDefinitionIdentifier const &definitionName, ::EntityContext &entityContext)
MCAPI void * $ctor(::ActorDefinitionGroup *definitions, ::ActorDefinitionIdentifier const &definitionName, ::EntityContext &entityContext)
MCAPI void $die(::ActorDamageSource const &source)
MCAPI::Interaction $getInteraction(::Player &player, ::Vec3 const &location, ::HandSlot handSlot)
MCAPI::SharedTypes::Legacy::LevelSoundEvent $getAmbientSound() const
MCAPI void $remove()
Definition ActorDefinitionIdentifier.h:15
Definition VariantParameterList.h:17