LeviLamina
Loading...
Searching...
No Matches
FallingBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ActorInitializationMethod.h"
7#include "mc/world/actor/projectile/PredictableProjectile.h"
8
9// auto generated forward declare list
10// clang-format off
13class Block;
14class CompoundTag;
15class DataLoadHelper;
16class EntityContext;
17class ITickDelegate;
18class Vec3;
20struct NewBlockID;
22// clang-format on
23
25public:
26 // FallingBlockActor inner types define
27 enum class State : int {
28 Falling = 0,
29 WaitRemoval = 1,
30 };
31
32public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<1, 1, bool> mCreative;
36 ::ll::TypedStorage<4, 4, ::FallingBlockActor::State> mState;
37 ::ll::TypedStorage<4, 4, int> mWaitTicks;
38 ::ll::TypedStorage<4, 4, int> mTime;
39 ::ll::TypedStorage<1, 1, bool> mCancelDrop;
40 ::ll::TypedStorage<1, 1, bool> mHurtEntities;
41 ::ll::TypedStorage<4, 4, int> mFallDamageMax;
42 ::ll::TypedStorage<4, 4, float> mFallDamageAmount;
43 ::ll::TypedStorage<4, 12, ::Vec3> mRenderOffset;
44 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompoundTag>> mFallingBlockSerId;
45 ::ll::TypedStorage<2, 2, ::NewBlockID> mFallingBlockId;
46 ::ll::TypedStorage<2, 2, ushort> mFallingBlockData;
47 // NOLINTEND
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 // vIndex: 2
53 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
54
55 // vIndex: 24
56 virtual void normalTick() /*override*/;
57
58 // vIndex: 35
59 virtual float getShadowRadius() const /*override*/;
60
61 // vIndex: 92
62 virtual float causeFallDamageToActor(float distance, float multiplier, ::ActorDamageSource source) /*override*/;
63
64 // vIndex: 21
65 virtual void teleportTo(
66 ::Vec3 const& pos,
67 bool shouldStopRiding,
68 int cause,
69 int sourceEntityType,
70 bool keepVelocity
71 ) /*override*/;
72
73 // vIndex: 88
74 virtual bool canChangeDimensionsUsingPortal() const /*override*/;
75
76 // vIndex: 93
77 virtual void onSynchedDataUpdate(int dataId) /*override*/;
78
79 // vIndex: 135
80 virtual bool _hurt(::ActorDamageSource const&, float, bool, bool) /*override*/;
81
82 // vIndex: 137
83 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
84
85 // vIndex: 136
86 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
87
88 // vIndex: 8
89 virtual ~FallingBlockActor() /*override*/ = default;
90 // NOLINTEND
91
92public:
93 // member functions
94 // NOLINTBEGIN
96 ::ActorDefinitionGroup* definitions,
97 ::ActorDefinitionIdentifier const& definitionName,
98 ::EntityContext& entityContext
99 );
100
101 MCAPI void _waitRemoval();
102
103 MCAPI void breakBlock();
104
105 MCAPI void doNormalTick(::ITickDelegate& tickDelegate);
106
107 MCAPI ::Block const& getFallingBlock() const;
108
109 MCAPI void setFallingBlock(::Block const& block, bool creative);
110 // NOLINTEND
111
112public:
113 // constructor thunks
114 // NOLINTBEGIN
115 MCAPI void* $ctor(
116 ::ActorDefinitionGroup* definitions,
117 ::ActorDefinitionIdentifier const& definitionName,
118 ::EntityContext& entityContext
119 );
120 // NOLINTEND
121
122public:
123 // destructor thunk
124 // NOLINTBEGIN
125
126 // NOLINTEND
127
128public:
129 // virtual function thunks
130 // NOLINTBEGIN
131 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
132
133 MCAPI void $normalTick();
134
135 MCFOLD float $getShadowRadius() const;
136
137 MCAPI float $causeFallDamageToActor(float distance, float multiplier, ::ActorDamageSource source);
138
139 MCFOLD void
140 $teleportTo(::Vec3 const& pos, bool shouldStopRiding, int cause, int sourceEntityType, bool keepVelocity);
141
142 MCAPI bool $canChangeDimensionsUsingPortal() const;
143
144 MCAPI void $onSynchedDataUpdate(int dataId);
145
146 MCFOLD bool $_hurt(::ActorDamageSource const&, float, bool, bool);
147
148 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
149
150 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
151 // NOLINTEND
152
153public:
154 // vftables
155 // NOLINTBEGIN
156 MCAPI static void** $vftable();
157 // NOLINTEND
158};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:27
Definition Block.h:36
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition FallingBlockActor.h:24
Definition ITickDelegate.h:13
Definition PredictableProjectile.h:8
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:13
Definition NewBlockID.h:8
Definition VariantParameterList.h:5