LeviLamina
Loading...
Searching...
No Matches
Mob.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/deps/shared_types/legacy/actor/ActorDamageCause.h"
8#include "mc/deps/shared_types/legacy/actor/ArmorSlot.h"
9#include "mc/deps/shared_types/legacy/item/EquipmentSlot.h"
10#include "mc/legacy/ActorUniqueID.h"
11#include "mc/world/actor/Actor.h"
12#include "mc/world/actor/ActorEvent.h"
13#include "mc/world/actor/ActorInitializationMethod.h"
14#include "mc/world/actor/ArmorMaterialType.h"
15#include "mc/world/actor/BuiltInMobComponents.h"
16#include "mc/world/actor/MobSpawnMethod.h"
17#include "mc/world/actor/TravelType.h"
18#include "mc/world/item/ClockSpriteCalculator.h"
19#include "mc/world/item/CompassSpriteCalculator.h"
20#include "mc/world/level/BlockPos.h"
21
22// auto generated forward declare list
23// clang-format off
24class AABB;
28class Block;
29class BodyControl;
30class CompoundTag;
31class DataLoadHelper;
32class EntityContext;
33class HashedString;
34class IOptionsReader;
35class ItemStack;
36class ListTag;
37class SaveContext;
39class Vec3;
44namespace mce { class UUID; }
45// clang-format on
46
47class Mob : public ::Actor {
48public:
49 LLAPI void refreshInventory();
50
51 LLAPI static ::Mob* tryGetFromEntity(::EntityContext& entity, bool includeRemoved);
52
53public:
54 // member variables
55 // NOLINTBEGIN
56 ::ll::TypedStorage<4, 4, float> mHurtDir;
57 ::ll::TypedStorage<4, 4, float> mOTilt;
58 ::ll::TypedStorage<4, 4, float> mTilt;
59 ::ll::TypedStorage<8, 32, ::CompassSpriteCalculator> mCompassSpriteCalc;
60 ::ll::TypedStorage<8, 32, ::CompassSpriteCalculator> mRecoveryCompassSpriteCalc;
61 ::ll::TypedStorage<4, 12, ::ClockSpriteCalculator> mClockSpriteCalc;
62 ::ll::TypedStorage<4, 4, float> mAttackAnim;
63 ::ll::TypedStorage<4, 4, int> mSwingTime;
64 ::ll::TypedStorage<8, 24, ::BuiltInMobComponents> mBuiltInMobComponents;
65 ::ll::TypedStorage<4, 4, float> mMovementComponentCurrentSpeed;
66 ::ll::TypedStorage<1, 1, bool> mSwinging;
67 ::ll::TypedStorage<1, 1, bool> mSurfaceMob;
68 ::ll::TypedStorage<1, 1, bool> mNaturallySpawned;
69 ::ll::TypedStorage<1, 1, bool> mWantsToBeJockey;
70 ::ll::TypedStorage<1, 1, bool> mHasBoundOrigin;
71 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mActuallyDoKnockbackOrNotReallyBadHackDoNotUse;
72 ::ll::TypedStorage<1, 1, ::MobSpawnMethod> mSpawnMethod;
73 ::ll::TypedStorage<1, 1, bool> mCreateAiOnReload;
74 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mCaravanHead;
75 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mCaravanTail;
76 ::ll::TypedStorage<4, 4, float> mOAttackAnim;
77 ::ll::TypedStorage<4, 12, ::BlockPos> mBoundOrigin;
78 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetCaptainId;
79 // NOLINTEND
80
81public:
82 // prevent constructor by default
83 Mob();
84
85public:
86 // virtual functions
87 // NOLINTBEGIN
88 // vIndex: 4
89 virtual void
90 initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
91
92 // vIndex: 3
93 virtual void reloadHardcodedClient(::ActorInitializationMethod method) /*override*/;
94
95 // vIndex: 2
96 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
97
98 // vIndex: 8
99 virtual ~Mob() /*override*/;
100
101 // vIndex: 138
102 virtual void
103 knockback(::Actor*, int, float xd, float zd, float horizontalPower, float verticalPower, float heightCap);
104
105 // vIndex: 122
106 virtual void kill() /*override*/;
107
108 // vIndex: 123
109 virtual void die(::ActorDamageSource const& source) /*override*/;
110
111 // vIndex: 124
112 virtual bool shouldDropDeathLoot() const /*override*/;
113
114 // vIndex: 139
115 virtual void spawnAnim();
116
117 // vIndex: 47
118 virtual bool isAlive() const /*override*/;
119
120 // vIndex: 42
121 virtual bool isSleeping() const /*override*/;
122
123 // vIndex: 43
124 virtual void setSleeping(bool val) /*override*/;
125
126 // vIndex: 45
127 virtual bool isBlocking() const /*override*/;
128
129 // vIndex: 140
130 virtual void setSprinting(bool shouldSprint);
131
132 // vIndex: 96
133 virtual bool canBePulledIntoVehicle() const /*override*/;
134
135 // vIndex: 141
136 virtual ::SharedTypes::Legacy::LevelSoundEvent getDeathSound();
137
138 // vIndex: 142
139 virtual float getSpeed() const;
140
141 // vIndex: 143
142 virtual void setSpeed(float speed);
143
144 // vIndex: 16
145 virtual float getYawSpeedInDegreesPerSecond() const /*override*/;
146
147 // vIndex: 24
148 virtual void normalTick() /*override*/;
149
150 // vIndex: 25
151 virtual void baseTick() /*override*/;
152
153 // vIndex: 144
154 virtual void hurtEffects(::ActorDamageSource const& source, float damage, bool knock, bool ignite);
155
156 // vIndex: 145
157 virtual void damageCarriedItemOnAttack(::Actor& target, float);
158
159 // vIndex: 66
160 virtual bool doFireHurt(int amount) /*override*/;
161
162 // vIndex: 146
163 virtual void aiStep();
164
165 // vIndex: 147
166 virtual void pushActors();
167
168 // vIndex: 148
169 virtual bool checkSpawnRules(bool);
170
171 // vIndex: 149
172 virtual bool checkSpawnObstruction() const;
173
174 // vIndex: 28
175 virtual void addPassenger(::Actor& passenger) /*override*/;
176
177 // vIndex: 27
178 virtual bool startRiding(::Actor& vehicle, bool forceRiding) /*override*/;
179
180 // vIndex: 69
181 virtual void handleEntityEvent(::ActorEvent eventId, int data) /*override*/;
182
183 // vIndex: 150
184 virtual int getItemUseDuration() const;
185
186 // vIndex: 151
187 virtual float getItemUseStartupProgress() const;
188
189 // vIndex: 152
190 virtual float getItemUseIntervalProgress() const;
191
192 // vIndex: 111
193 virtual bool swing() /*override*/;
194
195 // vIndex: 153
196 virtual float getMaxHeadXRot();
197
198 // vIndex: 40
199 virtual bool isImmobile() const /*override*/;
200
201 // vIndex: 19
202 virtual void blockedByShield(::ActorDamageSource const& source, ::Actor& blocker) /*override*/;
203
204 // vIndex: 51
205 virtual void setTarget(::Actor* entity) /*override*/;
206
207 // vIndex: 53
208 virtual bool attack(::Actor&, ::SharedTypes::Legacy::ActorDamageCause const&) /*override*/;
209
210 // vIndex: 154
211 virtual bool isAlliedTo(::Mob*);
212
213 // vIndex: 155
214 virtual bool doHurtTarget(::Actor*, ::SharedTypes::Legacy::ActorDamageCause const&);
215
216 // vIndex: 65
217 virtual ::SharedTypes::Legacy::ActorDamageCause getBlockDamageCause(::Block const&) const /*override*/;
218
219 // vIndex: 97
220 virtual bool inCaravan() const /*override*/;
221
222 // vIndex: 156
223 virtual int getArmorValue() const;
224
225 // vIndex: 157
226 virtual void hurtArmorSlots(::ActorDamageSource const& source, int damage, ::std::bitset<5> const hurtSlots);
227
228 // vIndex: 158
229 virtual void setDamagedArmor(::SharedTypes::Legacy::ArmorSlot, ::ItemStack const&);
230
231 // vIndex: 159
232 virtual void sendArmorDamage(::std::bitset<5> const);
233
234 // vIndex: 160
235 virtual void sendArmor(::std::bitset<5> const armorSlots);
236
237 // vIndex: 73
238 virtual ::ArmorMaterialType getArmorMaterialTypeInSlot(::SharedTypes::Legacy::ArmorSlot) const /*override*/;
239
240 // vIndex: 74
241 virtual int getArmorTextureIndexInSlot(::SharedTypes::Legacy::ArmorSlot) const /*override*/;
242
243 // vIndex: 75
244 virtual float getArmorColorInSlot(::SharedTypes::Legacy::ArmorSlot, int) const /*override*/;
245
246 // vIndex: 161
247 virtual ::std::vector<::ItemStack const*> getAllHandEquipment() const;
248
249 // vIndex: 162
250 virtual ::std::vector<::ItemStack const*> getAllEquipment() const;
251
252 // vIndex: 104
253 virtual int getDeathTime() const /*override*/;
254
255 // vIndex: 164
256 virtual void dropEquipmentOnDeath(::ActorDamageSource const& source);
257
258 // vIndex: 163
259 virtual void dropEquipmentOnDeath();
260
261 // vIndex: 165
262 virtual void clearVanishEnchantedItemsOnDeath();
263
264 // vIndex: 166
265 virtual void sendInventory(bool);
266
267 // vIndex: 102
268 virtual void buildDebugInfo(::std::string& out) const /*override*/;
269
270 // vIndex: 13
271 virtual float getInterpolatedBodyRot(float a) const /*override*/;
272
273 // vIndex: 14
274 virtual float getInterpolatedHeadRot(float a) const /*override*/;
275
276 // vIndex: 15
277 virtual float getInterpolatedBodyYaw(float a) const /*override*/;
278
279 // vIndex: 49
280 virtual bool isSurfaceMob() const /*override*/;
281
282 // vIndex: 167
283 virtual float getDamageAfterEnchantReduction(::ActorDamageSource const& source, float damage) const;
284
285 // vIndex: 168
286 virtual bool createAIGoals();
287
288 // vIndex: 169
289 virtual void onBorn(::Actor&, ::Actor&);
290
291 // vIndex: 170
292 virtual bool setItemSlot(::SharedTypes::Legacy::EquipmentSlot slot, ::ItemStack const& item);
293
294 // vIndex: 171
295 virtual void setTransitioningSitting(bool value);
296
297 // vIndex: 0
298 virtual bool hasComponent(::HashedString const& name) const /*override*/;
299
300 // vIndex: 88
301 virtual bool canChangeDimensionsUsingPortal() const /*override*/;
302
303 // vIndex: 21
304 virtual void teleportTo(
305 ::Vec3 const& pos,
306 bool shouldStopRiding,
307 int cause,
308 int sourceEntityType,
309 bool keepVelocity
310 ) /*override*/;
311
312 // vIndex: 172
313 virtual float _getWalkTargetValue(::BlockPos const&);
314
315 // vIndex: 173
316 virtual bool canExistWhenDisallowMob() const;
317
318 // vIndex: 60
319 virtual bool canPowerJump() const /*override*/;
320
321 // vIndex: 76
322 virtual void setEquippedSlot(::SharedTypes::Legacy::EquipmentSlot slot, ::ItemStack const& item) /*override*/;
323
324 // vIndex: 121
325 virtual void renderDebugServerState(::IOptionsReader const& options) /*override*/;
326
327 // vIndex: 85
328 virtual bool canFreeze() const /*override*/;
329
330 // vIndex: 174
331 virtual void tickDeath();
332
333 // vIndex: 137
334 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
335
336 // vIndex: 136
337 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
338
339 // vIndex: 175
340 virtual ::std::unique_ptr<::BodyControl> initBodyControl();
341
342 // vIndex: 92
343 virtual float causeFallDamageToActor(float distance, float multiplier, ::ActorDamageSource source) /*override*/;
344
345 // vIndex: 1
346 virtual void outOfWorld() /*override*/;
347
348 // vIndex: 135
349 virtual bool _hurt(::ActorDamageSource const& source, float damage, bool knock, bool) /*override*/;
350
351 // vIndex: 176
352 virtual void newServerAiStep();
353
354 // vIndex: 7
355 virtual void _doInitialMove() /*override*/;
356
357 // vIndex: 177
358 virtual ::AABB _getAdjustedAABBForSpawnCheck(::AABB const& aabb, ::Vec3 const&) const;
359 // NOLINTEND
360
361public:
362 // member functions
363 // NOLINTBEGIN
364 MCAPI
365 Mob(::ActorDefinitionGroup* definitions,
366 ::ActorDefinitionIdentifier const& definitionName,
367 ::EntityContext& entityContext);
368
369 MCAPI ::BuiltInMobComponents _addBuiltInMobComponents();
370
371 MCAPI void _doSprintParticleEffect();
372
373 MCAPI bool _initHardCodedComponents(bool isClientSide);
374
375 MCAPI void _initialize(::EntityContext& entityContext, bool isClientSide);
376
377 MCAPI void _processSoulSpeed();
378
379 MCAPI void _registerMobAttributes();
380
381 MCAPI ::std::unique_ptr<::ListTag> _saveArmor(::SaveContext const& saveContext) const;
382
383 MCAPI void _updateSprintingState();
384
385 MCAPI void _verifyAttributes();
386
387 MCAPI void
388 addSpeedModifier(::mce::UUID const& attributeID, ::std::string const& attributeName, float speedModifier);
389
390 MCAPI float calcMoveRelativeSpeed(::TravelType travelType);
391
392 MCAPI float calculateAttackDamage(::Actor const& target) const;
393
394 MCAPI float calculateAttackDamage(::Actor const& target, float baseAttackDamage) const;
395
396 MCAPI bool checkForPostHitDamageImmunity(float damageDifference, ::ActorDamageSource const& source);
397
398 MCAPI bool checkTotemDeathProtection(::ActorDamageSource const& killingDamage);
399
400 MCAPI void clearMainHandSlot();
401
402 MCAPI void containerChanged(int iSlot);
403
404 MCAPI void createAI(::std::vector<::LegacyGoalDefinition> goals);
405
406 MCAPI void dropBags();
407
408 MCAPI void dropContainer();
409
410 MCAPI void emitJumpPreventedEvent(::BlockPos const& pos);
411
412 MCAPI void frostWalk();
413
414 MCAPI float getArmorCoverPercentage() const;
415
416 MCAPI int getArmorTypeHash();
417
418 MCAPI int getCaravanSize() const;
419
420 MCAPI int getCarriedItemKnockbackBonus() const;
421
422 MCAPI float getDamageAfterDamageSensorComponentAdjustments(::ActorDamageSource const& source, float damage);
423
424 MCAPI float getDamageAfterResistanceEffect(::ActorDamageSource const& source, float damage) const;
425
426 MCAPI ::SharedTypes::Legacy::ActorDamageCause getDamageCause() const;
427
428 MCAPI int getEatCounter() const;
429
430 MCAPI float getExpectedFallDamage(float distance, float multiplier) const;
431
432 MCAPI ::Mob* getFirstCaravanHead();
433
434 MCAPI ::SharedTypes::Legacy::LevelSoundEvent getHurtSound(::SharedTypes::Legacy::ActorDamageCause cause);
435
436 MCAPI ::ItemStack const& getItemSlot(::SharedTypes::Legacy::EquipmentSlot slot) const;
437
438 MCAPI float getJumpEffectAmplifierValue();
439
440 MCAPI ::JumpPreventionResult getJumpPrevention();
441
442 MCAPI int getModifiedSwingDuration() const;
443
444 MCAPI ::SharedTypes::Legacy::LevelSoundEvent getSpawnSound() const;
445
446 MCAPI int getToughnessValue() const;
447
448 MCAPI ::TravelType getTravelType();
449
450 MCAPI float getYBodyRotation() const;
451
452 MCAPI void hurtArmor(::ActorDamageSource const& source, int damage);
453
454 MCAPI void jumpFromGround();
455
456 MCAPI void knockback(::Actor* source, int damage, float xd, float zd, float horizontalPower, float verticalPower);
457
458 MCAPI void lookAt(::Actor* lookAt, float yMax, float xMax);
459
460 MCAPI void removeSpeedModifier(::mce::UUID const& attributeID);
461
462 MCAPI void resetAttributes();
463
464 MCAPI ::std::unique_ptr<::ListTag> saveOffhand(::SaveContext const& saveContext) const;
465
466 MCAPI void sendArmorSlot(::SharedTypes::Legacy::ArmorSlot slot);
467
468 MCAPI void setEatCounter(int value);
469
470 MCAPI void setJumpTicks(int ticks);
471
472 MCAPI void setYBodyRotation(float rotation);
473
474 MCAPI bool shouldApplyWaterGravity();
475
476 MCAPI void snapToYBodyRot(float yBodyRot);
477
478 MCAPI void snapToYHeadRot(float yHeadRot);
479
480 MCAPI void tickMobEffectsVisuals();
481
482 MCAPI void updateEquipment();
483
484 MCAPI void updateGlidingDurability();
485 // NOLINTEND
486
487public:
488 // static functions
489 // NOLINTBEGIN
490 MCAPI static void setSprinting(::BaseAttributeMap& attributes, ::SynchedActorDataWriter data, bool shouldSprint);
491 // NOLINTEND
492
493public:
494 // static variables
495 // NOLINTBEGIN
496 MCAPI static float const& ASCEND_BLOCK_BY_JUMPING_SPEED();
497
498 MCAPI static float const& DEFAULT_GRAVITY();
499
500 MCAPI static float const& FRICTION_CONSTANT();
501
502 MCAPI static float const& FRICTION_CONSTANT_MODIFIED();
503
504 MCAPI static float const& FRICTION_MODIFIER();
505
506 MCAPI static float const& GLIDING_FALL_RESET_DELTA();
507
508 MCAPI static float const& LADDER_CLIMB_SPEED();
509
510 MCAPI static int const& REMOVE_PASSENGERS_DELAY();
511
512 MCAPI static float const& SLOW_FALL_GRAVITY();
513
514 MCAPI static int const& SPAWN_XP_DELAY();
515 // NOLINTEND
516
517public:
518 // constructor thunks
519 // NOLINTBEGIN
520 MCAPI void* $ctor(
521 ::ActorDefinitionGroup* definitions,
522 ::ActorDefinitionIdentifier const& definitionName,
523 ::EntityContext& entityContext
524 );
525 // NOLINTEND
526
527public:
528 // destructor thunk
529 // NOLINTBEGIN
530 MCAPI void $dtor();
531 // NOLINTEND
532
533public:
534 // virtual function thunks
535 // NOLINTBEGIN
536 MCAPI void $initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params);
537
538 MCAPI void $reloadHardcodedClient(::ActorInitializationMethod method);
539
540 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
541
542 MCAPI void
543 $knockback(::Actor*, int, float xd, float zd, float horizontalPower, float verticalPower, float heightCap);
544
545 MCAPI void $kill();
546
547 MCAPI void $die(::ActorDamageSource const& source);
548
549 MCAPI bool $shouldDropDeathLoot() const;
550
551 MCFOLD void $spawnAnim();
552
553 MCAPI bool $isAlive() const;
554
555 MCAPI bool $isSleeping() const;
556
557 MCAPI void $setSleeping(bool val);
558
559 MCAPI bool $isBlocking() const;
560
561 MCAPI void $setSprinting(bool shouldSprint);
562
563 MCFOLD bool $canBePulledIntoVehicle() const;
564
565 MCAPI ::SharedTypes::Legacy::LevelSoundEvent $getDeathSound();
566
567 MCAPI float $getSpeed() const;
568
569 MCAPI void $setSpeed(float speed);
570
571 MCAPI float $getYawSpeedInDegreesPerSecond() const;
572
573 MCAPI void $normalTick();
574
575 MCAPI void $baseTick();
576
577 MCAPI void $hurtEffects(::ActorDamageSource const& source, float damage, bool knock, bool ignite);
578
579 MCAPI void $damageCarriedItemOnAttack(::Actor& target, float);
580
581 MCAPI bool $doFireHurt(int amount);
582
583 MCAPI void $aiStep();
584
585 MCAPI void $pushActors();
586
587 MCAPI bool $checkSpawnRules(bool);
588
589 MCAPI bool $checkSpawnObstruction() const;
590
591 MCAPI void $addPassenger(::Actor& passenger);
592
593 MCAPI bool $startRiding(::Actor& vehicle, bool forceRiding);
594
595 MCAPI void $handleEntityEvent(::ActorEvent eventId, int data);
596
597 MCFOLD int $getItemUseDuration() const;
598
599 MCFOLD float $getItemUseStartupProgress() const;
600
601 MCFOLD float $getItemUseIntervalProgress() const;
602
603 MCAPI bool $swing();
604
605 MCAPI float $getMaxHeadXRot();
606
607 MCAPI bool $isImmobile() const;
608
609 MCAPI void $blockedByShield(::ActorDamageSource const& source, ::Actor& blocker);
610
611 MCAPI void $setTarget(::Actor* entity);
612
613 MCFOLD bool $isAlliedTo(::Mob*);
614
615 MCAPI bool $inCaravan() const;
616
617 MCAPI int $getArmorValue() const;
618
619 MCAPI void $hurtArmorSlots(::ActorDamageSource const& source, int damage, ::std::bitset<5> const hurtSlots);
620
621 MCFOLD void $sendArmorDamage(::std::bitset<5> const);
622
623 MCAPI void $sendArmor(::std::bitset<5> const armorSlots);
624
625 MCAPI ::std::vector<::ItemStack const*> $getAllHandEquipment() const;
626
627 MCAPI ::std::vector<::ItemStack const*> $getAllEquipment() const;
628
629 MCAPI int $getDeathTime() const;
630
631 MCAPI void $dropEquipmentOnDeath(::ActorDamageSource const& source);
632
633 MCAPI void $dropEquipmentOnDeath();
634
635 MCAPI void $clearVanishEnchantedItemsOnDeath();
636
637 MCAPI void $sendInventory(bool);
638
639 MCAPI void $buildDebugInfo(::std::string& out) const;
640
641 MCAPI float $getInterpolatedBodyRot(float a) const;
642
643 MCAPI float $getInterpolatedHeadRot(float a) const;
644
645 MCAPI float $getInterpolatedBodyYaw(float a) const;
646
647 MCAPI bool $isSurfaceMob() const;
648
649 MCAPI float $getDamageAfterEnchantReduction(::ActorDamageSource const& source, float damage) const;
650
651 MCAPI bool $createAIGoals();
652
653 MCFOLD void $onBorn(::Actor&, ::Actor&);
654
655 MCAPI bool $setItemSlot(::SharedTypes::Legacy::EquipmentSlot slot, ::ItemStack const& item);
656
657 MCAPI void $setTransitioningSitting(bool value);
658
659 MCAPI bool $hasComponent(::HashedString const& name) const;
660
661 MCAPI bool $canChangeDimensionsUsingPortal() const;
662
663 MCAPI void
664 $teleportTo(::Vec3 const& pos, bool shouldStopRiding, int cause, int sourceEntityType, bool keepVelocity);
665
666 MCFOLD float $_getWalkTargetValue(::BlockPos const&);
667
668 MCAPI bool $canExistWhenDisallowMob() const;
669
670 MCAPI bool $canPowerJump() const;
671
672 MCAPI void $setEquippedSlot(::SharedTypes::Legacy::EquipmentSlot slot, ::ItemStack const& item);
673
674 MCFOLD void $renderDebugServerState(::IOptionsReader const& options);
675
676 MCAPI bool $canFreeze() const;
677
678 MCAPI void $tickDeath();
679
680 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
681
682 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
683
684 MCAPI ::std::unique_ptr<::BodyControl> $initBodyControl();
685
686 MCAPI float $causeFallDamageToActor(float distance, float multiplier, ::ActorDamageSource source);
687
688 MCAPI void $outOfWorld();
689
690 MCAPI bool $_hurt(::ActorDamageSource const& source, float damage, bool knock, bool);
691
692 MCFOLD void $newServerAiStep();
693
694 MCAPI void $_doInitialMove();
695
696 MCAPI ::AABB $_getAdjustedAABBForSpawnCheck(::AABB const& aabb, ::Vec3 const&) const;
697 // NOLINTEND
698
699public:
700 // vftables
701 // NOLINTBEGIN
702 MCAPI static void** $vftable();
703 // NOLINTEND
704};
Definition AABB.h:18
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:35
Definition Actor.h:102
Definition BaseAttributeMap.h:16
Definition BlockPos.h:17
Definition Block.h:38
Definition BodyControl.h:13
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition HashedString.h:5
Definition IOptionsReader.h:16
Definition ItemStack.h:23
Definition ListTag.h:12
Definition Mob.h:47
Definition SaveContext.h:5
Definition SynchedActorDataWriter.h:12
Definition Vec3.h:10
Definition UUID.h:7
Definition ActorDefinitionIdentifier.h:15
Definition JumpPreventionResult.h:5
Definition LegacyGoalDefinition.h:33
Definition VariantParameterList.h:13