PathfinderMob
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.entity.type.misc.PathfinderMob;
Extends
PathfinderMob extends Mob
.
Implements
PathfinderMob
implements the following interfaces:
Targeting
,Nameable
,EntityAccess
,CommandSource
,IAttachmentHolder
Undocumented Interfaces
EquipmentUser
,Leashable
,Attackable
,ILivingEntityExtension
,SyncedDataHolder
,ScoreHolder
,IEntityExtension
,INBTSerializable<CompoundTag>
Members
// PathfinderMob.absorptionAmount as floatmyPathfinderMob.absorptionAmount
Return Type:
float
Returns: The absorption amount.
// PathfinderMob.absorptionAmount() as float;myPathfinderMob.absorptionAmount();
Return Type:
float
// PathfinderMob.acceptsFailure as boolmyPathfinderMob.acceptsFailure
Return Type:
bool
Returns: True if the commands from this source should return failure messages, false otherwise.
// PathfinderMob.acceptsFailure() as bool;myPathfinderMob.acceptsFailure();
Return Type:
bool
// PathfinderMob.acceptsSuccess as boolmyPathfinderMob.acceptsSuccess
Return Type:
bool
Returns: True if the commands from this source should return successful messages, false otherwise.
// PathfinderMob.acceptsSuccess() as bool;myPathfinderMob.acceptsSuccess();
Return Type:
bool
myPathfinderMob.activeEffects
Return Type:
Collection<MobEffectInstance>
Returns: The active effects.
myPathfinderMob.activeEffects();
Return Type:
Collection<MobEffectInstance>
myPathfinderMob.activeEffectsMap
Return Type:
MobEffectInstance[MobEffect]
Returns: The active effects map.
myPathfinderMob.activeEffectsMap();
Return Type:
MobEffectInstance[MobEffect]
Returns: True if the effect was added, false otherwise.
myPathfinderMob.addEffect(myMobEffectInstance);
Parameters:
Return Type:
bool
Returns: True if the effect was added, false otherwise.
myPathfinderMob.addEffect(myMobEffectInstance, myEntity);
Parameters:
Return Type:
bool
Returns: true if the tag was added.
// PathfinderMob.addTag(tagName as string) as bool;myPathfinderMob.addTag(myString);
Parameters:
tagName: string
Type: string
- The name of the tag to add.
Return Type:
bool
// PathfinderMob.aggressive as boolmyPathfinderMob.aggressive
Return Type:
bool
// PathfinderMob.aggressive = (value as bool);myPathfinderMob.aggressive = myBool;
Parameters:
value: bool
Type: bool
- Whether the mob should be aggressive. // PathfinderMob.airSupply as intmyPathfinderMob.airSupply
Return Type:
int
Returns: The current air supply of the entity.
// PathfinderMob.airSupply() as int;myPathfinderMob.airSupply();
Return Type:
int
// PathfinderMob.alwaysAccepts as boolmyPathfinderMob.alwaysAccepts
Return Type:
bool
Returns: True if the command source always accepts, false otherwise.
// PathfinderMob.alwaysAccepts() as bool;myPathfinderMob.alwaysAccepts();
Return Type:
bool
// PathfinderMob.ambientSoundInterval as intmyPathfinderMob.ambientSoundInterval
Return Type:
int
This is a value from 0 to 1 that represents the percentage of the entity's body that is covered by armor.
// PathfinderMob.armorCoverPercentage as floatmyPathfinderMob.armorCoverPercentage
Return Type:
float
This is a value from 0 to 1 that represents the percentage of the entity's body that is covered by armor.
Returns: The armor cover percentage.
// PathfinderMob.armorCoverPercentage() as float;myPathfinderMob.armorCoverPercentage();
Return Type:
float
// PathfinderMob.armorValue as intmyPathfinderMob.armorValue
Return Type:
int
Returns: The armor value.
// PathfinderMob.armorValue() as int;myPathfinderMob.armorValue();
Return Type:
int
// PathfinderMob.arrowCount as intmyPathfinderMob.arrowCount
Return Type:
int
Returns: The arrow count.
// PathfinderMob.arrowCount() as int;myPathfinderMob.arrowCount();
Return Type:
int
This is used by sheep when they eat grass to regrow their wool / grow up.
// PathfinderMob.ate();myPathfinderMob.ate();
// PathfinderMob.attackable as boolmyPathfinderMob.attackable
Return Type:
bool
Returns: True if the entity is attackable, false otherwise.
// PathfinderMob.attackable() as bool;myPathfinderMob.attackable();
Return Type:
bool
// PathfinderMob.baby = (value as bool);myPathfinderMob.baby = myBool;
Parameters:
value: bool
Type: bool
- Whether the mob should be a baby. // PathfinderMob.bbHeight as floatmyPathfinderMob.bbHeight
Return Type:
float
Returns: The height of the bounding box of the entity.
// PathfinderMob.bbHeight() as float;myPathfinderMob.bbHeight();
Return Type:
float
// PathfinderMob.bbWidth as floatmyPathfinderMob.bbWidth
Return Type:
float
Returns: The width of the bounding box of the entity.
// PathfinderMob.bbWidth() as float;myPathfinderMob.bbWidth();
Return Type:
float
// PathfinderMob.blockX as intmyPathfinderMob.blockX
Return Type:
int
Returns: The x coordinate of the entity.
// PathfinderMob.blockX() as int;myPathfinderMob.blockX();
Return Type:
int
// PathfinderMob.blockY as intmyPathfinderMob.blockY
Return Type:
int
Returns: The y coordinate of the entity.
// PathfinderMob.blockY() as int;myPathfinderMob.blockY();
Return Type:
int
// PathfinderMob.blockZ as intmyPathfinderMob.blockZ
Return Type:
int
Returns: The z coordinate of the entity.
// PathfinderMob.blockZ() as int;myPathfinderMob.blockZ();
Return Type:
int
Returns: True if this entity can attack the target, false otherwise.
myPathfinderMob.canAttack(myLivingEntity);
Parameters:
Return Type:
bool
Returns: True if this entity can be affected by the effect, false otherwise.
myPathfinderMob.canBeAffected(myMobEffectInstance);
Parameters:
effectInstance: MobEffectInstance
Type: MobEffectInstance
- The effect to check if this entity can be affected by.
Return Type:
bool
// PathfinderMob.canBeCollidedWith as boolmyPathfinderMob.canBeCollidedWith
Return Type:
bool
Returns: true if the entity can be collided with.
// PathfinderMob.canBeCollidedWith() as bool;myPathfinderMob.canBeCollidedWith();
Return Type:
bool
Returns: Whether the mob can be leashed.
// PathfinderMob.canBeLeashed() as bool;myPathfinderMob.canBeLeashed();
Return Type:
bool
// PathfinderMob.canBeSeenAsEnemy as boolmyPathfinderMob.canBeSeenAsEnemy
Return Type:
bool
Returns: True if this entity can be seen as an enemy, false otherwise.
// PathfinderMob.canBeSeenAsEnemy() as bool;myPathfinderMob.canBeSeenAsEnemy();
Return Type:
bool
// PathfinderMob.canBeSeenByAnyone as boolmyPathfinderMob.canBeSeenByAnyone
Return Type:
bool
Returns: True if this entity can be seen by anyone, false otherwise.
// PathfinderMob.canBeSeenByAnyone() as bool;myPathfinderMob.canBeSeenByAnyone();
Return Type:
bool
// PathfinderMob.canBreatheUnderwater as boolmyPathfinderMob.canBreatheUnderwater
Return Type:
bool
Returns: True if the entity can breathe underwater, false otherwise.
// PathfinderMob.canBreatheUnderwater() as bool;myPathfinderMob.canBreatheUnderwater();
Return Type:
bool
Returns: true if the entity can collide with the given entity.
myPathfinderMob.canCollideWith(myEntity);
Return Type:
bool
Returns: Whether the mob can fire the weapon.
myPathfinderMob.canFireProjectileWeapon(myProjectileWeaponItem);
Parameters:
Return Type:
bool
// PathfinderMob.canFreeze as boolmyPathfinderMob.canFreeze
Return Type:
bool
Returns: Whether the entity can freeze.
// PathfinderMob.canFreeze() as bool;myPathfinderMob.canFreeze();
Return Type:
bool
// PathfinderMob.canPickUpLoot as boolmyPathfinderMob.canPickUpLoot
Return Type:
bool
// PathfinderMob.canPickUpLoot = (value as bool);myPathfinderMob.canPickUpLoot = myBool;
Parameters:
value: bool
Type: bool
- Whether the mob can pick up loot. Returns: Whether the mob can replace the item.
myPathfinderMob.canReplaceEqualItem(myItemStack, myItemStack);
Parameters:
Return Type:
bool
Returns: True if the entity can stand on the fluid, false otherwise.
myPathfinderMob.canStandOnFluid(myFluid);
Return Type:
bool
level
.Returns: Whether the mob can spawn in the given level.
myPathfinderMob.checkSpawnObstruction(myLevelReader);
Parameters:
Return Type:
bool
level
with the given MobSpawnType
.Returns: Whether the mob can spawn in the given level.
myPathfinderMob.checkSpawnRules(myLevelAccessor, myMobSpawnType);
Parameters:
Return Type:
bool
// PathfinderMob.clearFire();myPathfinderMob.clearFire();
// PathfinderMob.clearRestriction();myPathfinderMob.clearRestriction();
// PathfinderMob.clearSleepingPos();myPathfinderMob.clearSleepingPos();
Returns: true if the entity is closer than the given distance to the other entity.
myPathfinderMob.closerThan(myEntity, myDouble);
Parameters:
Return Type:
bool
net.minecraft.world.entity.item.ItemEntity
s who's item is in the dampens_vibrations item tag.// PathfinderMob.dampensVibrations as boolmyPathfinderMob.dampensVibrations
Return Type:
bool
net.minecraft.world.entity.item.ItemEntity
s who's item is in the dampens_vibrations item tag.Returns: true if the entity dampens vibrations.
// PathfinderMob.dampensVibrations() as bool;myPathfinderMob.dampensVibrations();
Return Type:
bool
myPathfinderMob.die(myDamageSource);
Parameters:
// PathfinderMob.dimensionChangingDelay as intmyPathfinderMob.dimensionChangingDelay
Return Type:
int
Returns: The dimension changing delay of the entity.
// PathfinderMob.dimensionChangingDelay() as int;myPathfinderMob.dimensionChangingDelay();
Return Type:
int
// PathfinderMob.discard();myPathfinderMob.discard();
// PathfinderMob.dismountsUnderwater as boolmyPathfinderMob.dismountsUnderwater
Return Type:
bool
Returns: true if the entity dismounts underwater.
// PathfinderMob.dismountsUnderwater() as bool;myPathfinderMob.dismountsUnderwater();
Return Type:
bool
Returns: The squared distance to the given position.
// PathfinderMob.distanceToSqr(x as double, y as double, z as double) as double;myPathfinderMob.distanceToSqr(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to get the squared distance to. y: double
Type: double
- The y position to get the squared distance to. z: double
Type: double
- The z position to get the squared distance to.
Return Type:
double
Returns: The squared distance to the given entity.
myPathfinderMob.distanceToSqr(myEntity);
Return Type:
double
// PathfinderMob.dropLeash(broadcastPacket as bool, dropLeash as bool);myPathfinderMob.dropLeash(myBool, myBool);
Parameters:
broadcastPacket: bool
Type: bool
- Whether to broadcast a packet to the client. dropLeash: bool
Type: bool
- Whether to drop the leash item. Returns: The item that the entity ate.
myPathfinderMob.eat(myLevel, myItemStack);
Parameters:
Return Type:
ItemStack
// PathfinderMob.ejectPassengers();myPathfinderMob.ejectPassengers();
Returns: The item that was equipped.
myPathfinderMob.equipItemIfPossible(myItemStack);
Return Type:
ItemStack
// PathfinderMob.eyeHeight as floatmyPathfinderMob.eyeHeight
Return Type:
float
Returns: The eye height of the entity.
// PathfinderMob.eyeHeight() as float;myPathfinderMob.eyeHeight();
Return Type:
float
// PathfinderMob.eyeY as doublemyPathfinderMob.eyeY
Return Type:
double
Returns: The y coordinate of the entity's eyes.
// PathfinderMob.eyeY() as double;myPathfinderMob.eyeY();
Return Type:
double
// PathfinderMob.fallFlyingTicks as intmyPathfinderMob.fallFlyingTicks
Return Type:
int
Returns: The ticks that the entity has been flying with an elytra.
// PathfinderMob.fallFlyingTicks() as int;myPathfinderMob.fallFlyingTicks();
Return Type:
int
// PathfinderMob.fireImmune as boolmyPathfinderMob.fireImmune
Return Type:
bool
Returns: true if the entity is fire immune.
// PathfinderMob.fireImmune() as bool;myPathfinderMob.fireImmune();
Return Type:
bool
// PathfinderMob.fireTicks as intmyPathfinderMob.fireTicks
Return Type:
int
// PathfinderMob.fireTicks = (ticks as int);myPathfinderMob.fireTicks = myInt;
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to. // PathfinderMob.fireTicks(ticks as int);myPathfinderMob.fireTicks(myInt);
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to. Returns: The remaining fire ticks of the entity.
// PathfinderMob.fireTicks() as int;myPathfinderMob.fireTicks();
Return Type:
int
// PathfinderMob.fluidJumpThreshold as doublemyPathfinderMob.fluidJumpThreshold
Return Type:
double
Returns: The fluid jump threshold of the entity.
// PathfinderMob.fluidJumpThreshold() as double;myPathfinderMob.fluidJumpThreshold();
Return Type:
double
myPathfinderMob.forceAddEffect(myMobEffectInstance, myEntity);
Parameters:
effectInstance: MobEffectInstance
Type: MobEffectInstance
- The effect to force this entity to have. myPathfinderMob.getAttachmentData<T>(myAttachmentType);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
Return Type:
T
myPathfinderMob.getAttachmentData<T>(mySupplier);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
Return Type:
T
Returns: The attribute.
myPathfinderMob.getAttribute(myAttribute);
Return Type:
AttributeInstance
Returns: The base attribute value.
myPathfinderMob.getAttributeBaseValue(myAttribute);
Return Type:
double
Returns: The attribute value.
myPathfinderMob.getAttributeValue(myAttribute);
Return Type:
double
MobEffectInstance
for the given effect on this entity.Returns: The effect instance.
myPathfinderMob.getEffect(myMobEffect);
Return Type:
MobEffectInstance
Returns: The item in the slot.
myPathfinderMob.getItemBySlot(myEquipmentSlot);
Parameters:
Return Type:
ItemStack
Returns: The item in the hand.
myPathfinderMob.getItemInHand(myInteractionHand);
Parameters:
Return Type:
ItemStack
// PathfinderMob.getRestrictRadius as floatmyPathfinderMob.getRestrictRadius
Return Type:
float
Returns: The swim amount.
// PathfinderMob.getSwimAmount(partialTicks as float) as float;myPathfinderMob.getSwimAmount(myFloat);
Parameters:
partialTicks: float
Type: float
- The partial ticks to get the swim amount for.
Return Type:
float
Returns: The visibility percent.
myPathfinderMob.getVisibilityPercent(myEntity);
Return Type:
double
Returns: The x coordinate of the entity.
// PathfinderMob.getX(scale as double) as double;myPathfinderMob.getX(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the x coordinate of the entity.
Return Type:
double
Returns: The y coordinate of the entity.
// PathfinderMob.getY(scale as double) as double;myPathfinderMob.getY(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the y coordinate of the entity.
Return Type:
double
Returns: The z coordinate of the entity.
// PathfinderMob.getZ(scale as double) as double;myPathfinderMob.getZ(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the z coordinate of the entity.
Return Type:
double
myPathfinderMob.hasAttachmentData<T>(myAttachmentType);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
Return Type:
bool
myPathfinderMob.hasAttachmentData<T>(mySupplier);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
Return Type:
bool
// PathfinderMob.hasCustomName as boolmyPathfinderMob.hasCustomName
Return Type:
bool
// PathfinderMob.hasCustomName as boolmyPathfinderMob.hasCustomName
Return Type:
bool
Returns: true if the entity has a custom name.
// PathfinderMob.hasCustomName() as bool;myPathfinderMob.hasCustomName();
Return Type:
bool
// PathfinderMob.hasCustomName() as bool;myPathfinderMob.hasCustomName();
Return Type:
bool
Returns: True if this entity has the effect, false otherwise.
myPathfinderMob.hasEffect(myMobEffect);
Return Type:
bool
// PathfinderMob.hasExactlyOnePlayerPassenger as boolmyPathfinderMob.hasExactlyOnePlayerPassenger
Return Type:
bool
Returns: true if the entity has exactly one player passenger.
// PathfinderMob.hasExactlyOnePlayerPassenger() as bool;myPathfinderMob.hasExactlyOnePlayerPassenger();
Return Type:
bool
// PathfinderMob.hasGlowingTag as boolmyPathfinderMob.hasGlowingTag
Return Type:
bool
Returns: true if the entity is currently glowing.
// PathfinderMob.hasGlowingTag() as bool;myPathfinderMob.hasGlowingTag();
Return Type:
bool
Returns: true if the entity has an indirect passenger.
myPathfinderMob.hasIndirectPassenger(myEntity);
Return Type:
bool
Returns: True if the entity has an item in the slot, false otherwise.
myPathfinderMob.hasItemInSlot(myEquipmentSlot);
Parameters:
Return Type:
bool
Returns: True if the entity has a line of sight to the entity, false otherwise.
myPathfinderMob.hasLineOfSight(myEntity);
Return Type:
bool
Returns: true if the entity has a passenger that matches the predicate.
myPathfinderMob.hasPassenger(myPredicate);
Parameters:
Return Type:
bool
// PathfinderMob.hasRestriction as boolmyPathfinderMob.hasRestriction
Return Type:
bool
// PathfinderMob.heal(amount as float);myPathfinderMob.heal(myFloat);
Parameters:
amount: float
Type: float
- The amount to heal. // PathfinderMob.health as floatmyPathfinderMob.health
Return Type:
float
Returns: The health of this entity.
// PathfinderMob.health() as float;myPathfinderMob.health();
Return Type:
float
DamageSource
and amount.Returns: true if the entity was hurt.
myPathfinderMob.hurt(myDamageSource, myFloat);
Parameters:
amount: float
Type: float
- The amount of damage to deal.
Return Type:
bool
// PathfinderMob.id as intmyPathfinderMob.id
Return Type:
int
Returns: The ID of the entity.
// PathfinderMob.id() as int;myPathfinderMob.id();
Return Type:
int
BlockState
that this entity is currently inside.// PathfinderMob.inBlockState as BlockStatemyPathfinderMob.inBlockState
Return Type:
BlockState
BlockState
that this entity is currently inside.Returns: The block state that this entity is currently inside
myPathfinderMob.inBlockState();
Return Type:
BlockState
// PathfinderMob.isAffectedByPotions as boolmyPathfinderMob.isAffectedByPotions
Return Type:
bool
Returns: True if the entity is affected by potions, false otherwise.
// PathfinderMob.isAffectedByPotions() as bool;myPathfinderMob.isAffectedByPotions();
Return Type:
bool
// PathfinderMob.isAlive as boolmyPathfinderMob.isAlive
Return Type:
bool
Returns: true if the entity is alive.
// PathfinderMob.isAlive() as bool;myPathfinderMob.isAlive();
Return Type:
bool
// PathfinderMob.isAlwaysTicking as boolmyPathfinderMob.isAlwaysTicking
Return Type:
bool
Returns: true if the entity is always ticking.
// PathfinderMob.isAlwaysTicking() as bool;myPathfinderMob.isAlwaysTicking();
Return Type:
bool
// PathfinderMob.isAttackable as boolmyPathfinderMob.isAttackable
Return Type:
bool
Returns: true if the entity is attackable.
// PathfinderMob.isAttackable() as bool;myPathfinderMob.isAttackable();
Return Type:
bool
// PathfinderMob.isAutoSpinAttack as boolmyPathfinderMob.isAutoSpinAttack
Return Type:
bool
Returns: True if the entity is performing an auto spin attack, false otherwise.
// PathfinderMob.isAutoSpinAttack() as bool;myPathfinderMob.isAutoSpinAttack();
Return Type:
bool
// PathfinderMob.isBaby as boolmyPathfinderMob.isBaby
Return Type:
bool
Returns: True if the entity is a baby, false otherwise.
// PathfinderMob.isBaby() as bool;myPathfinderMob.isBaby();
Return Type:
bool
// PathfinderMob.isBlocking as boolmyPathfinderMob.isBlocking
Return Type:
bool
Returns: True if the entity is blocking, false otherwise.
// PathfinderMob.isBlocking() as bool;myPathfinderMob.isBlocking();
Return Type:
bool
BlockState
at the given BlockPos
.Returns: true if the entity is colliding with the block.
myPathfinderMob.isColliding(myBlockPos, myBlockState);
Parameters:
Return Type:
bool
// PathfinderMob.isCrouching as boolmyPathfinderMob.isCrouching
Return Type:
bool
Returns: true if the entity is crouching.
// PathfinderMob.isCrouching() as bool;myPathfinderMob.isCrouching();
Return Type:
bool
// PathfinderMob.isCurrentlyGlowing as boolmyPathfinderMob.isCurrentlyGlowing
Return Type:
bool
// PathfinderMob.isCurrentlyGlowing as boolmyPathfinderMob.isCurrentlyGlowing
Return Type:
bool
Returns: True if the entity is currently glowing, false otherwise.
// PathfinderMob.isCurrentlyGlowing() as bool;myPathfinderMob.isCurrentlyGlowing();
Return Type:
bool
Returns: true if the entity is currently glowing.
// PathfinderMob.isCurrentlyGlowing() as bool;myPathfinderMob.isCurrentlyGlowing();
Return Type:
bool
// PathfinderMob.isCustomNameVisible as boolmyPathfinderMob.isCustomNameVisible
Return Type:
bool
Returns: true if the custom name is visible.
// PathfinderMob.isCustomNameVisible() as bool;myPathfinderMob.isCustomNameVisible();
Return Type:
bool
Returns: True if the entity can block the damage source, false otherwise.
myPathfinderMob.isDamageSourceBlocked(myDamageSource);
Parameters:
Return Type:
bool
// PathfinderMob.isDeadOrDying as boolmyPathfinderMob.isDeadOrDying
Return Type:
bool
Returns: True if this entity is dead or dying, false otherwise.
// PathfinderMob.isDeadOrDying() as bool;myPathfinderMob.isDeadOrDying();
Return Type:
bool
// PathfinderMob.isDescending as boolmyPathfinderMob.isDescending
Return Type:
bool
Returns: true if the entity is descending.
// PathfinderMob.isDescending() as bool;myPathfinderMob.isDescending();
Return Type:
bool
// PathfinderMob.isDiscrete as boolmyPathfinderMob.isDiscrete
Return Type:
bool
Returns: true if the entity is being discrete.
// PathfinderMob.isDiscrete() as bool;myPathfinderMob.isDiscrete();
Return Type:
bool
// PathfinderMob.isFallFlying as boolmyPathfinderMob.isFallFlying
Return Type:
bool
Returns: True if the entity is flying with an elytra, false otherwise.
// PathfinderMob.isFallFlying() as bool;myPathfinderMob.isFallFlying();
Return Type:
bool
Returns: true if the entity is free to move in the given position.
// PathfinderMob.isFree(x as double, y as double, z as double) as bool;myPathfinderMob.isFree(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to check. y: double
Type: double
- The y position to check. z: double
Type: double
- The z position to check.
Return Type:
bool
// PathfinderMob.isFullyFrozen as boolmyPathfinderMob.isFullyFrozen
Return Type:
bool
Returns: true if the entity is fully frozen.
// PathfinderMob.isFullyFrozen() as bool;myPathfinderMob.isFullyFrozen();
Return Type:
bool
Returns: True if the entity is holding the item, false otherwise.
myPathfinderMob.isHolding(myItem);
Parameters:
Return Type:
bool
Returns: True if the entity is holding the item, false otherwise.
myPathfinderMob.isHolding(myPredicate);
Parameters:
Return Type:
bool
// PathfinderMob.isInLava as boolmyPathfinderMob.isInLava
Return Type:
bool
Returns: true if the entity is in lava.
// PathfinderMob.isInLava() as bool;myPathfinderMob.isInLava();
Return Type:
bool
// PathfinderMob.isInvertedHealAndHarm as boolmyPathfinderMob.isInvertedHealAndHarm
Return Type:
bool
Returns: True if this entity is inverted for heal and harm, false otherwise.
// PathfinderMob.isInvertedHealAndHarm() as bool;myPathfinderMob.isInvertedHealAndHarm();
Return Type:
bool
// PathfinderMob.isInvisible as boolmyPathfinderMob.isInvisible
Return Type:
bool
Returns: true if the entity is invisible.
// PathfinderMob.isInvisible() as bool;myPathfinderMob.isInvisible();
Return Type:
bool
// PathfinderMob.isInvulnerable as boolmyPathfinderMob.isInvulnerable
Return Type:
bool
Returns: true if the entity is invulnerable.
// PathfinderMob.isInvulnerable() as bool;myPathfinderMob.isInvulnerable();
Return Type:
bool
DamageSource
.Returns: true if the entity is invulnerable to the damage source.
myPathfinderMob.isInvulnerableTo(myDamageSource);
Parameters:
Return Type:
bool
// PathfinderMob.isInWall as boolmyPathfinderMob.isInWall
Return Type:
bool
Returns: true if the entity is in a wall.
// PathfinderMob.isInWall() as bool;myPathfinderMob.isInWall();
Return Type:
bool
// PathfinderMob.isInWater as boolmyPathfinderMob.isInWater
Return Type:
bool
Returns: true if the entity is in water.
// PathfinderMob.isInWater() as bool;myPathfinderMob.isInWater();
Return Type:
bool
// PathfinderMob.isInWaterOrBubble as boolmyPathfinderMob.isInWaterOrBubble
Return Type:
bool
Returns: true if the entity is in water or a bubble column.
// PathfinderMob.isInWaterOrBubble() as bool;myPathfinderMob.isInWaterOrBubble();
Return Type:
bool
// PathfinderMob.isInWaterOrRain as boolmyPathfinderMob.isInWaterOrRain
Return Type:
bool
Returns: true if the entity is in water or rain.
// PathfinderMob.isInWaterOrRain() as bool;myPathfinderMob.isInWaterOrRain();
Return Type:
bool
// PathfinderMob.isInWaterRainOrBubble as boolmyPathfinderMob.isInWaterRainOrBubble
Return Type:
bool
Returns: true if the entity is in water or rain or a bubble column.
// PathfinderMob.isInWaterRainOrBubble() as bool;myPathfinderMob.isInWaterRainOrBubble();
Return Type:
bool
Returns: Whether the mob's maximum group size is reached.
// PathfinderMob.isMaxGroupSizeReached(size as int) as bool;myPathfinderMob.isMaxGroupSizeReached(myInt);
Parameters:
size: int
Type: int
- The size to check.
Return Type:
bool
// PathfinderMob.isNoGravity as boolmyPathfinderMob.isNoGravity
Return Type:
bool
Returns: true if the entity has no gravity.
// PathfinderMob.isNoGravity() as bool;myPathfinderMob.isNoGravity();
Return Type:
bool
// PathfinderMob.isOnFire as boolmyPathfinderMob.isOnFire
Return Type:
bool
Returns: true if the entity is on fire.
// PathfinderMob.isOnFire() as bool;myPathfinderMob.isOnFire();
Return Type:
bool
// PathfinderMob.isOnPortalCooldown as boolmyPathfinderMob.isOnPortalCooldown
Return Type:
bool
Returns: true if the entity is on portal cooldown.
// PathfinderMob.isOnPortalCooldown() as bool;myPathfinderMob.isOnPortalCooldown();
Return Type:
bool
// PathfinderMob.isPassenger as boolmyPathfinderMob.isPassenger
Return Type:
bool
Returns: true if the entity is a passenger.
// PathfinderMob.isPassenger() as bool;myPathfinderMob.isPassenger();
Return Type:
bool
Returns: true if the entity is a passenger of the same vehicle.
myPathfinderMob.isPassengerOfSameVehicle(myEntity);
Return Type:
bool
// PathfinderMob.isPersistenceRequired as boolmyPathfinderMob.isPersistenceRequired
Return Type:
bool
// PathfinderMob.isPickable as boolmyPathfinderMob.isPickable
Return Type:
bool
Returns: true if the entity is pickable.
// PathfinderMob.isPickable() as bool;myPathfinderMob.isPickable();
Return Type:
bool
// PathfinderMob.isPushable as boolmyPathfinderMob.isPushable
Return Type:
bool
Returns: true if the entity is pushable.
// PathfinderMob.isPushable() as bool;myPathfinderMob.isPushable();
Return Type:
bool
// PathfinderMob.isPushedByFluid as boolmyPathfinderMob.isPushedByFluid
Return Type:
bool
Returns: true if the entity is pushed by fluid.
// PathfinderMob.isPushedByFluid() as bool;myPathfinderMob.isPushedByFluid();
Return Type:
bool
// PathfinderMob.isRemoved as boolmyPathfinderMob.isRemoved
Return Type:
bool
Returns: Whether the entity has been removed.
// PathfinderMob.isRemoved() as bool;myPathfinderMob.isRemoved();
Return Type:
bool
// PathfinderMob.isSensitiveToWater as boolmyPathfinderMob.isSensitiveToWater
Return Type:
bool
Returns: True if the entity is sensitive to water, false otherwise.
// PathfinderMob.isSensitiveToWater() as bool;myPathfinderMob.isSensitiveToWater();
Return Type:
bool
// PathfinderMob.isShiftKeyDown as boolmyPathfinderMob.isShiftKeyDown
Return Type:
bool
Returns: true if the shift key is down.
// PathfinderMob.isShiftKeyDown() as bool;myPathfinderMob.isShiftKeyDown();
Return Type:
bool
// PathfinderMob.isSilent as boolmyPathfinderMob.isSilent
Return Type:
bool
Returns: true if the entity is silent.
// PathfinderMob.isSilent() as bool;myPathfinderMob.isSilent();
Return Type:
bool
// PathfinderMob.isSleeping as boolmyPathfinderMob.isSleeping
Return Type:
bool
Returns: True if the entity is sleeping, false otherwise.
// PathfinderMob.isSleeping() as bool;myPathfinderMob.isSleeping();
Return Type:
bool
// PathfinderMob.isSpectator as boolmyPathfinderMob.isSpectator
Return Type:
bool
Returns: true if the entity is a spectator.
// PathfinderMob.isSpectator() as bool;myPathfinderMob.isSpectator();
Return Type:
bool
// PathfinderMob.isSprinting as boolmyPathfinderMob.isSprinting
Return Type:
bool
Returns: true if the entity is sprinting.
// PathfinderMob.isSprinting() as bool;myPathfinderMob.isSprinting();
Return Type:
bool
// PathfinderMob.isSteppingCarefully as boolmyPathfinderMob.isSteppingCarefully
Return Type:
bool
Returns: true if the entity is stepping carefully.
// PathfinderMob.isSteppingCarefully() as bool;myPathfinderMob.isSteppingCarefully();
Return Type:
bool
// PathfinderMob.isSuppressingBounce as boolmyPathfinderMob.isSuppressingBounce
Return Type:
bool
Returns: true if the entity is suppressing bounce.
// PathfinderMob.isSuppressingBounce() as bool;myPathfinderMob.isSuppressingBounce();
Return Type:
bool
// PathfinderMob.isSuppressingSlidingDownLadder as boolmyPathfinderMob.isSuppressingSlidingDownLadder
Return Type:
bool
Returns: True if the entity is suppressing sliding down a ladder, false otherwise.
// PathfinderMob.isSuppressingSlidingDownLadder() as bool;myPathfinderMob.isSuppressingSlidingDownLadder();
Return Type:
bool
// PathfinderMob.isSwimming as boolmyPathfinderMob.isSwimming
Return Type:
bool
Returns: true if the entity is swimming.
// PathfinderMob.isSwimming() as bool;myPathfinderMob.isSwimming();
Return Type:
bool
// PathfinderMob.isUnderWater as boolmyPathfinderMob.isUnderWater
Return Type:
bool
Returns: true if the entity is underwater.
// PathfinderMob.isUnderWater() as bool;myPathfinderMob.isUnderWater();
Return Type:
bool
// PathfinderMob.isUsingItem as boolmyPathfinderMob.isUsingItem
Return Type:
bool
Returns: True if the entity is using an item, false otherwise.
// PathfinderMob.isUsingItem() as bool;myPathfinderMob.isUsingItem();
Return Type:
bool
// PathfinderMob.isVehicle as boolmyPathfinderMob.isVehicle
Return Type:
bool
Returns: true if the entity is a vehicle.
// PathfinderMob.isVehicle() as bool;myPathfinderMob.isVehicle();
Return Type:
bool
// PathfinderMob.isVisuallyCrawling as boolmyPathfinderMob.isVisuallyCrawling
Return Type:
bool
Returns: true if the entity is visually crawling.
// PathfinderMob.isVisuallyCrawling() as bool;myPathfinderMob.isVisuallyCrawling();
Return Type:
bool
// PathfinderMob.isVisuallySwimming as boolmyPathfinderMob.isVisuallySwimming
Return Type:
bool
// PathfinderMob.isVisuallySwimming as boolmyPathfinderMob.isVisuallySwimming
Return Type:
bool
Returns: True if the entity is visually swimming, false otherwise.
// PathfinderMob.isVisuallySwimming() as bool;myPathfinderMob.isVisuallySwimming();
Return Type:
bool
Returns: true if the entity is visually swimming.
// PathfinderMob.isVisuallySwimming() as bool;myPathfinderMob.isVisuallySwimming();
Return Type:
bool
LivingEntity
.Returns: Whether the mob is within melee attack range of the given entity.
myPathfinderMob.isWithinMeleeAttackRange(myLivingEntity);
Parameters:
Return Type:
bool
// PathfinderMob.isWithinRestriction as boolmyPathfinderMob.isWithinRestriction
Return Type:
bool
Returns: Whether the mob is within a restriction.
myPathfinderMob.isWithinRestriction(myBlockPos);
Return Type:
bool
// PathfinderMob.jumpBoostPower as doublemyPathfinderMob.jumpBoostPower
Return Type:
double
Returns: The jump boost power.
// PathfinderMob.jumpBoostPower() as double;myPathfinderMob.jumpBoostPower();
Return Type:
double
// PathfinderMob.kill();myPathfinderMob.kill();
// PathfinderMob.killCredit as LivingEntitymyPathfinderMob.killCredit
Return Type:
LivingEntity
Returns: The kill credit.
myPathfinderMob.killCredit();
Return Type:
LivingEntity
// PathfinderMob.knockback(x as double, y as double, z as double);myPathfinderMob.knockback(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x coordinate to knock back to. y: double
Type: double
- The y coordinate to knock back to. z: double
Type: double
- The z coordinate to knock back to. // PathfinderMob.lastDamageSource as DamageSourcemyPathfinderMob.lastDamageSource
Return Type:
DamageSource
Returns: The last damage source.
myPathfinderMob.lastDamageSource();
Return Type:
DamageSource
// PathfinderMob.lastHurtByMob as LivingEntitymyPathfinderMob.lastHurtByMob
Return Type:
LivingEntity
Returns: The last entity that hurt this entity.
myPathfinderMob.lastHurtByMob();
Return Type:
LivingEntity
// PathfinderMob.lastHurtByMobTimestamp as intmyPathfinderMob.lastHurtByMobTimestamp
Return Type:
int
Returns: The timestamp when this entity was last hurt by a mob.
// PathfinderMob.lastHurtByMobTimestamp() as int;myPathfinderMob.lastHurtByMobTimestamp();
Return Type:
int
// PathfinderMob.lastHurtMob as LivingEntitymyPathfinderMob.lastHurtMob
Return Type:
LivingEntity
Returns: The last entity that this entity hurt.
myPathfinderMob.lastHurtMob();
Return Type:
LivingEntity
// PathfinderMob.lastHurtMobTimestamp as intmyPathfinderMob.lastHurtMobTimestamp
Return Type:
int
Returns: The timestamp when this entity last hurt a mob.
// PathfinderMob.lastHurtMobTimestamp() as int;myPathfinderMob.lastHurtMobTimestamp();
Return Type:
int
// PathfinderMob.lavaHurt();myPathfinderMob.lavaHurt();
// PathfinderMob.leashed as boolmyPathfinderMob.leashed
Return Type:
bool
// PathfinderMob.leftHanded as boolmyPathfinderMob.leftHanded
Return Type:
bool
// PathfinderMob.leftHanded = (value as bool);myPathfinderMob.leftHanded = myBool;
Parameters:
value: bool
Type: bool
- Whether the mob should be left-handed. myPathfinderMob.lookAt(myEntity, myFloat, myFloat);
// PathfinderMob.lootTable as ResourceLocationmyPathfinderMob.lootTable
Return Type:
ResourceLocation
Returns: The loot table.
myPathfinderMob.lootTable();
Return Type:
ResourceLocation
// PathfinderMob.lootTableSeed as longmyPathfinderMob.lootTableSeed
Return Type:
long
// PathfinderMob.mainArm as HumanoidArmmyPathfinderMob.mainArm
Return Type:
HumanoidArm
Returns: The main arm.
myPathfinderMob.mainArm();
Return Type:
HumanoidArm
// PathfinderMob.maxAirSupply as intmyPathfinderMob.maxAirSupply
Return Type:
int
Returns: The maximum air supply of the entity.
// PathfinderMob.maxAirSupply() as int;myPathfinderMob.maxAirSupply();
Return Type:
int
// PathfinderMob.maxFallDistance as intmyPathfinderMob.maxFallDistance
Return Type:
int
Returns: The maximum fall distance of the entity.
// PathfinderMob.maxFallDistance() as int;myPathfinderMob.maxFallDistance();
Return Type:
int
// PathfinderMob.maxHeadRotSpeed as intmyPathfinderMob.maxHeadRotSpeed
Return Type:
int
// PathfinderMob.maxHeadXRot as intmyPathfinderMob.maxHeadXRot
Return Type:
int
// PathfinderMob.maxHeadYRot as intmyPathfinderMob.maxHeadYRot
Return Type:
int
// PathfinderMob.maxHealth as floatmyPathfinderMob.maxHealth
Return Type:
float
Returns: The maximum health.
// PathfinderMob.maxHealth() as float;myPathfinderMob.maxHealth();
Return Type:
float
// PathfinderMob.maxSpawnClusterSize as intmyPathfinderMob.maxSpawnClusterSize
Return Type:
int
myPathfinderMob.moveRelative(myFloat, myVec3);
// PathfinderMob.moveTo(x as double, y as double, z as double);myPathfinderMob.moveTo(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to move the entity to. y: double
Type: double
- The y position to move the entity to. z: double
Type: double
- The z position to move the entity to. myPathfinderMob.moveTo(myBlockPos, myFloat, myFloat);
// PathfinderMob.moveTo(x as double, y as double, z as double, yaw as float, pitch as float);myPathfinderMob.moveTo(myDouble, myDouble, myDouble, myFloat, myFloat);
Parameters:
x: double
Type: double
- The x position to move the entity to. y: double
Type: double
- The y position to move the entity to. z: double
Type: double
- The z position to move the entity to. yaw: float
Type: float
- The yaw to move the entity to. pitch: float
Type: float
- The pitch to move the entity to. // PathfinderMob.noActionTime as intmyPathfinderMob.noActionTime
Return Type:
int
Returns: The time since this entity last performed an action.
// PathfinderMob.noActionTime() as int;myPathfinderMob.noActionTime();
Return Type:
int
// PathfinderMob.noAi as boolmyPathfinderMob.noAi
Return Type:
bool
// PathfinderMob.noAi = (value as bool);myPathfinderMob.noAi = myBool;
Parameters:
value: bool
Type: bool
- Whether the mob should have AI disabled. // PathfinderMob.onGround as boolmyPathfinderMob.onGround
Return Type:
bool
// PathfinderMob.percentFrozen as floatmyPathfinderMob.percentFrozen
Return Type:
float
Returns: The percent the entity is frozen.
// PathfinderMob.percentFrozen() as float;myPathfinderMob.percentFrozen();
Return Type:
float
// PathfinderMob.pistonPushReaction as PushReactionmyPathfinderMob.pistonPushReaction
Return Type:
PushReaction
Returns: The piston push reaction of the entity.
myPathfinderMob.pistonPushReaction();
Return Type:
PushReaction
// PathfinderMob.playAmbientSound();myPathfinderMob.playAmbientSound();
myPathfinderMob.playSound(mySoundEvent, myFloat, myFloat);
Parameters:
volume: float
Type: float
- The volume of the sound. pitch: float
Type: float
- The pitch of the sound. // PathfinderMob.random as RandomSourcemyPathfinderMob.random
Return Type:
RandomSource
Returns: The random source for the entity.
myPathfinderMob.random();
Return Type:
RandomSource
// PathfinderMob.registryName as ResourceLocationmyPathfinderMob.registryName
Return Type:
ResourceLocation
Returns: The registry name of the entity.
myPathfinderMob.registryName();
Return Type:
ResourceLocation
// PathfinderMob.releaseUsingItem();myPathfinderMob.releaseUsingItem();
Returns: True if all effects were removed, false otherwise.
// PathfinderMob.removeAllEffects() as bool;myPathfinderMob.removeAllEffects();
Return Type:
bool
Returns: The removed effect.
myPathfinderMob.removeEffectNoUpdate(myMobEffect);
Return Type:
MobEffectInstance
Returns: true if the tag was removed.
// PathfinderMob.removeTag(tagName as string) as bool;myPathfinderMob.removeTag(myString);
Parameters:
tagName: string
Type: string
- The name of the tag to remove.
Return Type:
bool
// PathfinderMob.removeVehicle();myPathfinderMob.removeVehicle();
myPathfinderMob.restrictTo(myBlockPos, myInt);
// PathfinderMob.scale as floatmyPathfinderMob.scale
Return Type:
float
Returns: The scale of the entity.
// PathfinderMob.scale() as float;myPathfinderMob.scale();
Return Type:
float
// PathfinderMob.setAbsorptionAmount(absorption as float);myPathfinderMob.setAbsorptionAmount(myFloat);
Parameters:
absorption: float
Type: float
- The absorption amount to set. // PathfinderMob.setAirSupply(air as int);myPathfinderMob.setAirSupply(myInt);
Parameters:
air: int
Type: int
- The new air supply of the entity. // PathfinderMob.setArrowCount(count as int);myPathfinderMob.setArrowCount(myInt);
Parameters:
count: int
Type: int
- The number of arrows to set. myPathfinderMob.setAttachmentData<T>(myAttachmentType, myT);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
data: T
Type: T
Return Type:
T?
myPathfinderMob.setAttachmentData<T>(mySupplier, myT);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
data: T
Type: T
Return Type:
T?
// PathfinderMob.setCustomNameVisible(visible as bool);myPathfinderMob.setCustomNameVisible(myBool);
Parameters:
visible: bool
Type: bool
- true if the custom name should be visible. // PathfinderMob.setDeltaMovement(xDelta as double, yDelta as double, zDelta as double);myPathfinderMob.setDeltaMovement(myDouble, myDouble, myDouble);
Parameters:
xDelta: double
Type: double
- The x delta movement to set. yDelta: double
Type: double
- The y delta movement to set. zDelta: double
Type: double
- The z delta movement to set. // PathfinderMob.setDiscardFriction(discardFriction as bool);myPathfinderMob.setDiscardFriction(myBool);
Parameters:
discardFriction: bool
Type: bool
- True if this entity should discard friction, false otherwise. EquipmentSlot
.myPathfinderMob.setDropChance(myEquipmentSlot, myFloat);
Parameters:
chance: float
Type: float
- The chance to drop the item. // PathfinderMob.setGlowingTag(glowing as bool);myPathfinderMob.setGlowingTag(myBool);
Parameters:
glowing: bool
Type: bool
- true if the entity should be glowing. EquipmentSlot
should always drop when it is killed.myPathfinderMob.setGuaranteedDrop(myEquipmentSlot);
Parameters:
// PathfinderMob.setHealth(health as float);myPathfinderMob.setHealth(myFloat);
Parameters:
health: float
Type: float
- The health to set. // PathfinderMob.setInvisible(invisible as bool);myPathfinderMob.setInvisible(myBool);
Parameters:
invisible: bool
Type: bool
- true if the entity should be invisible. // PathfinderMob.setInvulnerable(invulnerable as bool);myPathfinderMob.setInvulnerable(myBool);
Parameters:
invulnerable: bool
Type: bool
- true if the entity should be invulnerable. // PathfinderMob.setIsInPowderSnow(inPowderSnow as bool);myPathfinderMob.setIsInPowderSnow(myBool);
Parameters:
inPowderSnow: bool
Type: bool
- Whether the entity is in powder snow. myPathfinderMob.setItemInHand(myInteractionHand, myItemStack);
Parameters:
myPathfinderMob.setItemSlot(myEquipmentSlot, myItemStack);
Parameters:
// PathfinderMob.setJumping(jumping as bool);myPathfinderMob.setJumping(myBool);
Parameters:
jumping: bool
Type: bool
- True if the entity should jump, false otherwise. myPathfinderMob.setLastHurtByMob(myLivingEntity);
Parameters:
myPathfinderMob.setLeashedTo(myEntity, myBool);
// PathfinderMob.setNoActionTime(idleTime as int);myPathfinderMob.setNoActionTime(myInt);
Parameters:
idleTime: int
Type: int
- The time since this entity last performed an action. // PathfinderMob.setNoGravity(noGravity as bool);myPathfinderMob.setNoGravity(myBool);
Parameters:
noGravity: bool
Type: bool
- The no gravity state to set the entity to. // PathfinderMob.setOldPosAndRot();myPathfinderMob.setOldPosAndRot();
// PathfinderMob.setOnGround(onGround as bool);myPathfinderMob.setOnGround(myBool);
Parameters:
onGround: bool
Type: bool
- The on ground state to set the entity to. // PathfinderMob.setPersistenceRequired();myPathfinderMob.setPersistenceRequired();
// PathfinderMob.setPortalCooldown();myPathfinderMob.setPortalCooldown();
// PathfinderMob.setPos(x as double, y as double, z as double);myPathfinderMob.setPos(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to set the entity to. y: double
Type: double
- The y position to set the entity to. z: double
Type: double
- The z position to set the entity to. // PathfinderMob.setPosRaw(x as double, y as double, z as double);myPathfinderMob.setPosRaw(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x coordinate to set the position to. y: double
Type: double
- The y coordinate to set the position to. z: double
Type: double
- The z coordinate to set the position to. myPathfinderMob.setRemoved(myRemovalReason);
Parameters:
// PathfinderMob.setShiftKeyDown(keyDown as bool);myPathfinderMob.setShiftKeyDown(myBool);
Parameters:
keyDown: bool
Type: bool
- true if the shift key is down. // PathfinderMob.setSilent(silent as bool);myPathfinderMob.setSilent(myBool);
Parameters:
silent: bool
Type: bool
- The silent state to set the entity to. // PathfinderMob.setSpeed(speed as float);myPathfinderMob.setSpeed(myFloat);
Parameters:
speed: float
Type: float
- The movement speed to set. // PathfinderMob.setSprinting(sprinting as bool);myPathfinderMob.setSprinting(myBool);
Parameters:
sprinting: bool
Type: bool
- true if the entity should be sprinting. // PathfinderMob.setStingerCount(count as int);myPathfinderMob.setStingerCount(myInt);
Parameters:
count: int
Type: int
- The number of stingers to set. // PathfinderMob.setSwimming(swimming as bool);myPathfinderMob.setSwimming(myBool);
Parameters:
swimming: bool
Type: bool
- true if the entity should be swimming. // PathfinderMob.setTicksFrozen(ticks as int);myPathfinderMob.setTicksFrozen(myInt);
Parameters:
ticks: int
Type: int
- The new number of ticks the entity has been frozen. // PathfinderMob.shouldBeSaved as boolmyPathfinderMob.shouldBeSaved
Return Type:
bool
Returns: true if the entity should be saved.
// PathfinderMob.shouldBeSaved() as bool;myPathfinderMob.shouldBeSaved();
Return Type:
bool
// PathfinderMob.shouldDiscardFriction as boolmyPathfinderMob.shouldDiscardFriction
Return Type:
bool
Returns: True if this entity should discard friction, false otherwise.
// PathfinderMob.shouldDiscardFriction() as bool;myPathfinderMob.shouldDiscardFriction();
Return Type:
bool
// PathfinderMob.shouldInformAdmins as boolmyPathfinderMob.shouldInformAdmins
Return Type:
bool
Returns: True if the commands from this source should inform admins, false otherwise.
// PathfinderMob.shouldInformAdmins() as bool;myPathfinderMob.shouldInformAdmins();
Return Type:
bool
// PathfinderMob.shouldShowName as boolmyPathfinderMob.shouldShowName
Return Type:
bool
Returns: true if the entity should show its name.
// PathfinderMob.shouldShowName() as bool;myPathfinderMob.shouldShowName();
Return Type:
bool
// PathfinderMob.showVehicleHealth as boolmyPathfinderMob.showVehicleHealth
Return Type:
bool
Returns: true if the entity should show vehicle health.
// PathfinderMob.showVehicleHealth() as bool;myPathfinderMob.showVehicleHealth();
Return Type:
bool
SoundSource
of the entity.// PathfinderMob.soundSource as SoundSourcemyPathfinderMob.soundSource
Return Type:
SoundSource
SoundSource
of the entity.Returns: The sound source of the entity.
myPathfinderMob.soundSource();
Return Type:
SoundSource
// PathfinderMob.speed as floatmyPathfinderMob.speed
Return Type:
float
Returns: The movement speed of the entity.
// PathfinderMob.speed() as float;myPathfinderMob.speed();
Return Type:
float
Returns: true if the entity started riding.
myPathfinderMob.startRiding(myEntity, myBool);
Parameters:
Return Type:
bool
myPathfinderMob.startUsingItem(myInteractionHand);
Parameters:
// PathfinderMob.stingerCount as intmyPathfinderMob.stingerCount
Return Type:
int
Returns: The stinger count.
// PathfinderMob.stingerCount() as int;myPathfinderMob.stingerCount();
Return Type:
int
// PathfinderMob.stopRiding();myPathfinderMob.stopRiding();
// PathfinderMob.stopSleeping();myPathfinderMob.stopSleeping();
// PathfinderMob.stopUsingItem();myPathfinderMob.stopUsingItem();
// PathfinderMob.stringUUID as stringmyPathfinderMob.stringUUID
Return Type:
string
Returns: The UUID of the entity as a string.
// PathfinderMob.stringUUID() as string;myPathfinderMob.stringUUID();
Return Type:
string
myPathfinderMob.swing(myInteractionHand);
Parameters:
myPathfinderMob.swing(myInteractionHand, myBool);
Parameters:
updateSelf: bool
Type: bool
- Whether to update the entity's self. These tags are arbitrary strings that can be attached to an entity. A single entity is limited to 1024.
// PathfinderMob.tags as Set<string>myPathfinderMob.tags
Return Type:
Set<string>
These tags are arbitrary strings that can be attached to an entity. A single entity is limited to 1024.
Returns: The tags of the entity.
// PathfinderMob.tags() as Set<string>;myPathfinderMob.tags();
Return Type:
Set<string>
// PathfinderMob.target as LivingEntitymyPathfinderMob.target
Return Type:
LivingEntity
myPathfinderMob.target = myLivingEntity;
Parameters:
// PathfinderMob.teamColor as intmyPathfinderMob.teamColor
Return Type:
int
Returns: The team color of the entity.
// PathfinderMob.teamColor() as int;myPathfinderMob.teamColor();
Return Type:
int
// PathfinderMob.teleportTo(x as double, y as double, z as double);myPathfinderMob.teleportTo(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x coordinate to teleport to. y: double
Type: double
- The y coordinate to teleport to. z: double
Type: double
- The z coordinate to teleport to. // PathfinderMob.ticksFrozen as intmyPathfinderMob.ticksFrozen
Return Type:
int
Returns: The number of ticks the entity has been frozen.
// PathfinderMob.ticksFrozen() as int;myPathfinderMob.ticksFrozen();
Return Type:
int
// PathfinderMob.ticksRequiredToFreeze as intmyPathfinderMob.ticksRequiredToFreeze
Return Type:
int
Returns: The number of ticks required to freeze the entity.
// PathfinderMob.ticksRequiredToFreeze() as int;myPathfinderMob.ticksRequiredToFreeze();
Return Type:
int
// PathfinderMob.ticksUsingItem as intmyPathfinderMob.ticksUsingItem
Return Type:
int
Returns: The ticks that the entity has been using an item.
// PathfinderMob.ticksUsingItem() as int;myPathfinderMob.ticksUsingItem();
Return Type:
int
// PathfinderMob.turn(yaw as double, pitch as double);myPathfinderMob.turn(myDouble, myDouble);
Parameters:
yaw: double
Type: double
- The yaw to turn the entity to. pitch: double
Type: double
- The pitch to turn the entity to. EntityType
of the entity.Returns: The EntityType
of the entity.
myPathfinderMob.type();
Return Type:
EntityType<Entity>
// PathfinderMob.unRide();myPathfinderMob.unRide();
// PathfinderMob.usedItemHand as InteractionHandmyPathfinderMob.usedItemHand
Return Type:
InteractionHand
Returns: The hand that the entity is using an item with.
myPathfinderMob.usedItemHand();
Return Type:
InteractionHand
// PathfinderMob.useItemRemainingTicks as intmyPathfinderMob.useItemRemainingTicks
Return Type:
int
Returns: The remaining ticks for the item that the entity is using.
// PathfinderMob.useItemRemainingTicks() as int;myPathfinderMob.useItemRemainingTicks();
Return Type:
int
// PathfinderMob.uuid as UUIDmyPathfinderMob.uuid
Return Type:
UUID
Returns: The UUID of the entity.
// PathfinderMob.uuid() as UUID;myPathfinderMob.uuid();
Return Type:
UUID
// PathfinderMob.voicePitch as floatmyPathfinderMob.voicePitch
Return Type:
float
Returns: The voice pitch.
// PathfinderMob.voicePitch() as float;myPathfinderMob.voicePitch();
Return Type:
float
// PathfinderMob.x as doublemyPathfinderMob.x
Return Type:
double
Returns: The x coordinate of the entity.
// PathfinderMob.x() as double;myPathfinderMob.x();
Return Type:
double
// PathfinderMob.y as doublemyPathfinderMob.y
Return Type:
double
Returns: The y coordinate of the entity.
// PathfinderMob.y() as double;myPathfinderMob.y();
Return Type:
double
// PathfinderMob.z as doublemyPathfinderMob.z
Return Type:
double
Returns: The z coordinate of the entity.
// PathfinderMob.z() as double;myPathfinderMob.z();
Return Type:
double