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 ChunkPos;
16class CompoundTag;
17class DataLoadHelper;
18class EntityContext;
22// clang-format on
23
24class HangingActor : public ::Actor {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<4, 4, int> mDirection;
29 ::ll::TypedStorage<4, 4, int> mTicksToWouldSurviveCheck;
30 ::ll::TypedStorage<4, 4, int> mWouldSurviveCheckCooldown;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
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&, int);
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 method) /*override*/;
69
70 // vIndex: 135
71 virtual bool _hurt(::ActorDamageSource const& source, float, bool, bool) /*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 int wouldSurviveCheckCooldown
91 );
92
93 MCAPI bool _blockIsObstruction(::BlockSource const& region, ::BlockPos const& blockPos) const;
94
95 MCAPI void _calculateAABB();
96
97 MCAPI void _calculateActorPositionFromPlacementPosition(::BlockPos const& blockPos);
98
99 MCAPI bool _canSurviveOnBlock(::BlockSource const& region, ::BlockPos const& blockPos, bool beingPlaced) const;
100
101 MCAPI bool _chunksLoaded3x3(::ChunkPos const& center);
102
103 MCAPI bool _wouldSurvive(::BlockSource& region, ::BlockPos const& blockPos, bool beingPlaced);
104
105 MCAPI void doNormalTick();
106 // NOLINTEND
107
108public:
109 // constructor thunks
110 // NOLINTBEGIN
111 MCAPI void* $ctor(
112 ::ActorDefinitionGroup* definitions,
113 ::ActorDefinitionIdentifier const& definitionName,
114 ::EntityContext& entityContext,
115 int wouldSurviveCheckCooldown
116 );
117 // NOLINTEND
118
119public:
120 // destructor thunk
121 // NOLINTBEGIN
122 MCFOLD void $dtor();
123 // NOLINTEND
124
125public:
126 // virtual function thunks
127 // NOLINTBEGIN
128 MCAPI void $normalTick();
129
130 MCAPI float $getBrightness(float a, ::IConstBlockSource const& region) const;
131
132 MCFOLD bool $placeHangingEntity(::BlockSource&, int);
133
134 MCAPI bool $wouldSurvive(::BlockSource& region);
135
136 MCFOLD bool $isInvulnerableTo(::ActorDamageSource const& source) const;
137
138 MCAPI void $reloadHardcoded(::ActorInitializationMethod, ::VariantParameterList const&);
139
140 MCAPI void $reloadHardcodedClient(::ActorInitializationMethod method);
141
142 MCAPI bool $_hurt(::ActorDamageSource const& source, float, bool, bool);
143
144 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
145
146 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
147 // NOLINTEND
148
149public:
150 // vftables
151 // NOLINTBEGIN
152 MCNAPI static void** $vftable();
153 // NOLINTEND
154};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:32
Definition Actor.h:102
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition ChunkPos.h:11
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition HangingActor.h:24
static MCAPI void ** $vftable()
Definition IConstBlockSource.h:24
Definition ActorDefinitionIdentifier.h:15
Definition VariantParameterList.h:13