LeviLamina
Loading...
Searching...
No Matches
EnderCrystal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/Actor.h"
7
8// auto generated forward declare list
9// clang-format off
12class ActorHurtResult;
13class BlockPos;
14class CompoundTag;
15class DataLoadHelper;
16class EntityContext;
18// clang-format on
19
20class EnderCrystal : public ::Actor {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 64, ::std::function<void(::EnderCrystal&, ::ActorDamageSource const&)>>
25 mCrystalDamagedCallback;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 EnderCrystal();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual void normalTick() /*override*/;
36
37 virtual bool isInvulnerableTo(::ActorDamageSource const& source) const /*override*/;
38
39 virtual float getShadowRadius() const /*override*/;
40
41 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
42
43 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
44
45 virtual ::ActorHurtResult
46 _hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite) /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI EnderCrystal(
53 ::ActorDefinitionGroup* definitions,
54 ::ActorDefinitionIdentifier const& definitionName,
55 ::EntityContext& entityContext
56 );
57
58 MCFOLD void setBeamTarget(::BlockPos const& target);
59
60 MCAPI void setCrystalDamagedCallback(::std::function<void(::EnderCrystal&, ::ActorDamageSource const&)> onDamaged);
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 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI void $normalTick();
77
78 MCAPI bool $isInvulnerableTo(::ActorDamageSource const& source) const;
79
80 MCFOLD float $getShadowRadius() const;
81
82 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
83
84 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
85
86 MCAPI ::ActorHurtResult $_hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite);
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