119 using EntityBlockCollisionCallback =
123 LLNDAPI
class EntityContext& getEntityContext() {
return mEntityContext; }
124 LLNDAPI
class EntityContext const& getEntityContext()
const {
return mEntityContext; }
126 LLNDAPI
float distanceTo(
::Vec3 const& pos)
const;
128 LLNDAPI
float distanceToSqr(::Actor
const& e)
const;
130 LLNDAPI
float distanceToSqr(
::Vec3 const& pos)
const;
132 LLAPI
void refresh();
136 LLNDAPI std::string
const& getTypeName()
const;
138 LLNDAPI
class Vec3 getFeetPos() const;
140 LLNDAPI
class Vec3 getHeadPos() const;
142 LLNDAPI
class BlockPos getFeetBlockPos() const;
144 LLNDAPI
bool isSimulatedPlayer()
const;
146 LLNDAPI
bool isOnGround()
const;
148 LLAPI
void setOnFire(
int time,
bool hasEffect =
true);
149 LLAPI
void stopFire();
151 LLNDAPI
Vec3 getVelocity()
const;
152 LLNDAPI
float getPosDeltaPerSecLength()
const;
154 LLAPI
bool hurtByCause(
156 ::SharedTypes::Legacy::ActorDamageCause cause = ::SharedTypes::Legacy::ActorDamageCause::Override,
162 bool includeActor =
true,
163 bool includeBlock =
true,
164 std::function<bool(
class BlockSource const&,
class Block const&,
bool)>
const& blockCheckFunction =
165 [](
auto&&...) ->
bool {
return true; }
171 LLAPI
void setName(std::string
const& name);
173 LLNDAPI
float evalMolang(std::string
const& expression);
175 LLNDAPI
AABB const& getAABB()
const {
return mBuiltInComponents->mAABBShapeComponent->mAABB; }
177 LLAPI static ::Actor* tryGetFromEntity(
::EntityContext& entity,
bool includeRemoved);
179 [[nodiscard]]
Level& getLevel()
const {
return *
reinterpret_cast<Level*
>(mLevel); }
181 [[nodiscard]]
Vec3 const& getPosition()
const {
return mBuiltInComponents->mStateVectorComponent->mPos; }
183 [[nodiscard]]
Vec3 const& getPosDelta()
const {
return mBuiltInComponents->mStateVectorComponent->mPosDelta; }
185 [[nodiscard]]
Vec2 const& getRotation()
const {
return mBuiltInComponents->mActorRotationComponent->mRot; }
187 [[nodiscard]]
bool hasCategory(ActorCategory category)
const {
return (mCategories & category) == category; }
189 LLNDAPI ::DimensionType getDimensionId()
const;
191 [[nodiscard]]
inline bool isType(::ActorType type)
const {
return getEntityTypeId() == type; }
193 LLNDAPI
bool isPlayer()
const;
195 [[nodiscard]]
inline bool isClientSide()
const {
return !mLevel; }
197 LLNDAPI
bool isTouchingDamageBlock()
const;
199 LLNDAPI
int getHealth()
const;
201 LLNDAPI
int getMaxHealth()
const;
203 LLNDAPI
bool isInWorld()
const;
205 LLNDAPI
ItemStack const& getArmor(::SharedTypes::Legacy::ArmorSlot slot)
const;
207 LLNDAPI
bool getStatusFlag(::ActorFlags flag)
const;
209 LLNDAPI
bool isOnHotBlock()
const;
211 [[nodiscard]]
bool isSwimming()
const {
return getStatusFlag(::ActorFlags::Swimming); }
212 [[nodiscard]]
bool isMoving()
const {
return getStatusFlag(::ActorFlags::Moving); }
213 [[nodiscard]]
bool isSprinting()
const {
return getStatusFlag(::ActorFlags::Sprinting); }
214 [[nodiscard]]
bool isSneaking()
const {
return getStatusFlag(::ActorFlags::Sneaking); }
215 [[nodiscard]]
bool isCrawling()
const {
return getStatusFlag(::ActorFlags::Crawling); }
216 [[nodiscard]]
bool isGliding()
const {
return getStatusFlag(::ActorFlags::Gliding); }
217 [[nodiscard]]
bool isDancing()
const {
return getStatusFlag(::ActorFlags::Dancing); }
218 [[nodiscard]]
bool canFly()
const {
return getStatusFlag(::ActorFlags::Canfly); }
219 [[nodiscard]]
bool isHurt()
const {
220 if (
auto health = getHealth(); health > 0 && health < getMaxHealth()) {
227 LLNDAPI ::ItemStack
const& getOffhandSlot()
const;
229 LLNDAPI
bool isDead()
const;
231 LLNDAPI ::ItemStack
const& getEquippedSlot(::SharedTypes::Legacy::EquipmentSlot slot)
const;
236 ::ll::TypedStorage<8, 24, ::EntityContext> mEntityContext;
237 ::ll::TypedStorage<8, 80, ::VariantParameterList> mInitParams;
238 ::ll::TypedStorage<8, 32, ::std::string> mCustomInitEventName;
239 ::ll::TypedStorage<1, 1, ::ActorInitializationMethod> mInitMethod;
240 ::ll::TypedStorage<1, 1, bool> mForceInitMethodToSpawnOnReload;
241 ::ll::TypedStorage<1, 1, bool> mAdded;
242 ::ll::TypedStorage<8, 8, ::ActorDefinitionGroup*> mDefinitions;
243 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorDefinitionDescriptor>> mCurrentDescription;
244 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::RopeSystem>> mLeashRopeSystem;
245 ::ll::TypedStorage<8, 32, ::std::string> mAlias;
246 ::ll::TypedStorage<4, 68, ::std::optional<::glm::mat4x4>> mPreviousRenderTransform;
247 ::ll::TypedStorage<4, 4, int> mLastHurtByPlayerTime;
254 ::std::less<::BoneCacheKey>,
255 ::std::vector<::BoneCacheKey>,
256 ::std::vector<::Matrix>>>
257 mPreviousBoneMatrices;
258 ::ll::TypedStorage<8, 48, ::SynchedActorDataEntityWrapper> mEntityData;
259 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SpatialActorNetworkData>> mNetworkData;
260 ::ll::TypedStorage<4, 12, ::Vec3> mSentDelta;
261 ::ll::TypedStorage<4, 4, float> mScale;
262 ::ll::TypedStorage<4, 4, float> mScalePrev;
263 ::ll::TypedStorage<1, 1, bool> mIgnoreLighting;
264 ::ll::TypedStorage<1, 1, bool> mFilterLighting;
265 ::ll::TypedStorage<4, 4, float> mStepSoundVolume;
266 ::ll::TypedStorage<4, 4, float> mStepSoundPitch;
267 ::ll::TypedStorage<8, 8, ::AABB*> mLastHitBB;
268 ::ll::TypedStorage<8, 8, uint64> mNameTagHash;
269 ::ll::TypedStorage<4, 4, float> mShadowOffset;
270 ::ll::TypedStorage<4, 4, float> mPushThrough;
271 ::ll::TypedStorage<4, 4, int> mTickCount;
272 ::ll::TypedStorage<4, 4, int> mInvulnerableTime;
273 ::ll::TypedStorage<4, 4, int> mLastHealth;
274 ::ll::TypedStorage<1, 1, bool> mInvulnerable;
275 ::ll::TypedStorage<4, 4, int> mFlameTexFrameIndex;
276 ::ll::TypedStorage<4, 4, float> mFlameFrameIncrementTime;
277 ::ll::TypedStorage<1, 1, bool> mAlwaysFireImmune;
278 ::ll::TypedStorage<1, 1, bool> mInheritRotationWhenRiding;
279 ::ll::TypedStorage<1, 1, bool> mForcedLoading;
280 ::ll::TypedStorage<1, 1, bool> mHighlightedThisFrame;
281 ::ll::TypedStorage<1, 1, bool> mInitialized;
282 ::ll::TypedStorage<1, 1, bool> mProcessedOnChunkDiscard;
283 ::ll::TypedStorage<4, 4, float> mSoundVolume;
284 ::ll::TypedStorage<4, 4, int> mShakeTime;
285 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLegacyUniqueID;
286 ::ll::TypedStorage<8, 16, ::WeakRef<::Dimension>> mDimension;
287 ::ll::TypedStorage<8, 8, ::ILevel*> mLevel;
288 ::ll::TypedStorage<8, 48, ::HashedString> mActorRendererId;
289 ::ll::TypedStorage<4, 4, ::ActorCategory> mCategories;
290 ::ll::TypedStorage<4, 4, ::ActorVersion> mVersion;
291 ::ll::TypedStorage<8, 24, ::BuiltInActorComponents> mBuiltInComponents;
292 ::ll::TypedStorage<8, 48, ::HashedString> mActorRendererIdThatAnimationComponentWasInitializedWith;
293 ::ll::TypedStorage<1, 1, bool> mChanged;
294 ::ll::TypedStorage<1, 1, bool> mRemoved;
295 ::ll::TypedStorage<1, 1, bool> mMovedToLimbo;
296 ::ll::TypedStorage<1, 1, bool> mMovedToUnloadedChunk;
297 ::ll::TypedStorage<1, 1, bool> mBlocksBuilding;
298 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mAnimationComponent;
299 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mUIAnimationComponent;
300 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetId;
301 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInLovePartner;
302 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompoundTag>> mPersistingTradeOffers;
303 ::ll::TypedStorage<4, 4, int> mPersistingTradeRiches;
304 ::ll::TypedStorage<1, 1, bool> mPersistingTrade;
305 ::ll::TypedStorage<1, 1, bool> mEffectsDirty;
306 ::ll::TypedStorage<1, 1, bool> mLootDropped;
307 ::ll::TypedStorage<1, 1, bool> mLoadedFromNBTThisFrame;
308 ::ll::TypedStorage<4, 16, ::mce::Color> mHurtColor;
309 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorDefinitionDiffList>> mDefinitionList;
310 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CompoundTag>> mLoadedActorPropertyTag;
311 ::ll::TypedStorage<8, 16, ::ActorDefinitionPtr> mActorDefinitionPtr;
312 ::ll::TypedStorage<8, 32, ::std::string> mFilteredNameTag;
313 ::ll::TypedStorage<8, 24, ::ActorTerrainInterlockData> mTerrainInterlockData;
314 ::ll::TypedStorage<1, 1, bool> mWasHurtThisTick;
315 ::ll::TypedStorage<1, 1, bool> mWasHurtLastTick;
316 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastHurtMobId;
317 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastHurtByMobId;
318 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastHurtByPlayerId;
319 ::ll::TypedStorage<8, 8, uint64> mLastHurtTimestamp;
320 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::ActorDamageCause> mLastHurtCause;
321 ::ll::TypedStorage<4, 4, float> mLastHurt;
322 ::ll::TypedStorage<4, 4, int> mLastHurtMobTimestamp;
323 ::ll::TypedStorage<4, 4, int> mLastHurtByMobTime;
324 ::ll::TypedStorage<4, 4, int> mLastHurtByMobTimestamp;
325 ::ll::TypedStorage<1, 1, bool> mIsPredictableProjectile;
326 ::ll::TypedStorage<1, 1, bool> mIsRenderingInUI;
328 ::ll::TypedStorage<1, 1, bool> mIsOnScreen;
329 ::ll::TypedStorage<1, 1, bool> mUpdateBonesAndEffects;
331 ::ll::TypedStorage<1, 1, bool> mUpdateEffects;
332 ::ll::TypedStorage<1, 1, bool> mCanPickupItems;
333 ::ll::TypedStorage<1, 1, bool> mHasSetCanPickupItems;
334 ::ll::TypedStorage<1, 1, bool> mChainedDamageEffects;
335 ::ll::TypedStorage<4, 4, int> mAffectedByWaterBottleTicksToEffect;
336 ::ll::TypedStorage<4, 4, ::SpawnRuleEnum> mSpawnRulesEnum;
337 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActionQueue>> mActionQueue;
338 ::ll::TypedStorage<8, 56, ::MolangVariableMap> mMolangVariables;
339 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mFishingHookID;
351 virtual void outOfWorld();
355 virtual void reloadHardcodedClient(::ActorInitializationMethod method);
357 virtual void initializeComponents(::ActorInitializationMethod method,
::VariantParameterList const& params);
361 virtual void _serverInitItemStackIds();
363 virtual void _doInitialMove();
367 virtual void resetUserPos(::ActorResetRule resetRule);
369 virtual ::ActorType getOwnerEntityType();
371 virtual void remove();
373 virtual ::Vec3 getFiringPos()
const;
375 virtual float getInterpolatedBodyRot(
float a = 0.0f)
const;
377 virtual float getInterpolatedHeadRot(
float a = 0.0f)
const;
379 virtual float getInterpolatedBodyYaw(
float a = 0.0f)
const;
381 virtual float getYawSpeedInDegreesPerSecond()
const;
383 virtual ::Vec3 getInterpolatedRidingOffset(
float,
int const)
const;
385 virtual bool isFireImmune()
const;
389 virtual bool canDisableShield();
392 teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
394 virtual void lerpMotion(
::Vec3 const& delta);
396 virtual ::std::unique_ptr<::Packet> tryCreateAddActorPacket();
398 virtual void normalTick();
400 virtual void baseTick();
402 virtual void passengerTick();
404 virtual bool startRiding(::Actor& vehicle,
bool forceRiding);
406 virtual void addPassenger(::Actor& passenger);
408 virtual ::std::string getExitTip(::std::string
const& kind, ::InputMode mode, ::NewInteractionModel scheme)
const;
410 virtual ::std::string getEntityLocNameString()
const;
412 virtual bool isInvisible()
const;
414 virtual bool canShowNameTag()
const;
416 virtual ::mce::Color getNameTagTextColor()
const;
418 virtual float getShadowRadius()
const;
420 virtual ::Vec3 getHeadLookVector(
float a = 0.0f)
const;
422 virtual bool canInteractWithOtherEntitiesInGame()
const;
426 virtual void playerTouch(
::Player& player);
428 virtual bool isImmobile()
const;
430 virtual bool isSilentObserver()
const;
432 virtual bool isSleeping()
const;
434 virtual void setSleeping(
bool val);
436 virtual void setSneaking(
bool value);
438 virtual bool isBlocking()
const;
442 virtual bool isAlive()
const;
444 virtual bool isOnFire()
const;
446 virtual bool isSurfaceMob()
const;
448 virtual bool isTargetable()
const;
450 virtual void setTarget(::Actor* entity);
452 virtual bool isValidTarget(::Actor* attacker)
const;
454 virtual ::ActorHurtResult attack(::Actor& target, ::SharedTypes::Legacy::ActorDamageCause
const& cause);
456 virtual void performRangedAttack(::Actor& target,
float);
460 virtual void setSitting(
bool value);
462 virtual void onTame();
464 virtual void onFailedTame();
466 virtual void setStanding(
bool value);
468 virtual bool canPowerJump()
const;
470 virtual bool isEnchanted()
const;
472 virtual void playAmbientSound();
474 virtual ::SharedTypes::Legacy::LevelSoundEvent getAmbientSound()
const;
478 virtual ::SharedTypes::Legacy::ActorDamageCause getBlockDamageCause(
::Block const& block)
const;
480 virtual ::ActorHurtResult doFireHurt(
int amount);
482 virtual void onLightningHit();
484 virtual void feed(
int itemId);
486 virtual void handleEntityEvent(::ActorEvent eventId,
int data);
488 virtual ::HashedString
const& getActorRendererId()
const;
490 virtual void despawn();
492 virtual void setArmor(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item);
494 virtual ::ArmorMaterialType getArmorMaterialTypeInSlot(::SharedTypes::Legacy::ArmorSlot slot)
const;
496 virtual int getArmorTextureIndexInSlot(::SharedTypes::Legacy::ArmorSlot slot)
const;
498 virtual float getArmorColorInSlot(::SharedTypes::Legacy::ArmorSlot slot,
int channelRGBA)
const;
500 virtual void setEquippedSlot(::SharedTypes::Legacy::EquipmentSlot slot,
::ItemStack const& item);
502 virtual void setCarriedItem(
::ItemStack const& item);
504 virtual ::ItemStack
const& getCarriedItem()
const;
506 virtual void setOffhandSlot(
::ItemStack const& item);
508 virtual ::ItemStack
const& getEquippedTotem()
const;
510 virtual bool consumeTotem();
514 virtual ::HashedString
const& queryEntityRenderer()
const;
516 virtual ::ActorUniqueID getSourceUniqueID()
const;
518 virtual ::AABB getLiquidAABB(::SharedTypes::v1_26_20::MaterialType
const liquidType)
const;
520 virtual void handleInsidePortal(
::BlockPos const& portalPos);
522 virtual bool canChangeDimensionsUsingPortal()
const;
532 virtual ::ActorUniqueID getControllingPlayer()
const;
534 virtual float causeFallDamageToActor(
float distance,
float multiplier,
::ActorDamageSource source);
536 virtual void onSynchedDataUpdate(
int dataId);
538 virtual bool canAddPassenger(::Actor& passenger)
const;
540 virtual bool canPickupItem(
::ItemStack const& item)
const;
542 virtual bool canBePulledIntoVehicle()
const;
544 virtual bool inCaravan()
const;
546 virtual void sendMotionPacketIfNeeded();
548 virtual bool canSynchronizeNewEntity()
const;
550 virtual void startSwimming();
552 virtual void stopSwimming();
554 virtual void buildDebugInfo(::std::string& out)
const;
556 virtual ::CommandPermissionLevel getCommandPermissionLevel()
const;
558 virtual int getDeathTime()
const;
560 virtual bool canBeAffected(uint
id)
const;
566 virtual bool canObstructSpawningAndBlockPlacement()
const;
568 virtual ::AnimationComponent& getAnimationComponent();
570 virtual void openContainerComponent(
::Player& player);
572 virtual bool swing(::ActorSwingSource swingSource, ::HandSlot handSlot);
574 virtual void useItem(
::ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem);
576 virtual void getDebugText(::std::vector<::std::string>& outputInfo);
578 virtual float getMapDecorationRotation()
const;
580 virtual float getPassengerYRotation(::Actor
const& passenger)
const;
584 virtual bool drop(
::ItemStack const& item,
bool const randomly);
586 virtual ::Interaction getInteraction(
::Player& player,
::Vec3 const& location, ::HandSlot handSlot);
588 virtual bool canDestroyBlock(
::Block const& block)
const;
590 virtual void setAuxValue(
int aux);
598 virtual bool shouldDropDeathLoot()
const;
600 virtual void applySnapshot(
605 virtual void onPush(::Actor& source);
607 virtual ::std::optional<::BlockPos> getLastDeathPos()
const;
609 virtual ::std::optional<::DimensionType> getLastDeathDimension()
const;
611 virtual bool hasDiedBefore()
const;
613 virtual void doEnterWaterSplashEffect();
615 virtual void doExitWaterSplashEffect();
617 virtual void doWaterSplashEffect();
619 virtual bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot,
::ItemStack const& item)
const;
621 virtual bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item)
const;
623 virtual ::ActorHurtResult
628 virtual void addAdditionalSaveData(
::CompoundTag& tag)
const;
650 MCFOLD ::std::vector<::MobEffectInstance>& _getAllEffectsNonConst();
653 ::std::shared_ptr<::AnimationComponent>& animationComponent,
654 ::AnimationComponentGroupType group
665 MCAPI
void _sendDirtyActorData();
673 MCAPI
void _setPos(
::Vec3 const& pos);
681 MCAPI
bool addTag(::std::string
const& tag);
687 MCAPI
void burn(
int damage,
bool inFire);
689 MCAPI
bool canAttack(::Actor
const& entity)
const;
693 MCNAPI
bool canMate(::Actor
const& partner)
const;
695 MCAPI
bool canReceiveMobEffectsFromGameplay()
const;
697 MCAPI
bool canSee(
::Vec3 const& targetPos, ::ShapeType obstructionType)
const;
699 MCAPI
bool canSeeDaylight()
const;
703 MCAPI
void checkFallDamage(
float ya,
bool onGround,
bool recheckLiquid);
707 MCAPI
bool closerThan(::Actor
const& e,
float distance)
const;
709 MCAPI
bool closerThan(::Actor
const& e,
float distanceXZ,
float distanceY)
const;
711 MCAPI
void consumeItem(
::ItemActor& itemActor,
int count);
721 MCAPI
float distanceTo(::Actor
const& e)
const;
727 MCAPI
void equip(::std::string
const& lootTableFilePath);
737 MCAPI
void exitVehicle(
bool exitFromPassenger,
bool actorIsBeingDestroyed,
bool wasEjectedByActivatorRail);
741 MCAPI ::std::vector<::DistanceSortedActor> fetchNearbyActorsSorted(
::Vec3 const& distance, ::ActorType actorTypeId);
744 MCNAPI
int getActiveEffectCount()
const;
747 MCAPI ::ActorDefinitionIdentifier
const& getActorIdentifier()
const;
750 MCNAPI ::Matrix getActorToWorldTransform(
float frameAlpha,
bool useActorRotation,
::Vec3 const& offset)
const;
753 MCFOLD ::std::vector<::MobEffectInstance>
const& getAllEffects()
const;
755 MCAPI ::Vec3 getAttachPos(::SharedTypes::Legacy::ActorLocation location,
float alpha = 0.0f)
const;
757 MCAPI ::AttributeInstanceConstRef getAttribute(
::Attribute const& attribute)
const;
759 MCAPI ::gsl::not_null<::BaseAttributeMap const*> getAttributes()
const;
762 MCAPI ::gsl::not_null<::BaseAttributeMap*> getAttributes();
765 MCAPI ::BlockPos getBlockPosCurrentlyStandingOn(::Actor
const* actor)
const;
769 MCAPI
int getChestSlots()
const;
773 MCAPI ::Dimension& getDimension()
const;
775 MCFOLD ::BlockSource& getDimensionBlockSource()
const;
777 MCFOLD ::BlockSource
const& getDimensionBlockSourceConst()
const;
779 MCAPI ::MobEffectInstance
const* getEffect(
::MobEffect const& effect)
const;
781 MCAPI ::MobEffectInstance
const* getEffect(uint effectId)
const;
783 MCAPI ::ActorType getEntityTypeId()
const;
785 MCAPI
int getEquipSlots()
const;
787 MCAPI
int getEquipmentCount()
const;
789 MCAPI ::SharedTypes::Legacy::EquipmentSlot getEquipmentSlotForItem(
::ItemStack const& item)
const;
791 MCAPI ::Vec3 getEyePos()
const;
793 MCAPI
float getFallDistance()
const;
796 MCAPI ::std::string getFilteredNameTag()
const;
801 MCAPI ::Actor* getFirstPassenger()
const;
804 MCNAPI ::Block
const* getInsideBlock()
const;
807 MCAPI ::Vec3 getInterpolatedPosition(
float a = 0.0f)
const;
811 MCAPI
int getInventorySize()
const;
813 MCAPI ::ItemStack
const& getItemInHandSlot(::HandSlot slot)
const;
815 MCAPI ::ActorUniqueID getLeashHolder()
const;
817 MCAPI uint64 getLevelTimeStamp()
const;
819 MCAPI ::std::vector<::ActorLink> getLinks()
const;
821 MCAPI ::LootTable* getLootTable();
823 MCAPI
int getMarkVariant()
const;
825 MCAPI
float getMaxAutoStep()
const;
828 MCNAPI int64 getMetadataId()
const;
831 MCAPI ::MutableAttributeWithContext getMutableAttribute(
::Attribute const& attribute);
833 MCAPI ::std::string
const& getNameTag()
const;
835 MCAPI
int getOnDeathExperience();
837 MCAPI ::DynamicProperties& getOrAddDynamicProperties();
839 MCAPI ::ActorUniqueID
const& getOrCreateUniqueID()
const;
841 MCAPI ::Mob* getOwner()
const;
843 MCAPI ::ActorUniqueID
const getOwnerId()
const;
845 MCAPI
int getPassengerIndex(::Actor
const& passenger)
const;
847 MCAPI ::Player* getPlayerOwner()
const;
849 MCAPI ::Random& getRandom()
const;
855 MCAPI ::ActorRuntimeID getRuntimeID()
const;
861 MCAPI ::std::vector<::std::string>
const getTags()
const;
863 MCAPI ::MerchantRecipeList* getTradeOffers();
865 MCAPI
int getVariant()
const;
867 MCAPI ::Actor* getVehicle()
const;
871 MCAPI ::Vec3 getViewVector(
float a = 0.0f)
const;
873 MCFOLD
float getYHeadRot()
const;
876 MCNAPI ::InterpolationPair getYHeadRotationsNewOld()
const;
879 MCAPI
void handleFallDamage(
float fallDistance,
float multiplier,
::ActorDamageSource source);
883 MCAPI
bool hasAnyEffects()
const;
885 MCAPI
bool hasDimension()
const;
889 MCAPI
bool hasPassenger()
const;
891 MCAPI
bool hasPlayerPassenger()
const;
895 MCAPI
bool hasRuntimeID()
const;
897 MCAPI
bool hasSaddle()
const;
899 MCAPI
bool hasTag(::std::string
const& tag)
const;
901 MCAPI
bool hasTags()
const;
903 MCAPI
bool hasType(::ActorType types)
const;
905 MCAPI
bool hasUniqueID()
const;
907 MCAPI
void heal(
int heal);
909 MCAPI ::ActorHurtResult
917 ::SharedTypes::Legacy::ActorLocation actorLocation,
918 ::SharedTypes::v1_26_20::MaterialType type
921 MCAPI
bool isAdventure()
const;
923 MCAPI
bool isAngry()
const;
925 MCAPI
bool isBaby()
const;
927 MCAPI
bool isCreative()
const;
931 MCAPI
bool isImmersedInWater()
const;
935 MCAPI
bool isInLove()
const;
939 MCAPI
bool isInRain()
const;
941 MCAPI
bool isInSnow()
const;
943 MCAPI
bool isInThunderstorm()
const;
945 MCAPI
bool isInWater()
const;
947 MCAPI
bool isInWaterOrRain()
const;
949 MCAPI
bool isInsidePortal()
const;
953 MCAPI
bool isJumping()
const;
957 MCAPI
bool isLeashed()
const;
959 MCAPI
bool isLocalPlayer()
const;
965 MCAPI
bool isPassenger(::Actor
const& passenger)
const;
969 MCAPI
bool isRiding(::Actor* targetVehicle)
const;
971 MCAPI
bool isSilent()
const;
973 MCAPI
bool isSitting()
const;
975 MCAPI
bool isSpectator()
const;
979 MCAPI
bool isSurvival()
const;
981 MCAPI
bool isTame()
const;
983 MCAPI
bool isTrading()
const;
985 MCAPI
bool isUnderLiquid(::SharedTypes::v1_26_20::MaterialType type)
const;
989 MCAPI
bool isWearingLeatherArmor()
const;
1004 MCAPI
void move(
::Vec3 const& posDelta);
1006 MCAPI
void moveTo(
::Vec3 const& pos,
::Vec2 const& rot);
1008 MCAPI
bool onClimbableBlock()
const;
1016 MCAPI
void pickUpItem(
::ItemActor& itemActor,
int count);
1018 MCAPI
void playSound(
1020 ::SharedTypes::Legacy::LevelSoundEvent type,
1034 ::SharedTypes::Legacy::LevelSoundEvent type,
1038 ::std::optional<::Vec3>
const&
1042 MCNAPI
void positionAllPassengers();
1045 MCAPI
void positionPassenger(::Actor& passenger);
1056 MCNAPI
void refreshComponents();
1061 MCAPI
void removeAllEffects();
1063 MCAPI
void removeAllPassengers(
bool actorIsBeingDestroyed,
bool exitFromPassenger);
1065 MCAPI
void removeEffect(
int effectId);
1067 MCAPI
bool removeTag(::std::string
const& tag);
1083 MCAPI
void setFallDistance(
float distance);
1085 MCAPI
void setInLove(::Actor* lovePartner);
1087 MCAPI
void setInvisible(
bool value);
1091 MCAPI
void setLastHurtByPlayer(
::Player* player);
1095 MCAPI
void setLimitedLifetimeTicks(
int lifetimeTicks);
1097 MCAPI
void setNameTag(::std::string
const& name);
1103 MCAPI
void setPersistent();
1108 MCAPI
void setRotationWrapped(
::Vec2 const& rot);
1113 MCAPI
void setScoreTag(::std::string
const& score);
1115 MCAPI
void setStrength(
int strength);
1120 MCAPI
void setTradingPlayer(
::Player* player);
1125 MCAPI
void setYHeadRot(
float yHeadRot);
1127 MCAPI
void setYHeadRotations(
float yHeadRot,
float oldYHeadRot);
1131 MCAPI
bool shouldTick()
const;
1133 MCAPI ::ItemActor* spawnAtLocation(
::ItemStack const& item,
float yOffs);
1138 stopRiding(
bool exitFromPassenger,
bool actorIsBeingDestroyed,
bool switchingVehicles,
bool isBeingTeleported);
1140 MCAPI
void synchronousSetSize(
float w,
float h);
1142 MCAPI
void teleportPassengersTo(
::Vec3 const& pos,
int cause,
int entityType);
1156 MCAPI
bool tryTeleportTo(
::Vec3 const& pos,
bool landOnBlock,
bool avoidLiquid,
int cause,
int entityType);
1159 MCNAPI
void updateDescription();
1179 float ignoreGapBelow,
1184 MCNAPI static ::Vec3 getInterpolatedPosition(
1191 MCAPI
static bool isInLiquid(
1192 ::SharedTypes::v1_26_20::MaterialType liquidType,
1195 ::std::vector<::AABB>
const& subAABBs
1200 MCNAPI static ::Actor*
1227 MCAPI
void $outOfWorld();
1233 MCAPI
void $initializeComponents(::ActorInitializationMethod method,
::VariantParameterList const& params);
1245 MCAPI
void $remove();
1266 $teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
1272 MCAPI
void $normalTick();
1274 MCAPI
void $baseTick();
1278 MCAPI
bool $startRiding(::Actor& vehicle,
bool forceRiding);
1280 MCAPI
void $addPassenger(::Actor& passenger);
1282 MCNAPI ::std::string
$getExitTip(::std::string
const& kind, ::InputMode mode, ::NewInteractionModel scheme)
const;
1324 MCAPI
void $setTarget(::Actor* entity);
1328 MCAPI ::ActorHurtResult $attack(::Actor& target, ::SharedTypes::Legacy::ActorDamageCause
const& cause);
1356 MCAPI
void $onLightningHit();
1364 MCAPI
void $despawn();
1366 MCAPI
void $setArmor(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item);
1376 MCAPI
void $setCarriedItem(
::ItemStack const& item);
1392 MCNAPI ::AABB
$getLiquidAABB(::SharedTypes::v1_26_20::MaterialType
const liquidType)
const;
1408 MCAPI
float $causeFallDamageToActor(
float distance,
float multiplier,
::ActorDamageSource source);
1412 MCAPI
bool $canAddPassenger(::Actor& passenger)
const;
1414 MCFOLD
bool $canPickupItem(
::ItemStack const& item)
const;
1434 MCAPI
bool $canBeAffected(uint
id)
const;
1446 MCNAPI
bool $swing(::ActorSwingSource swingSource, ::HandSlot handSlot);
1448 MCAPI
void $useItem(
::ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem);
1458 MCAPI
bool $drop(
::ItemStack const& item,
bool const randomly);
1460 MCAPI ::Interaction $getInteraction(
::Player& player,
::Vec3 const& location, ::HandSlot handSlot);
1497 MCNAPI ::ActorHurtResult