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