Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Wolf.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/ActorEvent.h"
8#include "mc/world/actor/animal/Animal.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
15class ActorHurtResult;
16class CompoundTag;
17class DataLoadHelper;
18class EntityContext;
19class Mob;
21struct HurtParameters;
22// clang-format on
23
24class Wolf : public ::Animal {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<4, 4, float> mShakeAnim;
29 ::ll::TypedStorage<4, 4, float> mShakeAnimO;
30 ::ll::TypedStorage<4, 4, float> mInterestedAngle;
31 ::ll::TypedStorage<4, 4, float> mInterestedAngleO;
32 ::ll::TypedStorage<1, 1, bool> mIsWet;
33 ::ll::TypedStorage<1, 1, bool> mIsShaking;
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 Wolf();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual void newServerAiStep() /*override*/;
44
45 virtual bool load(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
46
47 virtual void onBorn(::Actor&, ::Actor& parentRight) /*override*/;
48
49 virtual void onSynchedDataUpdate(int dataId) /*override*/;
50
51 virtual void setSitting(bool value) /*override*/;
52
53 virtual void handleEntityEvent(::ActorEvent id, int data) /*override*/;
54
55 virtual bool isAlliedTo(::Mob* other) /*override*/;
56
57 virtual ::SharedTypes::Legacy::LevelSoundEvent getAmbientSound() const /*override*/;
58
59 virtual ::ActorHurtResult
60 _hurt(::ActorDamageSource const& source, float damage, ::HurtParameters const& hurtParameters) /*override*/;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCNAPI Wolf(
67 ::ActorDefinitionGroup* definitions,
68 ::ActorDefinitionIdentifier const& definitionName,
69 ::EntityContext& entityContext
70 );
71
72 MCNAPI void _updateTintColor();
73
74 MCNAPI void postNormalTick();
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCNAPI void* $ctor(
81 ::ActorDefinitionGroup* definitions,
82 ::ActorDefinitionIdentifier const& definitionName,
83 ::EntityContext& entityContext
84 );
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCNAPI void $newServerAiStep();
91
92 MCNAPI bool $load(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
93
94 MCNAPI void $onBorn(::Actor&, ::Actor& parentRight);
95
96 MCNAPI void $onSynchedDataUpdate(int dataId);
97
98 MCNAPI void $setSitting(bool value);
99
100 MCNAPI void $handleEntityEvent(::ActorEvent id, int data);
101
102 MCNAPI bool $isAlliedTo(::Mob* other);
103
104 MCNAPI ::SharedTypes::Legacy::LevelSoundEvent $getAmbientSound() const;
105
106 MCNAPI ::ActorHurtResult
107 $_hurt(::ActorDamageSource const& source, float damage, ::HurtParameters const& hurtParameters);
108
109
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
115 MCNAPI static void** $vftable();
116 // NOLINTEND
117};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:26
Definition ActorHurtResult.h:5
Definition Actor.h:116
Definition Animal.h:16
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition EntityContext.h:15
Definition Mob.h:58
MCAPI void $onBorn(::Actor &, ::Actor &parentRight)
MCAPI void postNormalTick()
MCAPI void * $ctor(::ActorDefinitionGroup *definitions, ::ActorDefinitionIdentifier const &definitionName, ::EntityContext &entityContext)
MCAPI::SharedTypes::Legacy::LevelSoundEvent $getAmbientSound() const
MCAPI::ActorHurtResult $_hurt(::ActorDamageSource const &source, float damage, ::HurtParameters const &hurtParameters)
MCAPI void $newServerAiStep()
MCAPI bool $load(::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI void $handleEntityEvent(::ActorEvent id, int data)
static MCAPI void ** $vftable()
MCAPI void $setSitting(bool value)
MCAPI Wolf(::ActorDefinitionGroup *definitions, ::ActorDefinitionIdentifier const &definitionName, ::EntityContext &entityContext)
MCAPI bool $isAlliedTo(::Mob *other)
MCAPI void _updateTintColor()
MCAPI void $onSynchedDataUpdate(int dataId)
Definition ActorDefinitionIdentifier.h:15
Definition HurtParameters.h:8