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
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 Minecart& operator=(Minecart const&);
40 Minecart(Minecart const&);
41 Minecart();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 // vIndex: 8
47 virtual ~Minecart() /*override*/;
48
49 // vIndex: 2
50 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
51
52 // vIndex: 3
53 virtual void reloadHardcodedClient(::ActorInitializationMethod method) /*override*/;
54
55 // vIndex: 138
56 virtual void destroy(::ActorDamageSource const&, bool dropMinecartComponents);
57
58 // vIndex: 139
59 virtual ::MinecartType getType() = 0;
60
61 // vIndex: 140
62 virtual ::Block const* getDefaultDisplayBlock() const;
63
64 // vIndex: 141
65 virtual int getDefaultDisplayOffset() const;
66
67 // vIndex: 35
68 virtual float getShadowRadius() const /*override*/;
69
70 // vIndex: 91
71 virtual ::ActorUniqueID getControllingPlayer() const /*override*/;
72
73 // vIndex: 64
74 virtual bool isInvulnerableTo(::ActorDamageSource const& source) const /*override*/;
75
76 // vIndex: 15
77 virtual float getInterpolatedBodyYaw(float) const /*override*/;
78
79 // vIndex: 136
80 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
81
82 // vIndex: 137
83 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
84
85 // vIndex: 122
86 virtual void kill() /*override*/;
87
88 // vIndex: 135
89 virtual bool _hurt(::ActorDamageSource const& source, float damage, bool, bool) /*override*/;
90
91 // vIndex: 142
92 virtual void applyNaturalSlowdown(::BlockSource&);
93
94 // vIndex: 143
95 virtual void _lazyInitDisplayBlock();
96 // NOLINTEND
97
98public:
99 // member functions
100 // NOLINTBEGIN
101 MCAPI Minecart(
102 ::ActorDefinitionGroup* definitions,
103 ::ActorDefinitionIdentifier const& definitionName,
104 ::EntityContext& entityContext
105 );
106
107 MCAPI void _registerLoopingSounds();
108
109 MCAPI void dropMinecartWithContentsAndRemove(::std::string_view vanillaMinecartName, bool dropMinecartComponents);
110
111 MCAPI void postNormalTick(::BlockPos const& preNormalTickBlockPos);
112
113 MCAPI ::BlockPos preNormalTick();
114
115 MCAPI void setDisplayBlock(::Block const& block);
116 // NOLINTEND
117
118public:
119 // constructor thunks
120 // NOLINTBEGIN
121 MCAPI void* $ctor(
122 ::ActorDefinitionGroup* definitions,
123 ::ActorDefinitionIdentifier const& definitionName,
124 ::EntityContext& entityContext
125 );
126 // NOLINTEND
127
128public:
129 // destructor thunk
130 // NOLINTBEGIN
131 MCAPI void $dtor();
132 // NOLINTEND
133
134public:
135 // virtual function thunks
136 // NOLINTBEGIN
137 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
138
139 MCAPI void $reloadHardcodedClient(::ActorInitializationMethod method);
140
141 MCAPI void $destroy(::ActorDamageSource const&, bool dropMinecartComponents);
142
143 MCFOLD ::Block const* $getDefaultDisplayBlock() const;
144
145 MCFOLD int $getDefaultDisplayOffset() const;
146
147 MCFOLD float $getShadowRadius() const;
148
149 MCFOLD ::ActorUniqueID $getControllingPlayer() const;
150
151 MCFOLD bool $isInvulnerableTo(::ActorDamageSource const& source) const;
152
153 MCAPI float $getInterpolatedBodyYaw(float) const;
154
155 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
156
157 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
158
159 MCAPI void $kill();
160
161 MCAPI bool $_hurt(::ActorDamageSource const& source, float damage, bool, bool);
162
163 MCAPI void $applyNaturalSlowdown(::BlockSource&);
164
165 MCAPI void $_lazyInitDisplayBlock();
166 // NOLINTEND
167
168public:
169 // vftables
170 // NOLINTBEGIN
171 MCAPI static void** $vftable();
172 // NOLINTEND
173};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:27
Definition Actor.h:104
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition Minecart.h:25
Definition ActorDefinitionIdentifier.h:13
Definition ActorUniqueID.h:5
Definition VariantParameterList.h:5
Definition Alias.h:14