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/common/NewBlockID.h"
7#include "mc/deps/core/math/Vec3.h"
8#include "mc/world/actor/ActorInitializationMethod.h"
9#include "mc/world/actor/projectile/PredictableProjectile.h"
10
11// auto generated forward declare list
12// clang-format off
15class Block;
16class CompoundTag;
17class DataLoadHelper;
18class EntityContext;
19class ITickDelegate;
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 // prevent constructor by default
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 // vIndex: 2
57 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
58
59 // vIndex: 24
60 virtual void normalTick() /*override*/;
61
62 // vIndex: 35
63 virtual float getShadowRadius() const /*override*/;
64
65 // vIndex: 92
66 virtual float causeFallDamageToActor(float distance, float multiplier, ::ActorDamageSource source) /*override*/;
67
68 // vIndex: 21
69 virtual void teleportTo(
70 ::Vec3 const& pos,
71 bool shouldStopRiding,
72 int cause,
73 int sourceEntityType,
74 bool keepVelocity
75 ) /*override*/;
76
77 // vIndex: 88
78 virtual bool canChangeDimensionsUsingPortal() const /*override*/;
79
80 // vIndex: 93
81 virtual void onSynchedDataUpdate(int dataId) /*override*/;
82
83 // vIndex: 135
84 virtual bool _hurt(::ActorDamageSource const&, float, bool, bool) /*override*/;
85
86 // vIndex: 137
87 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
88
89 // vIndex: 136
90 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
91
92 // vIndex: 8
93 virtual ~FallingBlockActor() /*override*/ = default;
94 // NOLINTEND
95
96public:
97 // member functions
98 // NOLINTBEGIN
100 ::ActorDefinitionGroup* definitions,
101 ::ActorDefinitionIdentifier const& definitionName,
102 ::EntityContext& entityContext
103 );
104
105 MCAPI void _waitRemoval();
106
107 MCAPI void breakBlock();
108
109 MCAPI void doNormalTick(::ITickDelegate& tickDelegate);
110
111 MCAPI ::Block const& getFallingBlock() const;
112
113 MCAPI void setFallingBlock(::Block const& block, bool creative);
114 // NOLINTEND
115
116public:
117 // constructor thunks
118 // NOLINTBEGIN
119 MCAPI void* $ctor(
120 ::ActorDefinitionGroup* definitions,
121 ::ActorDefinitionIdentifier const& definitionName,
122 ::EntityContext& entityContext
123 );
124 // NOLINTEND
125
126public:
127 // virtual function thunks
128 // NOLINTBEGIN
129 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
130
131 MCAPI void $normalTick();
132
133 MCFOLD float $getShadowRadius() const;
134
135 MCAPI float $causeFallDamageToActor(float distance, float multiplier, ::ActorDamageSource source);
136
137 MCFOLD void
138 $teleportTo(::Vec3 const& pos, bool shouldStopRiding, int cause, int sourceEntityType, bool keepVelocity);
139
140 MCAPI bool $canChangeDimensionsUsingPortal() const;
141
142 MCAPI void $onSynchedDataUpdate(int dataId);
143
144 MCFOLD bool $_hurt(::ActorDamageSource const&, float, bool, bool);
145
146 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
147
148 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
149 // NOLINTEND
150
151public:
152 // vftables
153 // NOLINTBEGIN
154 MCNAPI static void** $vftable();
155 // NOLINTEND
156};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:29
Definition Block.h:38
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition FallingBlockActor.h:24
static MCAPI void ** $vftable()
Definition ITickDelegate.h:13
Definition PredictableProjectile.h:8
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition VariantParameterList.h:5