LeviLamina
Loading...
Searching...
No Matches
HangingActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/Actor.h"
7#include "mc/world/actor/ActorInitializationMethod.h"
8
9// auto generated forward declare list
10// clang-format off
13class BlockPos;
14class BlockSource;
15class CompoundTag;
16class DataLoadHelper;
17class EntityContext;
21// clang-format on
22
23class HangingActor : public ::Actor {
24public:
25 // member variables
26 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 HangingActor& operator=(HangingActor const&);
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 24
41 virtual void normalTick() /*override*/;
42
43 // vIndex: 138
44 virtual int getWidth() const = 0;
45
46 // vIndex: 139
47 virtual int getHeight() const = 0;
48
49 // vIndex: 140
50 virtual void dropItem() = 0;
51
52 // vIndex: 38
53 virtual float getBrightness(float a, ::IConstBlockSource const& region) const /*override*/;
54
55 // vIndex: 141
56 virtual bool placeHangingEntity(::BlockSource& region, int direction);
57
58 // vIndex: 142
59 virtual bool wouldSurvive(::BlockSource& region);
60
61 // vIndex: 64
62 virtual bool isInvulnerableTo(::ActorDamageSource const& source) const /*override*/;
63
64 // vIndex: 2
65 virtual void reloadHardcoded(::ActorInitializationMethod, ::VariantParameterList const&) /*override*/;
66
67 // vIndex: 3
68 virtual void reloadHardcodedClient(::ActorInitializationMethod) /*override*/;
69
70 // vIndex: 135
71 virtual bool _hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite) /*override*/;
72
73 // vIndex: 137
74 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
75
76 // vIndex: 136
77 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
78
79 // vIndex: 8
80 virtual ~HangingActor() /*override*/;
81 // NOLINTEND
82
83public:
84 // member functions
85 // NOLINTBEGIN
86 MCAPI HangingActor(
87 ::ActorDefinitionGroup* definitions,
88 ::ActorDefinitionIdentifier const& definitionName,
89 ::EntityContext& entityContext
90 );
91
92 MCAPI bool _blockIsObstruction(::BlockSource const& region, ::BlockPos const& blockPos) const;
93
94 MCAPI void _calculateAABB();
95
96 MCAPI void _calculateActorPositionFromPlacementPosition(::BlockPos const& blockPos);
97
98 MCAPI bool _canSurviveOnBlock(::BlockSource const& region, ::BlockPos const& blockPos, bool beingPlaced) const;
99
100 MCAPI bool _wouldSurvive(::BlockSource& region, ::BlockPos const& blockPos, bool beingPlaced);
101 // NOLINTEND
102
103public:
104 // constructor thunks
105 // NOLINTBEGIN
106 MCAPI void* $ctor(
107 ::ActorDefinitionGroup* definitions,
108 ::ActorDefinitionIdentifier const& definitionName,
109 ::EntityContext& entityContext
110 );
111 // NOLINTEND
112
113public:
114 // destructor thunk
115 // NOLINTBEGIN
116 MCFOLD void $dtor();
117 // NOLINTEND
118
119public:
120 // virtual function thunks
121 // NOLINTBEGIN
122 MCAPI void $normalTick();
123
124 MCAPI float $getBrightness(float a, ::IConstBlockSource const& region) const;
125
126 MCFOLD bool $placeHangingEntity(::BlockSource& region, int direction);
127
128 MCAPI bool $wouldSurvive(::BlockSource& region);
129
130 MCFOLD bool $isInvulnerableTo(::ActorDamageSource const& source) const;
131
132 MCAPI bool $_hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite);
133
134 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
135
136 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
137 // NOLINTEND
138
139public:
140 // vftables
141 // NOLINTBEGIN
142 MCAPI static void** $vftable();
143 // NOLINTEND
144};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:27
Definition Actor.h:104
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition HangingActor.h:23
Definition IConstBlockSource.h:24
Definition ActorDefinitionIdentifier.h:13
Definition VariantParameterList.h:5
Definition Alias.h:14