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 // 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 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI void $normalTick();
75
76 MCAPI bool $isDarkEnoughToSpawn() const;
77
78 MCFOLD bool $checkSpawnRules(bool fromSpawner);
79
80 MCAPI float $_getWalkTargetValue(::BlockPos const& pos);
81
82 MCAPI ::ActorHurtResult $_hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite);
83
84 MCFOLD void $addAdditionalSaveData(::CompoundTag& tag) const;
85
86 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
87
88
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCAPI static void** $vftable();
95 // NOLINTEND
96};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:37
Definition ActorHurtResult.h:5
Definition BlockPos.h:21
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition EntityContext.h:17
Definition ActorDefinitionIdentifier.h:15