LeviLamina
Loading...
Searching...
No Matches
Monster.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/world/actor/Mob.h"
8
9// auto generated forward declare list
10// clang-format off
13class ActorHurtResult;
14class BlockPos;
15class CompoundTag;
16class DataLoadHelper;
17class EntityContext;
19// clang-format on
20
21class Monster : public ::Mob {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastHurtByMobId;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 Monster();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual void normalTick() /*override*/;
36
37 virtual bool isDarkEnoughToSpawn() const;
38
39 virtual bool checkSpawnRules(bool fromSpawner) /*override*/;
40
41 virtual float _getWalkTargetValue(::BlockPos const& pos) /*override*/;
42
43 virtual ::ActorHurtResult
44 _hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite) /*override*/;
45
46 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
47
48 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
49
50 virtual ~Monster() /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI Monster(
57 ::ActorDefinitionGroup* definitions,
58 ::ActorDefinitionIdentifier const& definitionName,
59 ::EntityContext& entityContext
60 );
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor(
67 ::ActorDefinitionGroup* definitions,
68 ::ActorDefinitionIdentifier const& definitionName,
69 ::EntityContext& entityContext
70 );
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCFOLD void $dtor();
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI void $normalTick();
83
84 MCAPI bool $isDarkEnoughToSpawn() const;
85
86 MCFOLD bool $checkSpawnRules(bool fromSpawner);
87
88 MCAPI float $_getWalkTargetValue(::BlockPos const& pos);
89
90 MCAPI ::ActorHurtResult $_hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite);
91
92 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
93
94 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
95
96
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCAPI static void** $vftable();
103 // NOLINTEND
104};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:36
Definition ActorHurtResult.h:5
Definition BlockPos.h:19
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition ActorDefinitionIdentifier.h:15