LeviLamina
Loading...
Searching...
No Matches
Minecart.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#include "mc/world/actor/item/MinecartType.h"
9
10// auto generated forward declare list
11// clang-format off
14class Block;
15class BlockPos;
16class BlockSource;
17class CompoundTag;
18class DataLoadHelper;
19class EntityContext;
21struct ActorUniqueID;
23// clang-format on
24
25class Minecart : public ::Actor {
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompoundTag>> mDisplayBlockSerId;
30 ::ll::TypedStorage<1, 1, bool> mFlipped;
31 ::ll::TypedStorage<4, 4, float> mRailRenderRot;
32 ::ll::TypedStorage<8, 8, uint64> mBaseLoop;
33 ::ll::TypedStorage<8, 8, uint64> mRidingLoop;
34 ::ll::TypedStorage<4, 4, float> mSmoothSpeed;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 Minecart();
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 8
45 virtual ~Minecart() /*override*/;
46
47 // vIndex: 2
48 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
49
50 // vIndex: 3
51 virtual void reloadHardcodedClient(::ActorInitializationMethod method) /*override*/;
52
53 // vIndex: 138
54 virtual void destroy(::ActorDamageSource const&, bool dropMinecartComponents);
55
56 // vIndex: 139
57 virtual ::MinecartType getType() = 0;
58
59 // vIndex: 140
60 virtual ::Block const* getDefaultDisplayBlock() const;
61
62 // vIndex: 141
63 virtual int getDefaultDisplayOffset() const;
64
65 // vIndex: 35
66 virtual float getShadowRadius() const /*override*/;
67
68 // vIndex: 91
69 virtual ::ActorUniqueID getControllingPlayer() const /*override*/;
70
71 // vIndex: 64
72 virtual bool isInvulnerableTo(::ActorDamageSource const& source) const /*override*/;
73
74 // vIndex: 15
75 virtual float getInterpolatedBodyYaw(float) const /*override*/;
76
77 // vIndex: 136
78 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
79
80 // vIndex: 137
81 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
82
83 // vIndex: 122
84 virtual void kill() /*override*/;
85
86 // vIndex: 135
87 virtual bool _hurt(::ActorDamageSource const& source, float damage, bool, bool) /*override*/;
88
89 // vIndex: 142
90 virtual void applyNaturalSlowdown(::BlockSource&);
91
92 // vIndex: 143
93 virtual void _lazyInitDisplayBlock();
94 // NOLINTEND
95
96public:
97 // member functions
98 // NOLINTBEGIN
99 MCAPI Minecart(
100 ::ActorDefinitionGroup* definitions,
101 ::ActorDefinitionIdentifier const& definitionName,
102 ::EntityContext& entityContext
103 );
104
105 MCAPI void _registerLoopingSounds();
106
107 MCAPI void dropMinecartWithContentsAndRemove(::std::string_view vanillaMinecartName, bool dropMinecartComponents);
108
109 MCAPI void postNormalTick(::BlockPos const& preNormalTickBlockPos);
110
111 MCAPI ::BlockPos preNormalTick();
112
113 MCAPI void setDisplayBlock(::Block const& block);
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 // destructor thunk
128 // NOLINTBEGIN
129 MCAPI void $dtor();
130 // NOLINTEND
131
132public:
133 // virtual function thunks
134 // NOLINTBEGIN
135 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
136
137 MCAPI void $reloadHardcodedClient(::ActorInitializationMethod method);
138
139 MCAPI void $destroy(::ActorDamageSource const&, bool dropMinecartComponents);
140
141 MCFOLD ::Block const* $getDefaultDisplayBlock() const;
142
143 MCFOLD int $getDefaultDisplayOffset() const;
144
145 MCFOLD float $getShadowRadius() const;
146
147 MCFOLD ::ActorUniqueID $getControllingPlayer() const;
148
149 MCFOLD bool $isInvulnerableTo(::ActorDamageSource const& source) const;
150
151 MCAPI float $getInterpolatedBodyYaw(float) const;
152
153 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
154
155 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
156
157 MCAPI void $kill();
158
159 MCAPI bool $_hurt(::ActorDamageSource const& source, float damage, bool, bool);
160
161 MCAPI void $applyNaturalSlowdown(::BlockSource&);
162
163 MCAPI void $_lazyInitDisplayBlock();
164 // NOLINTEND
165
166public:
167 // vftables
168 // NOLINTBEGIN
169 MCNAPI static void** $vftable();
170 // NOLINTEND
171};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:29
Definition Actor.h:103
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition Minecart.h:25
static MCAPI void ** $vftable()
Definition ActorDefinitionIdentifier.h:15
Definition ActorUniqueID.h:5
Definition VariantParameterList.h:5