128 using EntityBlockCollisionCallback =
132 LLNDAPI
class EntityContext& getEntityContext() {
return mEntityContext; }
133 LLNDAPI
class EntityContext const& getEntityContext()
const {
return mEntityContext; }
135 LLAPI
void refresh();
139 LLNDAPI std::string
const& getTypeName()
const;
141 LLNDAPI
class Vec3 getFeetPos() const;
143 LLNDAPI
class Vec3 getHeadPos() const;
145 LLNDAPI
class BlockPos getFeetBlockPos() const;
147 LLNDAPI
bool isSimulatedPlayer()
const;
149 LLNDAPI
bool isOnGround()
const;
151 LLAPI
void setOnFire(
int time,
bool hasEffect =
true);
152 LLAPI
void stopFire();
154 LLNDAPI
Vec3 getVelocity()
const;
155 LLNDAPI
float getPosDeltaPerSecLength()
const;
157 LLAPI
bool hurtByCause(
159 ::SharedTypes::Legacy::ActorDamageCause cause = ::SharedTypes::Legacy::ActorDamageCause::Override,
165 bool includeActor =
true,
166 bool includeBlock =
true,
167 std::function<bool(
class BlockSource const&,
class Block const&,
bool)>
const& blockCheckFunction =
168 [](
auto&&...) ->
bool {
return true; }
174 LLAPI
void setName(std::string
const& name);
176 LLNDAPI
float evalMolang(std::string
const& expression);
178 LLNDAPI
AABB const& getAABB()
const {
return mBuiltInComponents->mAABBShapeComponent->mAABB; }
180 LLAPI static ::Actor* tryGetFromEntity(
::EntityContext& entity,
bool includeRemoved);
182 [[nodiscard]]
Level& getLevel()
const {
return *
reinterpret_cast<Level*
>(mLevel); }
184 [[nodiscard]]
Vec3 const& getPosition()
const {
return mBuiltInComponents->mStateVectorComponent->mPos; }
186 [[nodiscard]]
Vec3 const& getPosDelta()
const {
return mBuiltInComponents->mStateVectorComponent->mPosDelta; }
188 [[nodiscard]]
Vec2 const& getRotation()
const {
return mBuiltInComponents->mActorRotationComponent->mRot; }
190 [[nodiscard]]
bool hasCategory(ActorCategory category)
const {
return (mCategories & category) == category; }
192 LLNDAPI ::DimensionType getDimensionId()
const;
194 LLNDAPI
bool isType(::ActorType type)
const;
196 LLNDAPI
bool isPlayer()
const;
201 ::ll::TypedStorage<8, 24, ::EntityContext> mEntityContext;
202 ::ll::TypedStorage<8, 72, ::VariantParameterList> mInitParams;
203 ::ll::TypedStorage<8, 32, ::std::string> mCustomInitEventName;
204 ::ll::TypedStorage<1, 1, ::ActorInitializationMethod> mInitMethod;
205 ::ll::TypedStorage<1, 1, bool> mForceInitMethodToSpawnOnReload;
206 ::ll::TypedStorage<1, 1, bool> mAdded;
207 ::ll::TypedStorage<8, 8, ::ActorDefinitionGroup*> mDefinitions;
208 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorDefinitionDescriptor>> mCurrentDescription;
209 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::RopeSystem>> mLeashRopeSystem;
210 ::ll::TypedStorage<8, 32, ::std::string> mAlias;
211 ::ll::TypedStorage<4, 68, ::std::optional<::glm::mat4x4>> mPreviousRenderTransform;
212 ::ll::TypedStorage<4, 4, int> mLastHurtByPlayerTime;
213 ::ll::TypedStorage<8, 16, ::std::map<::HashedString, ::std::vector<::std::vector<::glm::mat4x4>>>>
214 mPreviousBoneMatrices;
215 ::ll::TypedStorage<8, 48, ::SynchedActorDataEntityWrapper> mEntityData;
216 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SpatialActorNetworkData>> mNetworkData;
217 ::ll::TypedStorage<4, 12, ::Vec3> mSentDelta;
218 ::ll::TypedStorage<4, 4, float> mScale;
219 ::ll::TypedStorage<4, 4, float> mScalePrev;
220 ::ll::TypedStorage<1, 1, bool> mIgnoreLighting;
221 ::ll::TypedStorage<1, 1, bool> mFilterLighting;
222 ::ll::TypedStorage<4, 4, float> mStepSoundVolume;
223 ::ll::TypedStorage<4, 4, float> mStepSoundPitch;
224 ::ll::TypedStorage<8, 8, ::AABB*> mLastHitBB;
225 ::ll::TypedStorage<8, 8, uint64> mNameTagHash;
226 ::ll::TypedStorage<4, 4, float> mShadowOffset;
227 ::ll::TypedStorage<4, 4, float> mPushThrough;
228 ::ll::TypedStorage<4, 4, int> mTickCount;
229 ::ll::TypedStorage<4, 4, int> mInvulnerableTime;
230 ::ll::TypedStorage<4, 4, int> mLastHealth;
231 ::ll::TypedStorage<1, 1, bool> mInvulnerable;
232 ::ll::TypedStorage<4, 4, int> mFlameTexFrameIndex;
233 ::ll::TypedStorage<4, 4, float> mFlameFrameIncrementTime;
234 ::ll::TypedStorage<1, 1, bool> mAlwaysFireImmune;
235 ::ll::TypedStorage<1, 1, bool> mInheritRotationWhenRiding;
236 ::ll::TypedStorage<1, 1, bool> mForcedLoading;
237 ::ll::TypedStorage<1, 1, bool> mHighlightedThisFrame;
238 ::ll::TypedStorage<1, 1, bool> mInitialized;
239 ::ll::TypedStorage<1, 1, bool> mProcessedOnChunkDiscard;
240 ::ll::TypedStorage<4, 4, float> mSoundVolume;
241 ::ll::TypedStorage<4, 4, int> mShakeTime;
242 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLegacyUniqueID;
243 ::ll::TypedStorage<8, 16, ::WeakRef<::Dimension>> mDimension;
244 ::ll::TypedStorage<8, 8, ::ILevel*> mLevel;
245 ::ll::TypedStorage<8, 48, ::HashedString> mActorRendererId;
246 ::ll::TypedStorage<4, 4, ::ActorCategory> mCategories;
247 ::ll::TypedStorage<4, 4, ::ActorVersion> mVersion;
248 ::ll::TypedStorage<8, 32, ::BuiltInActorComponents> mBuiltInComponents;
249 ::ll::TypedStorage<8, 48, ::HashedString> mActorRendererIdThatAnimationComponentWasInitializedWith;
250 ::ll::TypedStorage<1, 1, bool> mChanged;
251 ::ll::TypedStorage<1, 1, bool> mRemoved;
252 ::ll::TypedStorage<1, 1, bool> mMovedToLimbo;
253 ::ll::TypedStorage<1, 1, bool> mMovedToUnloadedChunk;
254 ::ll::TypedStorage<1, 1, bool> mBlocksBuilding;
255 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mAnimationComponent;
256 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mUIAnimationComponent;
257 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetId;
258 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInLovePartner;
259 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompoundTag>> mPersistingTradeOffers;
260 ::ll::TypedStorage<4, 4, int> mPersistingTradeRiches;
261 ::ll::TypedStorage<1, 1, bool> mPersistingTrade;
262 ::ll::TypedStorage<1, 1, bool> mEffectsDirty;
263 ::ll::TypedStorage<1, 1, bool> mLootDropped;
264 ::ll::TypedStorage<1, 1, bool> mLoadedFromNBTThisFrame;
265 ::ll::TypedStorage<4, 16, ::mce::Color> mHurtColor;
266 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorDefinitionDiffList>> mDefinitionList;
267 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompoundTag>> mLoadedActorPropertyTag;
268 ::ll::TypedStorage<8, 16, ::ActorDefinitionPtr> mActorDefinitionPtr;
269 ::ll::TypedStorage<8, 32, ::std::string> mFilteredNameTag;
270 ::ll::TypedStorage<8, 24, ::ActorTerrainInterlockData> mTerrainInterlockData;
271 ::ll::TypedStorage<1, 1, bool> mWasHurtThisTick;
272 ::ll::TypedStorage<1, 1, bool> mWasHurtLastTick;
273 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastHurtMobId;
274 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastHurtByMobId;
275 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastHurtByPlayerId;
276 ::ll::TypedStorage<8, 8, uint64> mLastHurtTimestamp;
277 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::ActorDamageCause> mLastHurtCause;
278 ::ll::TypedStorage<4, 4, float> mLastHurt;
279 ::ll::TypedStorage<4, 4, int> mLastHurtMobTimestamp;
280 ::ll::TypedStorage<4, 4, int> mLastHurtByMobTime;
281 ::ll::TypedStorage<4, 4, int> mLastHurtByMobTimestamp;
282 ::ll::TypedStorage<1, 1, bool> mIsPredictableProjectile;
283 ::ll::TypedStorage<1, 1, bool> mIsRenderingInUI;
285 ::ll::TypedStorage<1, 1, bool> mIsOnScreen;
286 ::ll::TypedStorage<1, 1, bool> mUpdateBonesAndEffects;
288 ::ll::TypedStorage<1, 1, bool> mUpdateEffects;
289 ::ll::TypedStorage<1, 1, bool> mCanPickupItems;
290 ::ll::TypedStorage<1, 1, bool> mHasSetCanPickupItems;
291 ::ll::TypedStorage<1, 1, bool> mChainedDamageEffects;
292 ::ll::TypedStorage<4, 4, int> mAffectedByWaterBottleTicksToEffect;
293 ::ll::TypedStorage<4, 4, ::SpawnRuleEnum> mSpawnRulesEnum;
294 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActionQueue>> mActionQueue;
295 ::ll::TypedStorage<8, 56, ::MolangVariableMap> mMolangVariables;
296 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mFishingHookID;
306 virtual void outOfWorld();
310 virtual void reloadHardcodedClient(::ActorInitializationMethod method);
312 virtual void initializeComponents(::ActorInitializationMethod method,
::VariantParameterList const& params);
316 virtual void _serverInitItemStackIds();
318 virtual void _doInitialMove();
324 virtual void resetUserPos(::ActorResetRule resetRule);
326 virtual ::ActorType getOwnerEntityType();
328 virtual void remove();
330 virtual ::Vec3 getFiringPos()
const;
332 virtual float getInterpolatedBodyRot(
float a = 0.0f)
const;
334 virtual float getInterpolatedHeadRot(
float a = 0.0f)
const;
336 virtual float getInterpolatedBodyYaw(
float a = 0.0f)
const;
338 virtual float getYawSpeedInDegreesPerSecond()
const;
340 virtual ::Vec3 getInterpolatedRidingOffset(
float,
int const)
const;
342 virtual bool isFireImmune()
const;
346 virtual bool canDisableShield();
349 teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
351 virtual void lerpMotion(
::Vec3 const& delta);
353 virtual ::std::unique_ptr<::Packet> tryCreateAddActorPacket();
355 virtual void normalTick();
357 virtual void baseTick();
359 virtual void passengerTick();
361 virtual bool startRiding(::Actor& vehicle,
bool forceRiding);
363 virtual void addPassenger(::Actor& passenger);
365 virtual ::std::string getExitTip(::std::string
const& kind, ::InputMode mode, ::NewInteractionModel scheme)
const;
367 virtual ::std::string getEntityLocNameString()
const;
369 virtual bool isInvisible()
const;
371 virtual bool canShowNameTag()
const;
373 virtual ::mce::Color getNameTagTextColor()
const;
375 virtual float getShadowRadius()
const;
377 virtual ::Vec3 getHeadLookVector(
float a = 0.0f)
const;
379 virtual bool canInteractWithOtherEntitiesInGame()
const;
383 virtual void playerTouch(
::Player& player);
385 virtual bool isImmobile()
const;
387 virtual bool isSilentObserver()
const;
389 virtual bool isSleeping()
const;
391 virtual void setSleeping(
bool val);
393 virtual void setSneaking(
bool value);
395 virtual bool isBlocking()
const;
399 virtual bool isAlive()
const;
401 virtual bool isOnFire()
const;
403 virtual bool isSurfaceMob()
const;
405 virtual bool isTargetable()
const;
407 virtual void setTarget(::Actor* entity);
409 virtual bool isValidTarget(::Actor*)
const;
411 virtual ::ActorHurtResult attack(::Actor& target, ::SharedTypes::Legacy::ActorDamageCause
const& cause);
413 virtual void performRangedAttack(::Actor& target,
float);
417 virtual void setSitting(
bool value);
419 virtual void onTame();
421 virtual void onFailedTame();
423 virtual void setStanding(
bool value);
425 virtual bool canPowerJump()
const;
427 virtual bool isEnchanted()
const;
429 virtual void playAmbientSound();
431 virtual ::SharedTypes::Legacy::LevelSoundEvent getAmbientSound()
const;
435 virtual ::SharedTypes::Legacy::ActorDamageCause getBlockDamageCause(
::Block const& block)
const;
437 virtual ::ActorHurtResult doFireHurt(
int amount);
439 virtual void onLightningHit();
441 virtual void feed(
int itemId);
443 virtual void handleEntityEvent(::ActorEvent eventId,
int data);
445 virtual ::HashedString
const& getActorRendererId()
const;
447 virtual void despawn();
449 virtual void setArmor(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item);
451 virtual ::ArmorMaterialType getArmorMaterialTypeInSlot(::SharedTypes::Legacy::ArmorSlot slot)
const;
453 virtual int getArmorTextureIndexInSlot(::SharedTypes::Legacy::ArmorSlot slot)
const;
455 virtual float getArmorColorInSlot(::SharedTypes::Legacy::ArmorSlot slot,
int channelRGBA)
const;
457 virtual void setEquippedSlot(::SharedTypes::Legacy::EquipmentSlot slot,
::ItemStack const& item);
459 virtual void setCarriedItem(
::ItemStack const& item);
461 virtual ::ItemStack
const& getCarriedItem()
const;
463 virtual void setOffhandSlot(
::ItemStack const& item);
465 virtual ::ItemStack
const& getEquippedTotem()
const;
467 virtual bool consumeTotem();
471 virtual ::HashedString
const& queryEntityRenderer()
const;
473 virtual ::ActorUniqueID getSourceUniqueID()
const;
475 virtual bool canFreeze()
const;
477 virtual ::AABB getLiquidAABB(::SharedTypes::v1_26_20::MaterialType
const liquidType)
const;
479 virtual void handleInsidePortal(
::BlockPos const& portalPos);
481 virtual bool canChangeDimensionsUsingPortal()
const;
487 virtual ::ActorUniqueID getControllingPlayer()
const;
489 virtual float causeFallDamageToActor(
float distance,
float multiplier,
::ActorDamageSource source);
491 virtual void onSynchedDataUpdate(
int dataId);
493 virtual bool canAddPassenger(::Actor& passenger)
const;
495 virtual bool canPickupItem(
::ItemStack const& item)
const;
497 virtual bool canBePulledIntoVehicle()
const;
499 virtual bool inCaravan()
const;
501 virtual void sendMotionPacketIfNeeded();
503 virtual bool canSynchronizeNewEntity()
const;
505 virtual void startSwimming();
507 virtual void stopSwimming();
509 virtual void buildDebugInfo(::std::string& out)
const;
511 virtual ::CommandPermissionLevel getCommandPermissionLevel()
const;
513 virtual int getDeathTime()
const;
515 virtual bool canBeAffected(uint
id)
const;
521 virtual bool canObstructSpawningAndBlockPlacement()
const;
523 virtual ::AnimationComponent& getAnimationComponent();
525 virtual void openContainerComponent(
::Player& player);
527 virtual bool swing(::ActorSwingSource swingSource);
529 virtual void useItem(
::ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem);
531 virtual void getDebugText(::std::vector<::std::string>& outputInfo);
533 virtual float getMapDecorationRotation()
const;
535 virtual float getPassengerYRotation(::Actor
const& passenger)
const;
539 virtual bool drop(
::ItemStack const& item,
bool const randomly);
541 virtual ::InteractionResult
544 virtual bool canDestroyBlock(
::Block const& block)
const;
546 virtual void setAuxValue(
int aux);
554 virtual bool shouldDropDeathLoot()
const;
556 virtual void applySnapshot(
561 virtual void onPush(::Actor& source);
563 virtual ::std::optional<::BlockPos> getLastDeathPos()
const;
565 virtual ::std::optional<::DimensionType> getLastDeathDimension()
const;
567 virtual bool hasDiedBefore()
const;
569 virtual void doEnterWaterSplashEffect();
571 virtual void doExitWaterSplashEffect();
573 virtual void doWaterSplashEffect();
575 virtual bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot,
::ItemStack const& item)
const;
577 virtual bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item)
const;
579 virtual ::ActorHurtResult _hurt(
::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
583 virtual void addAdditionalSaveData(
::CompoundTag& tag)
const;
597 MCAPI ::BuiltInActorComponents _addActorBuiltInComponents();
599 MCAPI
void _addActorNonBuiltInComponents();
601 MCAPI
bool _applyPendingPropertyChanges();
603 MCAPI
bool _determineCanPickupItems()
const;
605 MCAPI ::ItemActor
const* _drop(
::ItemStack const& item,
bool randomly);
607 MCFOLD ::std::vector<::MobEffectInstance>& _getAllEffectsNonConst();
609 MCAPI ::AnimationComponent& _getAnimationComponent(
610 ::std::shared_ptr<::AnimationComponent>& animationComponent,
611 ::AnimationComponentGroupType group
614 MCAPI
void _initActorProperties();
616 MCAPI
void _initAliasProperties();
618 MCAPI
void _initializeLeashRopeSystem(::Actor* holder);
620 MCAPI
void _initializeMaxAutoStep(
float maxAutoStep);
622 MCAPI
bool _isDeathLootAllowed()
const;
624 MCAPI
bool _isHeadInWater()
const;
626 MCAPI
bool _isItemStackNetManagerEnabled()
const;
628 MCAPI
bool _isValidBlockToTeleportOnto(
::Block const& block,
bool avoidLiquid)
const;
632 MCAPI
void _onVibrationDetected();
634 MCAPI
void _refreshAABB();
636 MCAPI
void _sendDirtyActorData();
640 MCAPI
void _setActorTypeId(::ActorType type);
644 MCAPI
void _setHandContainerItem(
::ItemStack const& item, ::HandSlot handSlot);
646 MCAPI
void _setHeightOffset(
float heightOffset);
648 MCAPI
void _setLevelPtr(
::ILevel* level);
650 MCFOLD
void _setPos(
::Vec3 const& pos);
652 MCFOLD
void _setPosPrev(
::Vec3 const& posPrev);
654 MCAPI
void _setupServerAnimationComponent();
656 MCAPI
void _syncTickCountIfAnimationComponentShared();
660 MCAPI
void _tryPlantWitherRose();
662 MCAPI
void _updateComposition(
bool reload);
664 MCAPI
void _upgradeActorVersion();
666 MCAPI
void addCategory(::ActorCategory
const& category);
668 MCAPI
void addDefinitionGroup(::std::string
const& name);
672 MCAPI
bool addTag(::std::string
const& tag);
674 MCAPI
void applyImpulse(
::Vec3 const& impulse);
676 MCAPI
void applyOnBornPropertyChanges();
678 MCAPI
void buildDebugGroupInfo(::std::string& out)
const;
680 MCAPI ::Vec3 buildForward()
const;
682 MCAPI
void burn(
int damage,
bool inFire);
684 MCAPI
bool canAttack(::Actor
const& entity)
const;
686 MCAPI
bool canBeginOrContinueClimbingLadder()
const;
688 MCAPI
bool canCurrentlySwim()
const;
691 MCAPI
bool canDescendBlockBelowByCrouching()
const;
694 MCAPI
bool canFly()
const;
696 MCAPI
bool canMate(::Actor
const& partner)
const;
698 MCAPI
bool canOpenContainer(
::Player& player)
const;
700 MCAPI
bool canReceiveMobEffectsFromGameplay()
const;
702 MCAPI
bool canSee(::Actor
const& target, ::ShapeType obstructionType)
const;
704 MCAPI
bool canSee(
::Vec3 const& targetPos, ::ShapeType obstructionType)
const;
707 ::Actor
const& target,
708 ::SharedTypes::Legacy::ActorLocation targetLocationPart,
709 ::ShapeType obstructionType
712 MCAPI
bool canSeeDaylight()
const;
714 MCAPI
void celebrateHunt(
int duration,
bool special);
716 MCAPI
void checkFallDamage(
float ya,
bool onGround,
bool recheckLiquid);
718 MCAPI
void chorusFruitTeleport(
::Vec3 const& range);
720 MCAPI
void clearFishingHookID();
722 MCAPI
bool closerThan(::Actor
const& e,
float distance)
const;
724 MCAPI
bool closerThan(::Actor
const& e,
float distanceXZ,
float distanceY)
const;
726 MCAPI
void consumeItem(
::ItemActor& itemActor,
int count);
728 MCAPI ::UpdateEquipPacket createUpdateEquipPacket(
int containerID);
730 MCAPI ::UpdateTradePacket createUpdateTradePacket(
int containerID);
732 MCAPI
void deregisterTagsFromLevelCache();
734 MCAPI
float distanceSqrToBlockPosCenter(
::BlockPos const& pos)
const;
736 MCAPI
float distanceTo(::Actor
const& e)
const;
738 MCAPI
float distanceTo(
::Vec3 const& pos)
const;
740 MCAPI
float distanceToSqr(::Actor
const& e)
const;
742 MCAPI
float distanceToSqr(
::Vec3 const& pos)
const;
746 MCAPI
void enableAutoSendPosRot(
bool enable);
750 MCAPI
void equip(::std::string
const& lootTableFilePath);
752 MCAPI
void equipFromEquipmentDefinition();
754 MCAPI
float evaluateSeatRotation(
::RideableComponent const& rideable,
bool useVehicleRenderParams);
758 MCAPI
void exitVehicle(
bool exitFromPassenger,
bool actorIsBeingDestroyed,
bool wasEjectedByActivatorRail);
760 MCAPI ::FishingHook* fetchFishingHook();
762 MCAPI ::std::vector<::DistanceSortedActor> fetchNearbyActorsSorted(
::Vec3 const& distance);
764 MCAPI ::std::vector<::DistanceSortedActor> fetchNearbyActorsSorted(
::Vec3 const& distance, ::ActorType actorTypeId);
766 MCAPI ::Vec2
const& getAABBDim()
const;
769 MCAPI
int getActiveEffectCount()
const;
772 MCAPI ::ActorDefinitionIdentifier
const& getActorIdentifier()
const;
775 MCAPI ::Matrix getActorToWorldTransform(
float frameAlpha,
bool useActorRotation,
::Vec3 const& offset)
const;
778 MCFOLD ::std::vector<::MobEffectInstance>
const& getAllEffects()
const;
780 MCAPI ::ItemStack
const& getArmor(::SharedTypes::Legacy::ArmorSlot slot)
const;
782 MCAPI ::Vec3 getAttachPos(::SharedTypes::Legacy::ActorLocation location)
const;
784 MCAPI ::Vec3 getAttachPos(::SharedTypes::Legacy::ActorLocation location,
float alpha)
const;
786 MCAPI ::AttributeInstanceConstRef getAttribute(
::Attribute const& attribute)
const;
788 MCAPI ::gsl::not_null<::BaseAttributeMap const*> getAttributes()
const;
790 MCAPI ::gsl::not_null<::BaseAttributeMap*> getAttributes();
792 MCAPI ::BlockPos getBlockPosCurrentlyStandingOn(::Actor
const* actor)
const;
794 MCAPI ::BlockPos getBlockTarget()
const;
796 MCAPI
float getBrightness(
float a = 0.0f)
const;
799 MCAPI
float getCameraDistance();
802 MCFOLD
bool getCanPickupItems()
const;
804 MCAPI ::ItemStack
const& getCarriedItemInSlotPreferredBy(
::ItemStack const& item)
const;
807 MCAPI ::Vec3 getCenter(
float a)
const;
810 MCAPI ::Vec3 getCenteredPosition()
const;
812 MCAPI
bool getChainedDamageEffects()
const;
814 MCAPI
int getChestSlots()
const;
816 MCAPI
bool getCollidableMob()
const;
818 MCAPI
float getCurrentSwimAmount()
const;
820 MCAPI
bool getDamageNearbyMobs()
const;
822 MCAPI ::ActorDefinitionDiffList* getDiffListNonConst();
824 MCFOLD ::Dimension& getDimension()
const;
826 MCFOLD ::BlockSource& getDimensionBlockSource()
const;
828 MCFOLD ::BlockSource
const& getDimensionBlockSourceConst()
const;
830 MCFOLD ::Dimension
const& getDimensionConst()
const;
832 MCAPI ::MobEffectInstance
const* getEffect(
::MobEffect const& effect)
const;
834 MCAPI ::MobEffectInstance
const* getEffect(uint effectId)
const;
836 MCFOLD ::SynchedActorDataEntityWrapper
const& getEntityData()
const;
838 MCFOLD ::SynchedActorDataEntityWrapper& getEntityData();
840 MCAPI ::StackRefResult<::EntityRegistry> getEntityRegistry();
842 MCFOLD ::ActorTerrainInterlockData& getEntityTerrainInterlockData();
844 MCAPI ::ActorType getEntityTypeId()
const;
846 MCAPI
int getEquipSlots()
const;
848 MCAPI
int getEquipmentCount()
const;
850 MCAPI ::SharedTypes::Legacy::EquipmentSlot getEquipmentSlotForItem(
::ItemStack const& item)
const;
852 MCAPI ::ItemStack
const& getEquippedSlot(::SharedTypes::Legacy::EquipmentSlot slot)
const;
854 MCAPI ::Vec3 getEyePos()
const;
856 MCAPI
float getFallDistance()
const;
859 MCAPI ::std::string getFilteredNameTag()
const;
862 MCAPI
bool getFirstAvailableSeatPos(::Actor& potentialPassenger,
::Vec3& result)
const;
864 MCAPI ::Actor* getFirstPassenger()
const;
866 MCAPI
int getHealth()
const;
869 MCAPI ::mce::Color
const& getHurtColor()
const;
872 MCAPI
int getHurtDir()
const;
874 MCAPI
int getHurtTime()
const;
876 MCFOLD ::ILevel
const& getILevel()
const;
878 MCFOLD ::ILevel& getILevel();
880 MCFOLD ::ActorInitializationMethod getInitializationMethod()
const;
883 MCAPI ::Block
const* getInsideBlock()
const;
886 MCAPI ::Vec3 getInterpolatedPosition(
float a = 0.0f)
const;
888 MCAPI ::Vec3 getInterpolatedRidingPosition(
float a = 0.0f)
const;
890 MCAPI ::Vec2 getInterpolatedRotation(
float a)
const;
892 MCAPI
int getInventorySize()
const;
894 MCAPI
bool getIsExperienceDropEnabled()
const;
897 MCAPI
bool getIsOnScreen()
const;
900 MCAPI ::Mob* getLastHurtByMob();
902 MCAPI ::ActorUniqueID getLastHurtByMobID()
const;
904 MCAPI
int getLastHurtByMobTime();
906 MCFOLD
int getLastHurtByMobTimestamp();
908 MCAPI ::Player* getLastHurtByPlayer();
910 MCAPI ::ActorUniqueID getLastHurtByPlayerID()
const;
912 MCFOLD ::SharedTypes::Legacy::ActorDamageCause getLastHurtCause()
const;
914 MCAPI
float getLastHurtDamage()
const;
916 MCAPI ::Mob* getLastHurtMob();
918 MCAPI
int getLastHurtMobTimestamp();
920 MCFOLD uint64 getLastHurtTimestamp()
const;
922 MCAPI ::ActorUniqueID getLeashHolder()
const;
924 MCFOLD ::Level& getLevel();
926 MCAPI uint64 getLevelTimeStamp()
const;
928 MCAPI
int getLimitedLifetimeTicks()
const;
930 MCAPI ::std::vector<::ActorLink> getLinks()
const;
933 MCAPI ::ModelPartLocator
const* getLocator(
::HashedString const& locatorName);
936 MCAPI ::LootTable* getLootTable();
938 MCAPI
int getMarkVariant()
const;
940 MCAPI
float getMaxAutoStep()
const;
942 MCAPI
int getMaxHealth()
const;
945 MCAPI int64 getMetadataId()
const;
948 MCFOLD ::MolangVariableMap& getMolangVariables();
950 MCAPI ::MutableAttributeWithContext getMutableAttribute(
::Attribute const& attribute);
952 MCAPI ::std::string
const& getNameTag()
const;
954 MCFOLD uint64 getNameTagAsHash()
const;
956 MCAPI
float getNameplateRenderDistanceMax()
const;
958 MCAPI ::ItemStack
const& getOffhandSlot()
const;
960 MCAPI
int getOnDeathExperience();
962 MCAPI ::DynamicProperties& getOrAddDynamicProperties();
964 MCAPI ::ActorUniqueID
const& getOrCreateUniqueID()
const;
966 MCAPI ::Mob* getOwner()
const;
968 MCAPI ::ActorUniqueID
const getOwnerId()
const;
970 MCAPI
int getPassengerIndex(::Actor
const& passenger)
const;
972 MCAPI ::std::unique_ptr<::CompoundTag> getPersistingTradeOffers();
974 MCAPI
int getPersistingTradeRiches();
976 MCAPI ::Player* getPlayerOwner()
const;
978 MCFOLD ::Vec3& getPosDeltaNonConst();
980 MCAPI ::Vec3
const& getPosPrev()
const;
982 MCAPI
float getRadius()
const;
984 MCAPI ::Random& getRandom()
const;
986 MCAPI ::Bedrock::Safety::RedactableString getRedactableNameTag()
const;
989 MCAPI ::ActorUniqueID getRenderLeashHolder();
992 MCAPI ::RenderParams& getRenderParams();
994 MCAPI
float getRidingHeight()
const;
996 MCAPI ::Vec2
const& getRotationPrev()
const;
998 MCAPI ::ActorRuntimeID getRuntimeID()
const;
1001 MCAPI
float getScaleFactor(
float a)
const;
1003 MCAPI ::std::string
const& getScoreTag()
const;
1006 MCFOLD
int getShakeTime()
const;
1008 MCAPI
int getSkinID()
const;
1010 MCFOLD ::SpatialActorNetworkData& getSpatialNetworkData();
1012 MCAPI
float getSpeedInMetersPerSecond()
const;
1014 MCAPI ::Vec3 getSpeedVectorInMetersPerSecond()
const;
1016 MCAPI
bool getStatusFlag(::ActorFlags flag)
const;
1018 MCAPI
int getStrength()
const;
1020 MCAPI
int getStrengthMax()
const;
1022 MCAPI
int getStructuralIntegrity()
const;
1025 MCAPI ::SubClientId getSubClientId()
const;
1028 MCAPI
float getSwimAmount(
float a)
const;
1030 MCAPI ::std::vector<::std::string>
const getTags()
const;
1032 MCAPI ::Actor* getTarget()
const;
1034 MCAPI ::ActorUniqueID getTargetId()
const;
1036 MCAPI ::ITickingArea* getTickingArea();
1038 MCAPI
bool getTradeInterest()
const;
1040 MCAPI ::MerchantRecipeList* getTradeOffers();
1042 MCAPI ::Player* getTradingPlayer()
const;
1045 MCAPI
bool getUIRendering()
const;
1048 MCAPI ::ValidMutableAttributeWithContext getValidMutableAttribute(
::Attribute const& attribute);
1050 MCAPI
int getVariant()
const;
1052 MCAPI ::Actor* getVehicle()
const;
1054 MCAPI ::VehicleUtils::VehicleRootInfo getVehicleRoot()
const;
1056 MCAPI ::ActorRuntimeID getVehicleRuntimeID()
const;
1058 MCAPI
float getVerticalSpeedInMetersPerSecond()
const;
1060 MCAPI ::Vec3 getViewVector(
float a = 0.0f)
const;
1063 MCAPI ::Vec2 getViewVector2(
float a)
const;
1066 MCAPI
float getYHeadRot()
const;
1068 MCAPI ::InterpolationPair getYHeadRotationsNewOld()
const;
1070 MCAPI
void handleFallDamage(
float fallDistance,
float multiplier,
::ActorDamageSource source);
1074 MCAPI
bool hasAnyEffects()
const;
1076 MCAPI
bool hasBeenHurtByMobInLastTicks(
int numberOfTicks)
const;
1079 MCAPI
bool hasDefinitionGroup(::std::string
const& name)
const;
1082 MCAPI
bool hasDimension()
const;
1084 MCAPI
bool hasEffect(
::MobEffect const& effect)
const;
1089 MCAPI
bool hasFilteredNameTag()
const;
1092 MCAPI
bool hasFishingHook()
const;
1094 MCFOLD
bool hasLevel()
const;
1096 MCAPI
bool hasPassenger()
const;
1098 MCAPI
bool hasPersistingTrade()
const;
1100 MCAPI
bool hasPlayerPassenger()
const;
1102 MCAPI
bool hasPriorityAmmunition()
const;
1104 MCAPI
bool hasRuntimeID()
const;
1106 MCAPI
bool hasSaddle()
const;
1108 MCAPI
bool hasTag(::std::string
const& tag)
const;
1110 MCAPI
bool hasTags()
const;
1112 MCAPI
bool hasTeleported()
const;
1114 MCAPI
bool hasTotemEquipped()
const;
1116 MCAPI
bool hasType(::ActorType types)
const;
1118 MCAPI
bool hasUniqueID()
const;
1120 MCAPI
void heal(
int heal);
1122 MCAPI ::ActorHurtResult hurt(
::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
1124 MCAPI
bool inDownwardFlowingLiquid()
const;
1132 MCAPI
bool intersects(
::Vec3 const& pos1,
::Vec3 const& pos2)
const;
1134 MCAPI
bool isActorLocationInMaterial(
1135 ::SharedTypes::Legacy::ActorLocation actorLocation,
1136 ::SharedTypes::v1_26_20::MaterialType type
1139 MCAPI
bool isAdventure()
const;
1141 MCAPI
bool isAffectedByWaterBottle()
const;
1143 MCAPI
bool isAngry()
const;
1145 MCAPI
bool isAttackableGamemode()
const;
1147 MCAPI
bool isAutonomous()
const;
1149 MCAPI
bool isBaby()
const;
1151 MCAPI
bool isBreakingObstruction()
const;
1153 MCAPI
bool isBribed()
const;
1155 MCAPI
bool isCharged()
const;
1157 MCAPI
bool isChested()
const;
1159 MCAPI
bool isClientSide()
const;
1161 MCAPI
bool isClimbing()
const;
1164 MCAPI
bool isControlledByLocalInstance()
const;
1167 MCAPI
bool isCreative()
const;
1169 MCAPI
bool isDancing()
const;
1171 MCAPI
bool isDead()
const;
1173 MCAPI
bool isDoorBreaker()
const;
1175 MCAPI
bool isDoorOpener()
const;
1177 MCAPI
bool isGlobal()
const;
1179 MCAPI
bool isIgnited()
const;
1181 MCAPI
bool isImmersedInWater()
const;
1183 MCAPI
bool isInClouds()
const;
1185 MCAPI
bool isInContactWithWater()
const;
1187 MCAPI
bool isInLava()
const;
1189 MCAPI
bool isInLove()
const;
1191 MCAPI
bool isInPrecipitation()
const;
1193 MCAPI
bool isInRain()
const;
1195 MCAPI
bool isInScaffolding()
const;
1197 MCAPI
bool isInSnow()
const;
1199 MCAPI
bool isInThunderstorm()
const;
1201 MCAPI
bool isInWater()
const;
1203 MCAPI
bool isInWaterOrRain()
const;
1205 MCAPI
bool isInWorld()
const;
1207 MCAPI
bool isInsidePortal()
const;
1209 MCAPI
bool isInvertedHealAndHarm()
const;
1211 MCAPI
bool isJumping()
const;
1213 MCAPI
bool isLayingDown()
const;
1215 MCAPI
bool isLeashed()
const;
1217 MCAPI
bool isLocalPlayer()
const;
1219 MCAPI
bool isMovedToLimbo()
const;
1221 MCAPI
bool isMovedToUnloadedChunk()
const;
1223 MCAPI
bool isMoving()
const;
1225 MCAPI
bool isNameplateDepthTested()
const;
1227 MCAPI
bool isOrphan()
const;
1229 MCAPI
bool isOutOfControl()
const;
1231 MCAPI
bool isOverScaffolding()
const;
1233 MCAPI
bool isOverWater()
const;
1235 MCAPI
bool isPacified()
const;
1241 MCAPI
bool isPassenger(::Actor
const& passenger)
const;
1243 MCAPI
bool isPersistent()
const;
1245 MCAPI
bool isPlayingDead()
const;
1247 MCAPI
bool isPowered()
const;
1249 MCAPI
bool isRemotePlayer()
const;
1251 MCAPI
bool isRemoved()
const;
1253 MCAPI
bool isResting()
const;
1255 MCAPI
bool isRiding()
const;
1257 MCAPI
bool isRiding(::Actor* targetVehicle)
const;
1259 MCAPI
bool isSheared()
const;
1261 MCAPI
bool isSilent()
const;
1263 MCAPI
bool isSitting()
const;
1265 MCAPI
bool isSneaking()
const;
1267 MCAPI
bool isSpectator()
const;
1269 MCAPI
bool isStanding()
const;
1271 MCAPI
bool isSurvival()
const;
1273 MCAPI
bool isSwimmer()
const;
1275 MCAPI
bool isSwimming()
const;
1277 MCAPI
bool isTame()
const;
1279 MCAPI
bool isTickingEntity()
const;
1281 MCAPI
bool isTouchingDamageBlock()
const;
1283 MCAPI
bool isTrading()
const;
1285 MCAPI
bool isTrusting()
const;
1287 MCAPI
bool isUnderLiquid(::SharedTypes::v1_26_20::MaterialType type)
const;
1289 MCAPI
bool isUseNewTradeScreen()
const;
1291 MCAPI
bool isWalker()
const;
1293 MCAPI
bool isWearingLeatherArmor()
const;
1295 MCAPI
bool isWorldBuilder()
const;
1297 MCAPI
void killed(::Actor& entity);
1299 MCAPI
void lerpTo(
::Vec3 const& pos,
::Vec2 const& rot,
int steps);
1301 MCAPI
void lerpTo(
::Vec3 const& pos,
::Vec2 const& rot,
float headYaw,
int steps);
1308 MCFOLD ::ActorUniqueID
const& lovePartnerId()
const;
1310 MCAPI
void markHurt();
1314 MCAPI
void move(
::Vec3 const& posDelta);
1316 MCAPI
void moveRelative(
float xa,
float ya,
float za,
float speed);
1318 MCAPI
void moveTo(
::Vec3 const& pos,
::Vec2 const& rot);
1320 MCAPI
void onAffectedByWaterBottle();
1322 MCAPI
bool onClimbableBlock()
const;
1328 MCAPI
void onOrphan();
1334 MCAPI
bool operator!=(::Actor
const& rhs)
const;
1336 MCAPI
bool operator==(::Actor
const& rhs)
const;
1338 MCAPI
void pickUpItem(
::ItemActor& itemActor,
int count);
1340 MCAPI
void playSound(::SharedTypes::Legacy::LevelSoundEvent type,
::Vec3 const& pos,
int data);
1342 MCAPI
void playSound(
1344 ::SharedTypes::Legacy::LevelSoundEvent type,
1349 MCAPI
void playSynchronizedSound(
1350 ::SharedTypes::Legacy::LevelSoundEvent type,
1354 ::std::optional<::Vec3>
const& fireAtPosition
1357 MCAPI
void playSynchronizedSound(
1358 ::SharedTypes::Legacy::LevelSoundEvent type,
1362 ::std::optional<::Vec3>
const& fireAtPosition
1365 MCAPI
void positionAllPassengers();
1367 MCAPI
void positionPassenger(::Actor& passenger);
1371 MCAPI
void postSplashGameEvent();
1373 MCAPI
bool pullInEntity(::Actor& e);
1375 MCAPI
void pushBackActionEventToActionQueue(
::ActionEvent actionEvent);
1377 MCAPI
void pushOutOfBlocks(
::Vec3 const& vec);
1379 MCAPI
void queueBBUpdateFromDefinition();
1381 MCAPI
void queueBBUpdateFromValue(
::Vec2 const& value);
1383 MCAPI
void refreshComponents();
1385 MCAPI
void reload();
1387 MCAPI
void removeAllEffects();
1389 MCAPI
void removeAllPassengers(
bool actorIsBeingDestroyed,
bool exitFromPassenger);
1391 MCAPI
void removeEffect(
int effectId);
1393 MCAPI
void removePersistingTrade();
1395 MCAPI
bool removeTag(::std::string
const& tag);
1401 MCAPI ::std::unique_ptr<::ListTag> saveLinks()
const;
1403 MCAPI
void savePersistingTrade(::std::unique_ptr<::CompoundTag> offersTag,
int riches);
1407 MCAPI
void serializationSetHealth(
int newHealth);
1409 MCAPI
void setAABB(
::AABB const& aabb);
1411 MCAPI
void setAABBDim(
::Vec2 const& dim);
1415 MCAPI
void setAutonomous(
bool g);
1419 MCFOLD
void setBlockTarget(
::BlockPos const& target);
1421 MCAPI
void setBreakingObstruction(
bool breaking);
1424 MCAPI
void setCameraDistance(
float cameraDistance);
1427 MCAPI
void setCanFly(
bool value);
1429 MCAPI
void setChainedDamageEffects(
bool active);
1432 MCAPI
void setChanged();
1435 MCAPI
void setCharged(
bool value);
1437 MCAPI
void setClimbing(
bool value);
1439 MCAPI
void setDancing(
bool dancing);
1441 MCAPI
void setDead(
bool isDead);
1445 MCAPI
void setDoorBreaker(
bool breaker);
1447 MCAPI
void setDoorOpener(
bool opener);
1449 MCAPI
void setEnchanted(
bool value);
1455 MCAPI
void setFallDistance(
float distance);
1458 MCAPI
void setFilteredNameTag(::std::string
const& filteredName);
1463 MCAPI
void setGlobal(
bool g);
1465 MCAPI
void setHurtDir(
int hurtDir);
1467 MCAPI
void setHurtTime(
int hurtTime);
1469 MCAPI
void setInLove(::Actor* lovePartner);
1471 MCAPI
void setInterpolation();
1473 MCAPI
void setInvisible(
bool value);
1475 MCAPI
void setIsExperienceDropEnabled(
bool isExperienceDropEnabled);
1478 MCAPI
void setIsOnScreen(
bool isOnScreen);
1481 MCAPI
void setJumping(
bool jump);
1483 MCAPI
void setLastHitBB(
::Vec3 const& pos,
::Vec3 const& radius);
1485 MCAPI
void setLastHurtByMob(
::Mob* mob);
1487 MCAPI
void setLastHurtByPlayer(
::Player* player);
1489 MCAPI
void setLastHurtMob(
::Mob const& target);
1491 MCAPI
void setLayingDown(
bool value);
1495 MCAPI
void setLimitedLifetimeTicks(
int lifetimeTicks);
1497 MCAPI
void setMarkVariant(
int value);
1499 MCAPI
void setMovedToLimbo(
bool moveToLimbo);
1501 MCAPI
void setMovedToUnloadedChunk(
bool movedToUnloadedChunk);
1503 MCAPI
void setMoving(
bool value);
1505 MCAPI
void setNameTag(::std::string
const& name);
1507 MCAPI
void setNameTagVisible(
bool visible);
1509 MCAPI
void setNameplateDepthTested(
bool value);
1511 MCAPI
void setNameplateRenderDistanceMax(
float distanceMax);
1513 MCAPI
void setObstructsBlockPlacement(
bool obstructs);
1519 MCAPI
void setPersistent();
1521 MCAPI
void setPos(
::Vec3 const& pos);
1523 MCFOLD
void setPosDelta(
::Vec3 const& posDelta);
1525 MCFOLD
void setPosDirectLegacy(
::Vec3 const& pos);
1527 MCFOLD
void setPosPrev(
::Vec3 const& posPrev);
1529 MCAPI
void setPrevPosRotSetThisTick(
bool value);
1531 MCAPI
void setPreviousPosRot();
1535 MCAPI
void setResting(
bool value);
1537 MCAPI
void setRotationDirectly(
::Vec2 const& rot);
1539 MCAPI
void setRotationPrev(
::Vec2 const& rotation);
1542 MCAPI
void setRotationPrevX(
float rotX);
1545 MCAPI
void setRotationPrevY(
float rotY);
1547 MCAPI
void setRotationWrapped(
::Vec2 const& rot);
1549 MCAPI
void setRotationX(
float rotX);
1551 MCAPI
void setRotationY(
float rotY);
1555 MCAPI
void setSaddle(
bool saddled);
1557 MCAPI
void setScared(
bool status);
1559 MCAPI
void setScoreTag(::std::string
const& score);
1561 MCAPI
void setShakeTime(
int time);
1563 MCAPI
void setSkinID(
int value);
1565 MCAPI
void setStatusFlag(::ActorFlags flag,
bool value);
1567 MCAPI
void setStrength(
int strength);
1569 MCAPI
void setStrengthMax(
int strength);
1571 MCAPI
void setStructuralIntegrity(
int damage);
1573 MCAPI
void setSwimmer(
bool swimmer);
1575 MCAPI
void setTempted(
bool tempted);
1577 MCAPI
void setTradeInterest(
bool interested);
1579 MCAPI
void setTradingPlayer(
::Player* player);
1582 MCAPI
void setUIRendering(
bool isInUI);
1588 MCAPI
void setUpdateBonesAndEffects(
bool updateBonesAndEffects);
1590 MCAPI
void setUpdateEffects(
bool updateEffects);
1593 MCAPI
void setVariant(
int value);
1595 MCAPI
void setVelocity(
::Vec3 const& vel);
1597 MCAPI
void setWalker(
bool isWalker);
1599 MCAPI
void setYHeadRot(
float yHeadRot);
1601 MCAPI
void setYHeadRotations(
float yHeadRot,
float oldYHeadRot);
1604 MCFOLD
bool shouldAddEntityToRenderQueue()
const;
1609 MCAPI
bool shouldRender()
const;
1611 MCAPI
bool shouldTick()
const;
1614 MCAPI
bool shouldUpdateBonesAndEffects()
const;
1617 MCFOLD
bool shouldUpdateEffects()
const;
1619 MCAPI ::ItemActor* spawnAtLocation(
::ItemStack const& item,
float yOffs);
1621 MCAPI
void spawnEatParticles(
::ItemStack const& itemInUse,
int count);
1623 MCAPI
void spawnTrailBubbles();
1626 stopRiding(
bool exitFromPassenger,
bool actorIsBeingDestroyed,
bool switchingVehicles,
bool isBeingTeleported);
1628 MCAPI
void synchronousSetSize(
float w,
float h);
1630 MCAPI
void teleportPassengersTo(
::Vec3 const& pos,
int cause,
int entityType);
1632 MCAPI
void thawFreezeEffect();
1636 MCAPI
void tickBlockDamage();
1638 MCAPI
void tickLeash();
1640 MCAPI
void transferTickingArea(
::Dimension const& toDimension);
1642 MCAPI
void triggerActorRemovedEvent();
1644 MCAPI ::std::vector<::ItemDescriptor>
const* tryGetEquippableSlotAllowedItems(
int slotNumber)
const;
1646 MCAPI ::std::optional<int> tryGetEquippableSlotForItem(
::ItemDescriptor item)
const;
1648 MCAPI
bool tryTeleportTo(
::Vec3 const& pos,
bool landOnBlock,
bool avoidLiquid,
int cause,
int entityType);
1650 MCAPI
void updateAnimationComponentOnServer();
1652 MCAPI
void updateDescription();
1654 MCAPI
void updateDimensionChunkMove();
1656 MCAPI
void updateInsideBlock();
1658 MCAPI
void updateInvisibilityStatus();
1662 MCAPI
void updateTickingData();
1664 MCAPI
void updateWaterState();
1666 MCFOLD
bool wasHurt();
1668 MCAPI
bool wasLastHitByPlayer();
1670 MCAPI
void wobble();
1676 MCAPI
static void _moveRelative(
::Vec3& posDelta,
float yRotDegrees,
float xa,
float ya,
float za,
float speed);
1678 MCAPI static ::Vec3 buildForward(
::Vec2 rotation);
1681 MCAPI
static int getActiveEffectCount(::std::vector<::MobEffectInstance>
const& effects);
1684 MCAPI static ::BlockPos getBlockPosCurrentlyStandingOn(
1691 MCAPI static ::BlockPos getBlockPosCurrentlyStandingOn(
1695 float ignoreGapBelow,
1699 MCAPI static ::std::vector<::BlockPos> getBlocksCurrentlyStandingOn(
1702 float ignoreGapBelow,
1706 MCAPI static ::Vec3 getCenter(
1713 MCAPI static ::MobEffectInstance
const*
1714 getEffect(::std::vector<::MobEffectInstance>
const& effects,
::MobEffect const& effect);
1716 MCAPI static ::MobEffectInstance
const* getEffect(::std::vector<::MobEffectInstance>
const& effects, uint effectId);
1718 MCAPI static ::Vec3 getInterpolatedPosition(
float a,
::StateVectorComponent const& stateVectorComponent);
1721 MCAPI static ::Vec3 getInterpolatedPosition(
1728 MCAPI static ::AABB getLiquidAABB(
::AABB const& aabb, ::SharedTypes::v1_26_20::MaterialType liquidType);
1730 MCAPI
static float getLiquidFlowStrength(::SharedTypes::v1_26_20::MaterialType liquidType);
1734 MCAPI static ::Vec3 getViewVector(
::Vec2 const& prevRot,
::Vec2 const& rot,
float a);
1738 MCAPI
static bool isInLiquid(
1739 ::SharedTypes::v1_26_20::MaterialType liquidType,
1742 ::std::vector<::AABB>
const& subAABBs
1745 MCFOLD static ::Actor
const* tryGetFromComponent(
::ActorOwnerComponent const& component,
bool includeRemoved);
1749 MCFOLD static ::Actor
const* tryGetFromEntity(
::EntityContext const& entity,
bool includeRemoved);
1753 MCAPI static ::Actor*
1778 MCAPI
void $outOfWorld();
1782 MCAPI
void $reloadHardcodedClient(::ActorInitializationMethod method);
1784 MCAPI
void $initializeComponents(::ActorInitializationMethod method,
::VariantParameterList const& params);
1788 MCAPI
void $_serverInitItemStackIds();
1790 MCAPI
void $_doInitialMove();
1794 MCFOLD
void $resetUserPos(::ActorResetRule resetRule);
1796 MCAPI ::ActorType $getOwnerEntityType();
1798 MCAPI
void $remove();
1800 MCAPI ::Vec3 $getFiringPos()
const;
1802 MCAPI
float $getInterpolatedBodyRot(
float a)
const;
1804 MCFOLD
float $getInterpolatedHeadRot(
float a)
const;
1806 MCFOLD
float $getInterpolatedBodyYaw(
float a)
const;
1808 MCAPI
float $getYawSpeedInDegreesPerSecond()
const;
1810 MCFOLD ::Vec3 $getInterpolatedRidingOffset(
float,
int const)
const;
1812 MCAPI
bool $isFireImmune()
const;
1816 MCAPI
bool $canDisableShield();
1819 $teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
1821 MCFOLD
void $lerpMotion(
::Vec3 const& delta);
1823 MCAPI ::std::unique_ptr<::Packet> $tryCreateAddActorPacket();
1825 MCAPI
void $normalTick();
1827 MCAPI
void $baseTick();
1829 MCAPI
void $passengerTick();
1831 MCAPI
bool $startRiding(::Actor& vehicle,
bool forceRiding);
1833 MCAPI
void $addPassenger(::Actor& passenger);
1835 MCAPI ::std::string $getExitTip(::std::string
const& kind, ::InputMode mode, ::NewInteractionModel scheme)
const;
1837 MCAPI ::std::string $getEntityLocNameString()
const;
1839 MCAPI
bool $isInvisible()
const;
1841 MCAPI
bool $canShowNameTag()
const;
1843 MCFOLD ::mce::Color $getNameTagTextColor()
const;
1845 MCAPI
float $getShadowRadius()
const;
1847 MCAPI ::Vec3 $getHeadLookVector(
float a)
const;
1849 MCFOLD
bool $canInteractWithOtherEntitiesInGame()
const;
1853 MCFOLD
void $playerTouch(
::Player& player);
1855 MCAPI
bool $isImmobile()
const;
1857 MCAPI
bool $isSilentObserver()
const;
1859 MCFOLD
bool $isSleeping()
const;
1861 MCFOLD
void $setSleeping(
bool val);
1863 MCAPI
void $setSneaking(
bool value);
1865 MCFOLD
bool $isBlocking()
const;
1869 MCAPI
bool $isAlive()
const;
1871 MCAPI
bool $isOnFire()
const;
1873 MCFOLD
bool $isSurfaceMob()
const;
1875 MCFOLD
bool $isTargetable()
const;
1877 MCAPI
void $setTarget(::Actor* entity);
1879 MCFOLD
bool $isValidTarget(::Actor*)
const;
1881 MCAPI ::ActorHurtResult $attack(::Actor& target, ::SharedTypes::Legacy::ActorDamageCause
const& cause);
1883 MCAPI
void $performRangedAttack(::Actor& target,
float);
1887 MCAPI
void $setSitting(
bool value);
1889 MCFOLD
void $onTame();
1891 MCFOLD
void $onFailedTame();
1893 MCAPI
void $setStanding(
bool value);
1895 MCAPI
bool $canPowerJump()
const;
1897 MCAPI
bool $isEnchanted()
const;
1899 MCAPI
void $playAmbientSound();
1901 MCAPI ::SharedTypes::Legacy::LevelSoundEvent $getAmbientSound()
const;
1905 MCAPI ::SharedTypes::Legacy::ActorDamageCause $getBlockDamageCause(
::Block const& block)
const;
1907 MCAPI ::ActorHurtResult $doFireHurt(
int amount);
1909 MCAPI
void $onLightningHit();
1911 MCAPI
void $feed(
int itemId);
1913 MCAPI
void $handleEntityEvent(::ActorEvent eventId,
int data);
1915 MCFOLD ::HashedString
const& $getActorRendererId()
const;
1917 MCAPI
void $despawn();
1919 MCAPI
void $setArmor(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item);
1921 MCFOLD ::ArmorMaterialType $getArmorMaterialTypeInSlot(::SharedTypes::Legacy::ArmorSlot slot)
const;
1923 MCFOLD
int $getArmorTextureIndexInSlot(::SharedTypes::Legacy::ArmorSlot slot)
const;
1925 MCFOLD
float $getArmorColorInSlot(::SharedTypes::Legacy::ArmorSlot slot,
int channelRGBA)
const;
1927 MCFOLD
void $setEquippedSlot(::SharedTypes::Legacy::EquipmentSlot slot,
::ItemStack const& item);
1929 MCAPI
void $setCarriedItem(
::ItemStack const& item);
1931 MCAPI ::ItemStack
const& $getCarriedItem()
const;
1933 MCAPI
void $setOffhandSlot(
::ItemStack const& item);
1935 MCAPI ::ItemStack
const& $getEquippedTotem()
const;
1937 MCAPI
bool $consumeTotem();
1941 MCFOLD ::HashedString
const& $queryEntityRenderer()
const;
1943 MCFOLD ::ActorUniqueID $getSourceUniqueID()
const;
1945 MCFOLD
bool $canFreeze()
const;
1947 MCAPI ::AABB $getLiquidAABB(::SharedTypes::v1_26_20::MaterialType
const liquidType)
const;
1949 MCAPI
void $handleInsidePortal(
::BlockPos const& portalPos);
1951 MCAPI
bool $canChangeDimensionsUsingPortal()
const;
1957 MCFOLD ::ActorUniqueID $getControllingPlayer()
const;
1959 MCFOLD
float $causeFallDamageToActor(
float distance,
float multiplier,
::ActorDamageSource source);
1961 MCAPI
void $onSynchedDataUpdate(
int dataId);
1963 MCAPI
bool $canAddPassenger(::Actor& passenger)
const;
1965 MCFOLD
bool $canPickupItem(
::ItemStack const& item)
const;
1967 MCFOLD
bool $canBePulledIntoVehicle()
const;
1969 MCFOLD
bool $inCaravan()
const;
1971 MCAPI
void $sendMotionPacketIfNeeded();
1973 MCFOLD
bool $canSynchronizeNewEntity()
const;
1975 MCAPI
void $startSwimming();
1977 MCAPI
void $stopSwimming();
1979 MCFOLD
void $buildDebugInfo(::std::string& out)
const;
1981 MCAPI ::CommandPermissionLevel $getCommandPermissionLevel()
const;
1983 MCFOLD
int $getDeathTime()
const;
1985 MCAPI
bool $canBeAffected(uint
id)
const;
1991 MCAPI
bool $canObstructSpawningAndBlockPlacement()
const;
1993 MCAPI ::AnimationComponent& $getAnimationComponent();
1995 MCAPI
void $openContainerComponent(
::Player& player);
1997 MCFOLD
bool $swing(::ActorSwingSource swingSource);
1999 MCAPI
void $useItem(
::ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem);
2001 MCAPI
void $getDebugText(::std::vector<::std::string>& outputInfo);
2003 MCAPI
float $getMapDecorationRotation()
const;
2005 MCAPI
float $getPassengerYRotation(::Actor
const& passenger)
const;
2009 MCAPI
bool $drop(
::ItemStack const& item,
bool const randomly);
2011 MCAPI ::InteractionResult
2014 MCFOLD
bool $canDestroyBlock(
::Block const& block)
const;
2016 MCFOLD
void $setAuxValue(
int aux);
2024 MCAPI
bool $shouldDropDeathLoot()
const;
2026 MCAPI
void $applySnapshot(
2031 MCFOLD
void $onPush(::Actor& source);
2033 MCFOLD ::std::optional<::BlockPos> $getLastDeathPos()
const;
2035 MCFOLD ::std::optional<::DimensionType> $getLastDeathDimension()
const;
2037 MCFOLD
bool $hasDiedBefore()
const;
2039 MCFOLD
void $doEnterWaterSplashEffect();
2041 MCFOLD
void $doExitWaterSplashEffect();
2043 MCAPI
void $doWaterSplashEffect();
2045 MCAPI
bool $_shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot,
::ItemStack const& item)
const;
2047 MCAPI
bool $_shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item)
const;
2049 MCAPI ::ActorHurtResult $_hurt(
::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
2053 MCAPI
void $addAdditionalSaveData(
::CompoundTag& tag)
const;
2061 MCAPI
static void** $vftable();