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;
PathfinderMob extends Mob
.
PathfinderMob
implements the following interfaces:
Targeting
,Nameable
,EntityAccess
,CommandSource
,IAttachmentHolder
Undocumented Interfaces EquipmentUser
, Leashable
, Attackable
, ILivingEntityExtension
, SyncedDataHolder
, ScoreHolder
, IEntityExtension
, INBTSerializable <CompoundTag >
Gets the absorption amount for this entity. // PathfinderMob.absorptionAmount as float
myPathfinderMob . absorptionAmount
Return Type:
float
Gets the absorption amount for this entity. Returns : The absorption amount.
// PathfinderMob.absorptionAmount() as float;
myPathfinderMob . absorptionAmount();
Return Type:
float
Checks if the commands from this source should return failure messages // PathfinderMob.acceptsFailure as bool
myPathfinderMob . acceptsFailure
Return Type:
bool
Checks if the commands from this source should return failure messages Returns : True if the commands from this source should return failure messages, false otherwise.
// PathfinderMob.acceptsFailure() as bool;
myPathfinderMob . acceptsFailure();
Return Type:
bool
Checks if the commands from this source should return successful messages // PathfinderMob.acceptsSuccess as bool
myPathfinderMob . acceptsSuccess
Return Type:
bool
Checks if the commands from this source should return successful messages Returns : True if the commands from this source should return successful messages, false otherwise.
// PathfinderMob.acceptsSuccess() as bool;
myPathfinderMob . acceptsSuccess();
Return Type:
bool
Gets a map of active effects. Returns : The active effects map.
myPathfinderMob . activeEffectsMap();
Return Type:
MobEffectInstance [MobEffect ]
Adds an effect to this entity. Returns : True if the effect was added, false otherwise.
myPathfinderMob . addEffect(myMobEffectInstance);
Return Type:
bool
Adds an effect to this entity. Returns : True if the effect was added, false otherwise.
myPathfinderMob . addEffect(myMobEffectInstance, myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity that is the source of the effect.
Return Type:
bool
Adds a tag to the entity, returning false if the entity has over 1024 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
Checks if the mob is aggressive. // PathfinderMob.aggressive as bool
myPathfinderMob . aggressive
Return Type:
bool
Sets whether the mob should be aggressive. // PathfinderMob.aggressive = (value as bool);
myPathfinderMob . aggressive = myBool;
Parameters:
value: bool
Type: bool
- Whether the mob should be aggressive.
Gets the current air supply of the entity. // PathfinderMob.airSupply as int
myPathfinderMob . airSupply
Return Type:
int
Gets the current air supply of the entity. Returns : The current air supply of the entity.
// PathfinderMob.airSupply() as int;
myPathfinderMob . airSupply();
Return Type:
int
Gets all slots. // PathfinderMob.allSlots as Iterable< ItemStack >
Return Type:
Iterable <ItemStack >
Gets all slots. Returns : An iterable of item stacks representing all slots.
// PathfinderMob.allSlots() as Iterable< ItemStack >; myPathfinderMob . allSlots();
Return Type:
Iterable <ItemStack >
Checks if the command source always accepts. // PathfinderMob.alwaysAccepts as bool
myPathfinderMob . alwaysAccepts
Return Type:
bool
Checks if the command source always accepts. Returns : True if the command source always accepts, false otherwise.
// PathfinderMob.alwaysAccepts() as bool;
myPathfinderMob . alwaysAccepts();
Return Type:
bool
Gets the interval of the ambient sound for this mob. // PathfinderMob.ambientSoundInterval as int
myPathfinderMob . ambientSoundInterval
Return Type:
int
Gets the armor cover percentage for this entity. 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 float
myPathfinderMob . armorCoverPercentage
Return Type:
float
Gets the armor cover percentage for this entity. 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
Gets this entity's armor items. // PathfinderMob.armorSlots as Iterable< ItemStack > myPathfinderMob . armorSlots
Return Type:
Iterable <ItemStack >
Gets this entity's armor items. Returns : An iterable of item stacks representing the armor items.
// PathfinderMob.armorSlots() as Iterable< ItemStack >; myPathfinderMob . armorSlots();
Return Type:
Iterable <ItemStack >
Gets the armor value for this entity. // PathfinderMob.armorValue as int
myPathfinderMob . armorValue
Return Type:
int
Gets the armor value for this entity. Returns : The armor value.
// PathfinderMob.armorValue() as int;
myPathfinderMob . armorValue();
Return Type:
int
Gets how many arrows are currently in this entity. // PathfinderMob.arrowCount as int
myPathfinderMob . arrowCount
Return Type:
int
Gets how many arrows are currently in this entity. Returns : The arrow count.
// PathfinderMob.arrowCount() as int;
myPathfinderMob . arrowCount();
Return Type:
int
Triggers the eat event for this mob. This is used by sheep when they eat grass to regrow their wool / grow up.
Checks if the entity is attackable. // PathfinderMob.attackable as bool
myPathfinderMob . attackable
Return Type:
bool
Checks if the entity is attackable. Returns : True if the entity is attackable, false otherwise.
// PathfinderMob.attackable() as bool;
myPathfinderMob . attackable();
Return Type:
bool
Sets whether the mob should be a baby. // PathfinderMob.baby = (value as bool);
myPathfinderMob . baby = myBool;
Parameters:
value: bool
Type: bool
- Whether the mob should be a baby.
Gets the height of the bounding box of the entity. // PathfinderMob.bbHeight as float
Return Type:
float
Gets the height of the bounding box of the entity. Returns : The height of the bounding box of the entity.
// PathfinderMob.bbHeight() as float;
myPathfinderMob . bbHeight();
Return Type:
float
Gets the width of the bounding box of the entity. // PathfinderMob.bbWidth as float
Return Type:
float
Gets the width of the bounding box of the entity. Returns : The width of the bounding box of the entity.
// PathfinderMob.bbWidth() as float;
myPathfinderMob . bbWidth();
Return Type:
float
Gets the orientation of the bed that the entity is sleeping on. myPathfinderMob . bedOrientation
Return Type:
Direction
Gets the orientation of the bed that the entity is sleeping on. Returns : The orientation of the bed that the entity is sleeping on.
// PathfinderMob.bedOrientation() as Direction ; myPathfinderMob . bedOrientation();
Return Type:
Direction
Gets the BlockPos
of the entity. // PathfinderMob.blockPosiion as BlockPos myPathfinderMob . blockPosiion
Return Type:
BlockPos
Gets the BlockPos
of the entity. Returns : The BlockPos
of the entity.
// PathfinderMob.blockPosiion() as BlockPos ; myPathfinderMob . blockPosiion();
Return Type:
BlockPos
Gets the position
of the entity. // PathfinderMob.blockPosition as BlockPos myPathfinderMob . blockPosition
Return Type:
BlockPos
Gets the position
of the entity. Returns : The block position of the entity.
// PathfinderMob.blockPosition() as BlockPos ; myPathfinderMob . blockPosition();
Return Type:
BlockPos
Gets the x coordinate of the entity. // PathfinderMob.blockX as int
Return Type:
int
Gets the x coordinate of the entity. Returns : The x coordinate of the entity.
// PathfinderMob.blockX() as int;
myPathfinderMob . blockX();
Return Type:
int
Gets the y coordinate of the entity. // PathfinderMob.blockY as int
Return Type:
int
Gets the y coordinate of the entity. Returns : The y coordinate of the entity.
// PathfinderMob.blockY() as int;
myPathfinderMob . blockY();
Return Type:
int
Gets the z coordinate of the entity. // PathfinderMob.blockZ as int
Return Type:
int
Gets the z coordinate of the entity. Returns : The z coordinate of the entity.
// PathfinderMob.blockZ() as int;
myPathfinderMob . blockZ();
Return Type:
int
Gets the bounding box of the entity. // PathfinderMob.boundingBox as AABB myPathfinderMob . boundingBox
Return Type:
AABB
Gets the bounding box of the entity. Returns : The bounding box of the entity.
// PathfinderMob.boundingBox() as AABB ; myPathfinderMob . boundingBox();
Return Type:
AABB
Gets the bounding box for culling of the entity. // PathfinderMob.boundingBoxForCulling as AABB myPathfinderMob . boundingBoxForCulling
Return Type:
AABB
Gets the bounding box for culling of the entity. Returns : The bounding box for culling of the entity.
// PathfinderMob.boundingBoxForCulling() as AABB ; myPathfinderMob . boundingBoxForCulling();
Return Type:
AABB
Checks if this entity can attack a target. Returns : True if this entity can attack the target, false otherwise.
myPathfinderMob . canAttack(myLivingEntity);
Return Type:
bool
Checks if this entity can be affected by a specific effect. Returns : True if this entity can be affected by the effect, false otherwise.
myPathfinderMob . canBeAffected(myMobEffectInstance);
Return Type:
bool
Checks if the entity can be collided with. // PathfinderMob.canBeCollidedWith as bool
myPathfinderMob . canBeCollidedWith
Return Type:
bool
Checks if the entity can be collided with. Returns : true if the entity can be collided with.
// PathfinderMob.canBeCollidedWith() as bool;
myPathfinderMob . canBeCollidedWith();
Return Type:
bool
Checks if the mob can be leashed. Returns : Whether the mob can be leashed.
// PathfinderMob.canBeLeashed() as bool;
myPathfinderMob . canBeLeashed();
Return Type:
bool
Checks if this entity can be seen as an enemy. Some things this checks are if this entity is a player and it is in creative mode, or if this entity is an axolotl if it is playing dead. // PathfinderMob.canBeSeenAsEnemy as bool
myPathfinderMob . canBeSeenAsEnemy
Return Type:
bool
Checks if this entity can be seen as an enemy. Some things this checks are if this entity is a player and it is in creative mode, or if this entity is an axolotl if it is playing dead. Returns : True if this entity can be seen as an enemy, false otherwise.
// PathfinderMob.canBeSeenAsEnemy() as bool;
myPathfinderMob . canBeSeenAsEnemy();
Return Type:
bool
Checks if this entity can be seen by anyone. // PathfinderMob.canBeSeenByAnyone as bool
myPathfinderMob . canBeSeenByAnyone
Return Type:
bool
Checks if this entity can be seen by anyone. Returns : True if this entity can be seen by anyone, false otherwise.
// PathfinderMob.canBeSeenByAnyone() as bool;
myPathfinderMob . canBeSeenByAnyone();
Return Type:
bool
Checks if this entity can breathe underwater. // PathfinderMob.canBreatheUnderwater as bool
myPathfinderMob . canBreatheUnderwater
Return Type:
bool
Checks if this entity can breathe underwater. Returns : True if the entity can breathe underwater, false otherwise.
// PathfinderMob.canBreatheUnderwater() as bool;
myPathfinderMob . canBreatheUnderwater();
Return Type:
bool
Checks if the entity can collide with the given entity. Returns : true if the entity can collide with the given entity.
// PathfinderMob.canCollideWith(other as Entity ) as bool; myPathfinderMob . canCollideWith(myEntity);
Parameters:
other: Entity
Type: Entity
- The entity to check if the entity can collide with.
Return Type:
bool
Checks if the mob can fire a projectile weapon. Returns : Whether the mob can fire the weapon.
myPathfinderMob . canFireProjectileWeapon(myProjectileWeaponItem);
Return Type:
bool
Checks if the entity can freeze. // PathfinderMob.canFreeze as bool
myPathfinderMob . canFreeze
Return Type:
bool
Checks if the entity can freeze. Returns : Whether the entity can freeze.
// PathfinderMob.canFreeze() as bool;
myPathfinderMob . canFreeze();
Return Type:
bool
Checks if the mob can hold the given item. Returns : Whether the mob can hold the item.
// PathfinderMob.canHoldItem(stack as ItemStack ) as bool; myPathfinderMob . canHoldItem(myItemStack);
Return Type:
bool
Checks if the mob can pick up loot. // PathfinderMob.canPickUpLoot as bool
myPathfinderMob . canPickUpLoot
Return Type:
bool
Sets whether the mob can pick up loot. // PathfinderMob.canPickUpLoot = (value as bool);
myPathfinderMob . canPickUpLoot = myBool;
Parameters:
value: bool
Type: bool
- Whether the mob can pick up loot.
Checks if the mob can replace an item with another item. Returns : Whether the mob can replace the item.
myPathfinderMob . canReplaceEqualItem(myItemStack, myItemStack);
Return Type:
bool
Checks if the entity can stand on a specific fluid. Returns : True if the entity can stand on the fluid, false otherwise.
// PathfinderMob.canStandOnFluid(fluid as Fluid ) as bool; myPathfinderMob . canStandOnFluid(myFluid);
Return Type:
bool
Checks if the item can be worn as armor. Returns : True if the item can be worn as armor, false otherwise.
// PathfinderMob.canTakeItem(stack as ItemStack ) as bool; myPathfinderMob . canTakeItem(myItemStack);
Return Type:
bool
Checks if the mob can spawn in the given level
. Returns : Whether the mob can spawn in the given level.
// PathfinderMob.checkSpawnObstruction(level as LevelReader ) as bool; myPathfinderMob . checkSpawnObstruction(myLevelReader);
Return Type:
bool
Checks if the mob can spawn in the given level
with the given MobSpawnType
. Returns : Whether the mob can spawn in the given level.
myPathfinderMob . checkSpawnRules(myLevelAccessor, myMobSpawnType);
Return Type:
bool
Clears the fire of the entity. // PathfinderMob.clearFire();
myPathfinderMob . clearFire();
Clears the restriction for the mob. // PathfinderMob.clearRestriction();
myPathfinderMob . clearRestriction();
Clears the position that the entity is sleeping at. // PathfinderMob.clearSleepingPos();
myPathfinderMob . clearSleepingPos();
Checks if the entity is closer than the given distance to another entity. Returns : true if the entity is closer than the given distance to the other entity.
// PathfinderMob.closerThan(other as Entity , distance as double) as bool; myPathfinderMob . closerThan(myEntity, myDouble);
Parameters:
other: Entity
Type: Entity
- The other entity to check the distance to. distance: double
Type: double
- The distance to check.
Return Type:
bool
Gets the Level
used when sending commands as this entity. // PathfinderMob.commandSenderWorld as Level myPathfinderMob . commandSenderWorld
Return Type:
Level
Gets the Level
used when sending commands as this entity. Returns : The Level
used when sending commands as this entity.
// PathfinderMob.commandSenderWorld() as Level ; myPathfinderMob . commandSenderWorld();
Return Type:
Level
Gets the controlling passenger of the entity. // PathfinderMob.controllingPassenger as Entity myPathfinderMob . controllingPassenger
Return Type:
Entity
Gets the controlling passenger of the entity. Returns : The controlling passenger of the entity.
// PathfinderMob.controllingPassenger() as Entity ; myPathfinderMob . controllingPassenger();
Return Type:
Entity
Gets the custom NBT data for this Entity. // PathfinderMob.customData as MapData myPathfinderMob . customData
Return Type:
MapData
Gets the custom NBT data for this Entity. Returns : The custom data for this Entity.
// PathfinderMob.customData() as MapData ; myPathfinderMob . customData();
Return Type:
MapData
Gets the custom name of the entity. myPathfinderMob . customName
Return Type:
Component
myPathfinderMob . customName
Return Type:
Component
Gets the custom name of the entity. Returns : The custom name of the entity.
myPathfinderMob . customName();
Return Type:
Component
myPathfinderMob . customName();
Return Type:
Component
Checks if the entity dampens vibrations, such as net.minecraft.world.entity.item.ItemEntity
s who's item is in the dampens_vibrations item tag. // PathfinderMob.dampensVibrations as bool
myPathfinderMob . dampensVibrations
Return Type:
bool
Checks if the entity dampens vibrations, such as 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
Gets the NBT data of this Entity.
Return Type:
MapData
Gets the NBT data of this Entity. Returns : The NBT data of this Entity.
// PathfinderMob.data() as MapData ;
Return Type:
MapData
Gets the delta movement of the entity. // PathfinderMob.deltaMovement as Vec3 myPathfinderMob . deltaMovement
Return Type:
Vec3
Sets the delta movement of the entity. // PathfinderMob.deltaMovement = (deltaMovement as Vec3 ); myPathfinderMob . deltaMovement = myVec3;
Parameters:
deltaMovement: Vec3
Type: Vec3
- The delta movement to set. Gets the delta movement of the entity. Returns : The delta movement of the entity.
// PathfinderMob.deltaMovement() as Vec3 ; myPathfinderMob . deltaMovement();
Return Type:
Vec3
Sets the delta movement of the entity. // PathfinderMob.deltaMovement(deltaMovement as Vec3 ); myPathfinderMob . deltaMovement(myVec3);
Parameters:
deltaMovement: Vec3
Type: Vec3
- The delta movement to set. Kills this entity. myPathfinderMob . die(myDamageSource);
Gets the dimension changing delay of the entity. // PathfinderMob.dimensionChangingDelay as int
myPathfinderMob . dimensionChangingDelay
Return Type:
int
Gets the dimension changing delay of the entity. Returns : The dimension changing delay of the entity.
// PathfinderMob.dimensionChangingDelay() as int;
myPathfinderMob . dimensionChangingDelay();
Return Type:
int
Gets the direction of the entity. myPathfinderMob . direction
Return Type:
Direction
Gets the direction of the entity. Returns : The direction of the entity.
myPathfinderMob . direction();
Return Type:
Direction
Discards the entity. // PathfinderMob.discard();
myPathfinderMob . discard();
Checks if the entity dismounts underwater. // PathfinderMob.dismountsUnderwater as bool
myPathfinderMob . dismountsUnderwater
Return Type:
bool
Checks if the entity dismounts underwater. Returns : true if the entity dismounts underwater.
// PathfinderMob.dismountsUnderwater() as bool;
myPathfinderMob . dismountsUnderwater();
Return Type:
bool
Gets the display name of the entity. myPathfinderMob . displayName
Return Type:
Component
myPathfinderMob . displayName
Return Type:
Component
Gets the display name of the entity. Returns : The display name of the entity.
myPathfinderMob . displayName();
Return Type:
Component
myPathfinderMob . displayName();
Return Type:
Component
Gets the distance to the given entity. Returns : The distance to the given entity.
// PathfinderMob.distanceTo(entity as Entity ) as float; myPathfinderMob . distanceTo(myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity to get the distance to.
Return Type:
float
Gets the squared distance to the given position. 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
Gets the squared distance to the given entity. Returns : The squared distance to the given entity.
// PathfinderMob.distanceToSqr(entity as Entity ) as double; myPathfinderMob . distanceToSqr(myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity to get the squared distance to.
Return Type:
double
Gets the squared distance to the given vector. Returns : The squared distance to the given vector.
// PathfinderMob.distanceToSqr(vec as Vec3 ) as double; myPathfinderMob . distanceToSqr(myVec3);
Parameters:
vec: Vec3
Type: Vec3
- The vector to get the squared distance to.
Return Type:
double
// PathfinderMob.doHurtTarget(entity as Entity ) as bool; myPathfinderMob . doHurtTarget(myEntity);
Return Type:
bool
Drops the leash for the mob. // 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.
Eats an item. Returns : The item that the entity ate.
myPathfinderMob . eat(myLevel, myItemStack);
Parameters:
level: Level
Type: Level
- The level that the entity is in.
Return Type:
ItemStack
Ejects the passengers of the entity. // PathfinderMob.ejectPassengers();
myPathfinderMob . ejectPassengers();
Equips the mob with the given item if possible. Returns : The item that was equipped.
myPathfinderMob . equipItemIfPossible(myItemStack);
Return Type:
ItemStack
Gets the eye height of the entity. // PathfinderMob.eyeHeight as float
myPathfinderMob . eyeHeight
Return Type:
float
Gets the eye height of the entity. Returns : The eye height of the entity.
// PathfinderMob.eyeHeight() as float;
myPathfinderMob . eyeHeight();
Return Type:
float
Gets the eye position of the entity. // PathfinderMob.eyePosition as Vec3 myPathfinderMob . eyePosition
Return Type:
Vec3
Gets the eye position of the entity. Returns : The eye position of the entity.
// PathfinderMob.eyePosition() as Vec3 ; myPathfinderMob . eyePosition();
Return Type:
Vec3
Gets the y coordinate of the entity's eyes. // PathfinderMob.eyeY as double
Return Type:
double
Gets the y coordinate of the entity's eyes. Returns : The y coordinate of the entity's eyes.
// PathfinderMob.eyeY() as double;
Return Type:
double
Gets the ticks that the entity has been flying with an elytra. // PathfinderMob.fallFlyingTicks as int
myPathfinderMob . fallFlyingTicks
Return Type:
int
Gets the ticks that the entity has been flying with an elytra. Returns : The ticks that the entity has been flying with an elytra.
// PathfinderMob.fallFlyingTicks() as int;
myPathfinderMob . fallFlyingTicks();
Return Type:
int
Checks if the entity is fire immune. // PathfinderMob.fireImmune as bool
myPathfinderMob . fireImmune
Return Type:
bool
Checks if the entity is fire immune. Returns : true if the entity is fire immune.
// PathfinderMob.fireImmune() as bool;
myPathfinderMob . fireImmune();
Return Type:
bool
Gets the remaining fire ticks of the entity. // PathfinderMob.fireTicks as int
myPathfinderMob . fireTicks
Return Type:
int
Sets the remaining fire ticks of the entity. // PathfinderMob.fireTicks = (ticks as int);
myPathfinderMob . fireTicks = myInt;
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to.
Sets the remaining fire ticks of the entity. // PathfinderMob.fireTicks(ticks as int);
myPathfinderMob . fireTicks(myInt);
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to.
Gets the remaining fire ticks of the entity. Returns : The remaining fire ticks of the entity.
// PathfinderMob.fireTicks() as int;
myPathfinderMob . fireTicks();
Return Type:
int
Gets the first passenger of the entity. // PathfinderMob.firstPassenger as Entity myPathfinderMob . firstPassenger
Return Type:
Entity
Gets the first passenger of the entity. Returns : The first passenger of the entity.
// PathfinderMob.firstPassenger() as Entity ; myPathfinderMob . firstPassenger();
Return Type:
Entity
Gets the fluid jump threshold of the entity. // PathfinderMob.fluidJumpThreshold as double
myPathfinderMob . fluidJumpThreshold
Return Type:
double
Gets the fluid jump threshold of the entity. Returns : The fluid jump threshold of the entity.
// PathfinderMob.fluidJumpThreshold() as double;
myPathfinderMob . fluidJumpThreshold();
Return Type:
double
Forces this entity to have a specific effect, this does not force effects that can't affect this entity. myPathfinderMob . forceAddEffect(myMobEffectInstance, myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity that is the source of the effect. Gets the forward vector of the entity. // PathfinderMob.forward as Vec3
Return Type:
Vec3
Gets the forward vector of the entity. Returns : The forward vector of the entity.
// PathfinderMob.forward() as Vec3 ; myPathfinderMob . forward();
Return Type:
Vec3
// PathfinderMob.getAttachmentData<T>(type as AttachmentType <T>) as T; myPathfinderMob . getAttachmentData < T>(myAttachmentType);
Return Type:
T
// PathfinderMob.getAttachmentData<T>(type as Supplier< AttachmentType <T>>) as T; myPathfinderMob . getAttachmentData < T>(mySupplier);
Return Type:
T
Gets the attribute for this entity. Returns : The attribute.
myPathfinderMob . getAttribute(myAttribute);
Return Type:
AttributeInstance
Gets the base attribute value for this entity. Returns : The base attribute value.
// PathfinderMob.getAttributeBaseValue(attribute as Attribute ) as double; myPathfinderMob . getAttributeBaseValue(myAttribute);
Return Type:
double
Gets the attribute value for this entity. Returns : The attribute value.
// PathfinderMob.getAttributeValue(attribute as Attribute ) as double; myPathfinderMob . getAttributeValue(myAttribute);
Return Type:
double
Gets the eye position of the entity. Returns : The eye position of the entity.
// PathfinderMob.getEyePosition(partialTicks as float) as Vec3 ; myPathfinderMob . getEyePosition(myFloat);
Parameters:
partialTicks: float
Type: float
- The partial ticks to get the eye position for.
Return Type:
Vec3
Gets the item in a specific slot. Returns : The item in the slot.
myPathfinderMob . getItemBySlot(myEquipmentSlot);
Return Type:
ItemStack
Gets the item in the entity's hand. Returns : The item in the hand.
myPathfinderMob . getItemInHand(myInteractionHand);
Return Type:
ItemStack
Gets the position of the entity. Returns : The position of the entity.
// PathfinderMob.getPosition(partialTicks as float) as Vec3 ; myPathfinderMob . getPosition(myFloat);
Parameters:
partialTicks: float
Type: float
- The partial ticks to get the position for.
Return Type:
Vec3
Gets the position that the mob is restricted to. // PathfinderMob.getRestrictCenter as BlockPos myPathfinderMob . getRestrictCenter
Return Type:
BlockPos
Gets the entity that the mob is leashed to. // PathfinderMob.getRestrictCenter as Entity myPathfinderMob . getRestrictCenter
Return Type:
Entity
Gets the radius that the mob is restricted to. // PathfinderMob.getRestrictRadius as float
myPathfinderMob . getRestrictRadius
Return Type:
float
Gets the swim amount. 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
Gets the up vector of the entity. Returns : The up vector of the entity.
// PathfinderMob.getUpVector(partialTicks as float) as Vec3 ; myPathfinderMob . getUpVector(myFloat);
Parameters:
partialTicks: float
Type: float
- The partial ticks to get the up vector for.
Return Type:
Vec3
Gets the view vector of the entity. Returns : The view vector of the entity.
// PathfinderMob.getViewVector(partialTicks as float) as Vec3 ; myPathfinderMob . getViewVector(myFloat);
Parameters:
partialTicks: float
Type: float
- The partial ticks to get the view vector for.
Return Type:
Vec3
Gets the visibility percent for this entity. Returns : The visibility percent.
// PathfinderMob.getVisibilityPercent(lookingEntity as Entity ) as double; myPathfinderMob . getVisibilityPercent(myEntity);
Parameters:
lookingEntity: Entity
Type: Entity
- The entity that is looking at this entity.
Return Type:
double
Gets the x coordinate of the entity with the given scale. 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
Gets the y coordinate of the entity with the given scale. 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
Gets the z coordinate of the entity with the given scale. 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
Gets this entity's held items. // PathfinderMob.handSlots as Iterable< ItemStack > myPathfinderMob . handSlots
Return Type:
Iterable <ItemStack >
Gets this entity's held items. Returns : An iterable of item stacks representing the held items.
// PathfinderMob.handSlots() as Iterable< ItemStack >; myPathfinderMob . handSlots();
Return Type:
Iterable <ItemStack >
// PathfinderMob.hasAttachmentData<T>(type as AttachmentType <T>) as bool; myPathfinderMob . hasAttachmentData < T>(myAttachmentType);
Return Type:
bool
// PathfinderMob.hasAttachmentData<T>(type as Supplier< AttachmentType <T>>) as bool; myPathfinderMob . hasAttachmentData < T>(mySupplier);
Return Type:
bool
Checks 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
Checks if the entity has a custom name. 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
Checks if this entity has a specific effect. Returns : True if this entity has the effect, false otherwise.
// PathfinderMob.hasEffect(effect as MobEffect ) as bool; myPathfinderMob . hasEffect(myMobEffect);
Return Type:
bool
Checks if the entity has exactly one player passenger. // PathfinderMob.hasExactlyOnePlayerPassenger as bool
myPathfinderMob . hasExactlyOnePlayerPassenger
Return Type:
bool
Checks if the entity has exactly one player passenger. Returns : true if the entity has exactly one player passenger.
// PathfinderMob.hasExactlyOnePlayerPassenger() as bool;
myPathfinderMob . hasExactlyOnePlayerPassenger();
Return Type:
bool
Checks if the entity is currently glowing. // PathfinderMob.hasGlowingTag as bool
myPathfinderMob . hasGlowingTag
Return Type:
bool
Checks if the entity is currently glowing. Returns : true if the entity is currently glowing.
// PathfinderMob.hasGlowingTag() as bool;
myPathfinderMob . hasGlowingTag();
Return Type:
bool
Checks if the entity has an indirect passenger. Returns : true if the entity has an indirect passenger.
// PathfinderMob.hasIndirectPassenger(entity as Entity ) as bool; myPathfinderMob . hasIndirectPassenger(myEntity);
Return Type:
bool
Checks if the entity has an item in a specific slot. Returns : True if the entity has an item in the slot, false otherwise.
myPathfinderMob . hasItemInSlot(myEquipmentSlot);
Return Type:
bool
Checks if this entity has a line of sight to a specific entity. Returns : True if the entity has a line of sight to the entity, false otherwise.
// PathfinderMob.hasLineOfSight(entity as Entity ) as bool; myPathfinderMob . hasLineOfSight(myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity to check the line of sight to.
Return Type:
bool
Checks if the entity has a passenger. Returns : true if the entity has the given passenger.
// PathfinderMob.hasPassenger(entity as Entity ) as bool; myPathfinderMob . hasPassenger(myEntity);
Return Type:
bool
Checks if the entity has a passenger that matches the given predicate. Returns : true if the entity has a passenger that matches the predicate.
// PathfinderMob.hasPassenger(predicate as function(t as Entity ) as bool) as bool; myPathfinderMob . hasPassenger(myPredicate);
Parameters:
predicate: function(t as Entity ) as bool
Type: function(t as Entity ) as bool
- The predicate to check.
Return Type:
bool
Checks if the mob has a restriction. // PathfinderMob.hasRestriction as bool
myPathfinderMob . hasRestriction
Return Type:
bool
Heals this entity. // PathfinderMob.heal(amount as float);
myPathfinderMob . heal(myFloat);
Parameters:
amount: float
Type: float
- The amount to heal.
Gets the health of this entity. // PathfinderMob.health as float
Return Type:
float
Gets the health of this entity. Returns : The health of this entity.
// PathfinderMob.health() as float;
myPathfinderMob . health();
Return Type:
float
Hurts the entity with the given DamageSource
and amount. Returns : true if the entity was hurt.
// PathfinderMob.hurt(source as DamageSource , amount as float) as bool; myPathfinderMob . hurt(myDamageSource, myFloat);
Parameters:
amount: float
Type: float
- The amount of damage to deal.
Return Type:
bool
Gets the ID of the entity. // PathfinderMob.id as int
Return Type:
int
Gets the ID of the entity. Returns : The ID of the entity.
// PathfinderMob.id() as int;
Return Type:
int
Gets the BlockState
that this entity is currently inside. myPathfinderMob . inBlockState
Return Type:
BlockState
Gets the BlockState
that this entity is currently inside. Returns : The block state that this entity is currently inside
myPathfinderMob . inBlockState();
Return Type:
BlockState
Checks if the entity is affected by potions, entities such as armor stands are not affected by potions. // PathfinderMob.isAffectedByPotions as bool
myPathfinderMob . isAffectedByPotions
Return Type:
bool
Checks if the entity is affected by potions, entities such as armor stands are not affected by potions. Returns : True if the entity is affected by potions, false otherwise.
// PathfinderMob.isAffectedByPotions() as bool;
myPathfinderMob . isAffectedByPotions();
Return Type:
bool
Checks if the entity is alive. // PathfinderMob.isAlive as bool
Return Type:
bool
Checks if the entity is alive. Returns : true if the entity is alive.
// PathfinderMob.isAlive() as bool;
myPathfinderMob . isAlive();
Return Type:
bool
Checks if the entity is always ticking. // PathfinderMob.isAlwaysTicking as bool
myPathfinderMob . isAlwaysTicking
Return Type:
bool
Checks if the entity is always ticking. Returns : true if the entity is always ticking.
// PathfinderMob.isAlwaysTicking() as bool;
myPathfinderMob . isAlwaysTicking();
Return Type:
bool
Checks if the entity is attackable. // PathfinderMob.isAttackable as bool
myPathfinderMob . isAttackable
Return Type:
bool
Checks if the entity is attackable. Returns : true if the entity is attackable.
// PathfinderMob.isAttackable() as bool;
myPathfinderMob . isAttackable();
Return Type:
bool
Checks if this entity is performing an auto spin attack. // PathfinderMob.isAutoSpinAttack as bool
myPathfinderMob . isAutoSpinAttack
Return Type:
bool
Checks if this entity is performing an auto spin attack. Returns : True if the entity is performing an auto spin attack, false otherwise.
// PathfinderMob.isAutoSpinAttack() as bool;
myPathfinderMob . isAutoSpinAttack();
Return Type:
bool
Checks if this entity is a baby. // PathfinderMob.isBaby as bool
Return Type:
bool
Checks if this entity is a baby. Returns : True if the entity is a baby, false otherwise.
// PathfinderMob.isBaby() as bool;
myPathfinderMob . isBaby();
Return Type:
bool
Checks if the entity is blocking. // PathfinderMob.isBlocking as bool
myPathfinderMob . isBlocking
Return Type:
bool
Checks if the entity is blocking. Returns : True if the entity is blocking, false otherwise.
// PathfinderMob.isBlocking() as bool;
myPathfinderMob . isBlocking();
Return Type:
bool
Checks if this entity is colliding with the given BlockState
at the given BlockPos
. Returns : true if the entity is colliding with the block.
myPathfinderMob . isColliding(myBlockPos, myBlockState);
Return Type:
bool
Checks if the entity is crouching. // PathfinderMob.isCrouching as bool
myPathfinderMob . isCrouching
Return Type:
bool
Checks if the entity is crouching. Returns : true if the entity is crouching.
// PathfinderMob.isCrouching() as bool;
myPathfinderMob . isCrouching();
Return Type:
bool
Checks if the entity is currently glowing. // PathfinderMob.isCurrentlyGlowing as bool
myPathfinderMob . isCurrentlyGlowing
Return Type:
bool
Checks if the entity is currently glowing. // PathfinderMob.isCurrentlyGlowing as bool
myPathfinderMob . isCurrentlyGlowing
Return Type:
bool
Checks if the entity is currently glowing. Returns : True if the entity is currently glowing, false otherwise.
// PathfinderMob.isCurrentlyGlowing() as bool;
myPathfinderMob . isCurrentlyGlowing();
Return Type:
bool
Checks if the entity is currently glowing. Returns : true if the entity is currently glowing.
// PathfinderMob.isCurrentlyGlowing() as bool;
myPathfinderMob . isCurrentlyGlowing();
Return Type:
bool
Checks if the custom name of the entity is visible. // PathfinderMob.isCustomNameVisible as bool
myPathfinderMob . isCustomNameVisible
Return Type:
bool
Checks if the custom name of the entity is visible. Returns : true if the custom name is visible.
// PathfinderMob.isCustomNameVisible() as bool;
myPathfinderMob . isCustomNameVisible();
Return Type:
bool
Determines whether the entity can block the damage source based on the damage source's location, whether the damage source is blockable, and whether the entity is blocking. Returns : True if the entity can block the damage source, false otherwise.
// PathfinderMob.isDamageSourceBlocked(source as DamageSource ) as bool; myPathfinderMob . isDamageSourceBlocked(myDamageSource);
Return Type:
bool
Checks if this entity is dead or dying. // PathfinderMob.isDeadOrDying as bool
myPathfinderMob . isDeadOrDying
Return Type:
bool
Checks if this entity is dead or dying. Returns : True if this entity is dead or dying, false otherwise.
// PathfinderMob.isDeadOrDying() as bool;
myPathfinderMob . isDeadOrDying();
Return Type:
bool
Checks if the entity is descending. // PathfinderMob.isDescending as bool
myPathfinderMob . isDescending
Return Type:
bool
Checks if the entity is descending. Returns : true if the entity is descending.
// PathfinderMob.isDescending() as bool;
myPathfinderMob . isDescending();
Return Type:
bool
Checks if the entity is being discrete. // PathfinderMob.isDiscrete as bool
myPathfinderMob . isDiscrete
Return Type:
bool
Checks if the entity is being discrete. Returns : true if the entity is being discrete.
// PathfinderMob.isDiscrete() as bool;
myPathfinderMob . isDiscrete();
Return Type:
bool
Checks if the entity is flying with an elytra. // PathfinderMob.isFallFlying as bool
myPathfinderMob . isFallFlying
Return Type:
bool
Checks if the entity is flying with an elytra. Returns : True if the entity is flying with an elytra, false otherwise.
// PathfinderMob.isFallFlying() as bool;
myPathfinderMob . isFallFlying();
Return Type:
bool
Checks if the offset position from the entity's current position has a collision with a block or a liquid. 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
Checks if the entity is fully frozen. // PathfinderMob.isFullyFrozen as bool
myPathfinderMob . isFullyFrozen
Return Type:
bool
Checks if the entity is fully frozen. Returns : true if the entity is fully frozen.
// PathfinderMob.isFullyFrozen() as bool;
myPathfinderMob . isFullyFrozen();
Return Type:
bool
Checks if the entity is holding an item in their hand. Returns : True if the entity is holding the item, false otherwise.
myPathfinderMob . isHolding(myItem);
Return Type:
bool
Checks if the entity is holding an item in their hand. Returns : True if the entity is holding the item, false otherwise.
// PathfinderMob.isHolding(predicate as function(t as ItemStack ) as bool) as bool; myPathfinderMob . isHolding(myPredicate);
Parameters:
predicate: function(t as ItemStack ) as bool
Type: function(t as ItemStack ) as bool
- The predicate to check.
Return Type:
bool
Checks if the entity is in lava. // PathfinderMob.isInLava as bool
Return Type:
bool
Checks if the entity is in lava. Returns : true if the entity is in lava.
// PathfinderMob.isInLava() as bool;
myPathfinderMob . isInLava();
Return Type:
bool
Checks if this entity is inverted for heal and harm. This usually happens for undead mobs where potions of healing with harm them. // PathfinderMob.isInvertedHealAndHarm as bool
myPathfinderMob . isInvertedHealAndHarm
Return Type:
bool
Checks if this entity is inverted for heal and harm. This usually happens for undead mobs where potions of healing with harm them. Returns : True if this entity is inverted for heal and harm, false otherwise.
// PathfinderMob.isInvertedHealAndHarm() as bool;
myPathfinderMob . isInvertedHealAndHarm();
Return Type:
bool
Checks if the entity is invisible. // PathfinderMob.isInvisible as bool
myPathfinderMob . isInvisible
Return Type:
bool
Checks if the entity is invisible. Returns : true if the entity is invisible.
// PathfinderMob.isInvisible() as bool;
myPathfinderMob . isInvisible();
Return Type:
bool
Checks if the entity is invisible to the given Player
. Returns : true if the entity is invisible to the player.
// PathfinderMob.isInvisibleTo(player as Player ) as bool; myPathfinderMob . isInvisibleTo(myPlayer);
Return Type:
bool
Checks if the entity is invulnerable. // PathfinderMob.isInvulnerable as bool
myPathfinderMob . isInvulnerable
Return Type:
bool
Checks if the entity is invulnerable. Returns : true if the entity is invulnerable.
// PathfinderMob.isInvulnerable() as bool;
myPathfinderMob . isInvulnerable();
Return Type:
bool
Checks if the entity is invulnerable to the given DamageSource
. Returns : true if the entity is invulnerable to the damage source.
// PathfinderMob.isInvulnerableTo(source as DamageSource ) as bool; myPathfinderMob . isInvulnerableTo(myDamageSource);
Return Type:
bool
Checks if the entity is in a wall. // PathfinderMob.isInWall as bool
Return Type:
bool
Checks if the entity is in a wall. Returns : true if the entity is in a wall.
// PathfinderMob.isInWall() as bool;
myPathfinderMob . isInWall();
Return Type:
bool
Checks if the entity is in water. // PathfinderMob.isInWater as bool
myPathfinderMob . isInWater
Return Type:
bool
Checks if the entity is in water. Returns : true if the entity is in water.
// PathfinderMob.isInWater() as bool;
myPathfinderMob . isInWater();
Return Type:
bool
Checks if the entity is in water or a bubble column. // PathfinderMob.isInWaterOrBubble as bool
myPathfinderMob . isInWaterOrBubble
Return Type:
bool
Checks if the entity is in water or a bubble column. Returns : true if the entity is in water or a bubble column.
// PathfinderMob.isInWaterOrBubble() as bool;
myPathfinderMob . isInWaterOrBubble();
Return Type:
bool
Checks if the entity is in water or rain. // PathfinderMob.isInWaterOrRain as bool
myPathfinderMob . isInWaterOrRain
Return Type:
bool
Checks if the entity is in water or rain. Returns : true if the entity is in water or rain.
// PathfinderMob.isInWaterOrRain() as bool;
myPathfinderMob . isInWaterOrRain();
Return Type:
bool
Checks if the entity is in water or rain or a bubble column. // PathfinderMob.isInWaterRainOrBubble as bool
myPathfinderMob . isInWaterRainOrBubble
Return Type:
bool
Checks if the entity is in water or rain or a bubble column. Returns : true if the entity is in water or rain or a bubble column.
// PathfinderMob.isInWaterRainOrBubble() as bool;
myPathfinderMob . isInWaterRainOrBubble();
Return Type:
bool
Checks if the mob's maximum group size is reached. This is mainly used by fish when they are spawned naturally. 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
Checks if the entity has no gravity. // PathfinderMob.isNoGravity as bool
myPathfinderMob . isNoGravity
Return Type:
bool
Checks if the entity has no gravity. Returns : true if the entity has no gravity.
// PathfinderMob.isNoGravity() as bool;
myPathfinderMob . isNoGravity();
Return Type:
bool
Checks if the entity is on fire. // PathfinderMob.isOnFire as bool
Return Type:
bool
Checks if the entity is on fire. Returns : true if the entity is on fire.
// PathfinderMob.isOnFire() as bool;
myPathfinderMob . isOnFire();
Return Type:
bool
Checks if the entity is on portal cooldown. // PathfinderMob.isOnPortalCooldown as bool
myPathfinderMob . isOnPortalCooldown
Return Type:
bool
Checks if the entity is on portal cooldown. Returns : true if the entity is on portal cooldown.
// PathfinderMob.isOnPortalCooldown() as bool;
myPathfinderMob . isOnPortalCooldown();
Return Type:
bool
Checks if the entity is a passenger. // PathfinderMob.isPassenger as bool
myPathfinderMob . isPassenger
Return Type:
bool
Checks if the entity is a passenger. Returns : true if the entity is a passenger.
// PathfinderMob.isPassenger() as bool;
myPathfinderMob . isPassenger();
Return Type:
bool
Checks if the entity is a passenger of the same vehicle. Returns : true if the entity is a passenger of the same vehicle.
// PathfinderMob.isPassengerOfSameVehicle(entity as Entity ) as bool; myPathfinderMob . isPassengerOfSameVehicle(myEntity);
Return Type:
bool
Checks if the mob should persist in the world. // PathfinderMob.isPersistenceRequired as bool
myPathfinderMob . isPersistenceRequired
Return Type:
bool
Checks if the entity is pickable. // PathfinderMob.isPickable as bool
myPathfinderMob . isPickable
Return Type:
bool
Checks if the entity is pickable. Returns : true if the entity is pickable.
// PathfinderMob.isPickable() as bool;
myPathfinderMob . isPickable();
Return Type:
bool
Checks if the entity is pushable. // PathfinderMob.isPushable as bool
myPathfinderMob . isPushable
Return Type:
bool
Checks if the entity is pushable. Returns : true if the entity is pushable.
// PathfinderMob.isPushable() as bool;
myPathfinderMob . isPushable();
Return Type:
bool
Checks if the entity is pushed by fluid. // PathfinderMob.isPushedByFluid as bool
myPathfinderMob . isPushedByFluid
Return Type:
bool
Checks if the entity is pushed by fluid. Returns : true if the entity is pushed by fluid.
// PathfinderMob.isPushedByFluid() as bool;
myPathfinderMob . isPushedByFluid();
Return Type:
bool
Checks if the entity has been removed. // PathfinderMob.isRemoved as bool
myPathfinderMob . isRemoved
Return Type:
bool
Checks if the entity has been removed. Returns : Whether the entity has been removed.
// PathfinderMob.isRemoved() as bool;
myPathfinderMob . isRemoved();
Return Type:
bool
Checks if this entity is sensitive to water, meaning that it will take damage from being in water. // PathfinderMob.isSensitiveToWater as bool
myPathfinderMob . isSensitiveToWater
Return Type:
bool
Checks if this entity is sensitive to water, meaning that it will take damage from being in water. Returns : True if the entity is sensitive to water, false otherwise.
// PathfinderMob.isSensitiveToWater() as bool;
myPathfinderMob . isSensitiveToWater();
Return Type:
bool
Checks if the shift key is down. // PathfinderMob.isShiftKeyDown as bool
myPathfinderMob . isShiftKeyDown
Return Type:
bool
Checks if the shift key is down. Returns : true if the shift key is down.
// PathfinderMob.isShiftKeyDown() as bool;
myPathfinderMob . isShiftKeyDown();
Return Type:
bool
Checks if the entity is silent, meaning it won't play any sounds. // PathfinderMob.isSilent as bool
Return Type:
bool
Checks if the entity is silent, meaning it won't play any sounds. Returns : true if the entity is silent.
// PathfinderMob.isSilent() as bool;
myPathfinderMob . isSilent();
Return Type:
bool
Checks if the entity is sleeping. // PathfinderMob.isSleeping as bool
myPathfinderMob . isSleeping
Return Type:
bool
Checks if the entity is sleeping. Returns : True if the entity is sleeping, false otherwise.
// PathfinderMob.isSleeping() as bool;
myPathfinderMob . isSleeping();
Return Type:
bool
Checks if the entity is a spectator. // PathfinderMob.isSpectator as bool
myPathfinderMob . isSpectator
Return Type:
bool
Checks if the entity is a spectator. Returns : true if the entity is a spectator.
// PathfinderMob.isSpectator() as bool;
myPathfinderMob . isSpectator();
Return Type:
bool
Checks if the entity is sprinting. // PathfinderMob.isSprinting as bool
myPathfinderMob . isSprinting
Return Type:
bool
Checks if the entity is sprinting. Returns : true if the entity is sprinting.
// PathfinderMob.isSprinting() as bool;
myPathfinderMob . isSprinting();
Return Type:
bool
Checks if the entity is stepping carefully. // PathfinderMob.isSteppingCarefully as bool
myPathfinderMob . isSteppingCarefully
Return Type:
bool
Checks if the entity is stepping carefully. Returns : true if the entity is stepping carefully.
// PathfinderMob.isSteppingCarefully() as bool;
myPathfinderMob . isSteppingCarefully();
Return Type:
bool
Checks if the entity is suppressing bounce. // PathfinderMob.isSuppressingBounce as bool
myPathfinderMob . isSuppressingBounce
Return Type:
bool
Checks if the entity is suppressing bounce. Returns : true if the entity is suppressing bounce.
// PathfinderMob.isSuppressingBounce() as bool;
myPathfinderMob . isSuppressingBounce();
Return Type:
bool
Checks if the entity is suppressing sliding down a ladder, such as sneaking while on a ladder. // PathfinderMob.isSuppressingSlidingDownLadder as bool
myPathfinderMob . isSuppressingSlidingDownLadder
Return Type:
bool
Checks if the entity is suppressing sliding down a ladder, such as sneaking while on a ladder. Returns : True if the entity is suppressing sliding down a ladder, false otherwise.
// PathfinderMob.isSuppressingSlidingDownLadder() as bool;
myPathfinderMob . isSuppressingSlidingDownLadder();
Return Type:
bool
Checks if the entity is swimming. // PathfinderMob.isSwimming as bool
myPathfinderMob . isSwimming
Return Type:
bool
Checks if the entity is swimming. Returns : true if the entity is swimming.
// PathfinderMob.isSwimming() as bool;
myPathfinderMob . isSwimming();
Return Type:
bool
Checks if the entity is underwater. // PathfinderMob.isUnderWater as bool
myPathfinderMob . isUnderWater
Return Type:
bool
Checks if the entity is underwater. Returns : true if the entity is underwater.
// PathfinderMob.isUnderWater() as bool;
myPathfinderMob . isUnderWater();
Return Type:
bool
Checks if this entity is using an item. // PathfinderMob.isUsingItem as bool
myPathfinderMob . isUsingItem
Return Type:
bool
Checks if this entity is using an item. Returns : True if the entity is using an item, false otherwise.
// PathfinderMob.isUsingItem() as bool;
myPathfinderMob . isUsingItem();
Return Type:
bool
Checks if the entity is a vehicle. // PathfinderMob.isVehicle as bool
myPathfinderMob . isVehicle
Return Type:
bool
Checks if the entity is a vehicle. Returns : true if the entity is a vehicle.
// PathfinderMob.isVehicle() as bool;
myPathfinderMob . isVehicle();
Return Type:
bool
Checks if the entity is visually crawling. // PathfinderMob.isVisuallyCrawling as bool
myPathfinderMob . isVisuallyCrawling
Return Type:
bool
Checks if the entity is visually crawling. Returns : true if the entity is visually crawling.
// PathfinderMob.isVisuallyCrawling() as bool;
myPathfinderMob . isVisuallyCrawling();
Return Type:
bool
Checks if the entity is visually swimming. // PathfinderMob.isVisuallySwimming as bool
myPathfinderMob . isVisuallySwimming
Return Type:
bool
Checks if the entity is visually swimming. // PathfinderMob.isVisuallySwimming as bool
myPathfinderMob . isVisuallySwimming
Return Type:
bool
Checks if the entity is visually swimming. Returns : True if the entity is visually swimming, false otherwise.
// PathfinderMob.isVisuallySwimming() as bool;
myPathfinderMob . isVisuallySwimming();
Return Type:
bool
Checks if the entity is visually swimming. Returns : true if the entity is visually swimming.
// PathfinderMob.isVisuallySwimming() as bool;
myPathfinderMob . isVisuallySwimming();
Return Type:
bool
Checks if the mob is within melee attack range of the given LivingEntity
. Returns : Whether the mob is within melee attack range of the given entity.
// PathfinderMob.isWithinMeleeAttackRange(entity as LivingEntity ) as bool; myPathfinderMob . isWithinMeleeAttackRange(myLivingEntity);
Return Type:
bool
Checks if the mob is within a restriction. // PathfinderMob.isWithinRestriction as bool
myPathfinderMob . isWithinRestriction
Return Type:
bool
Checks if the mob is within a restriction. Returns : Whether the mob is within a restriction.
// PathfinderMob.isWithinRestriction(position as BlockPos ) as bool; myPathfinderMob . isWithinRestriction(myBlockPos);
Return Type:
bool
Gets the jump boost power for this entity. // PathfinderMob.jumpBoostPower as double
myPathfinderMob . jumpBoostPower
Return Type:
double
Gets the jump boost power for this entity. Returns : The jump boost power.
// PathfinderMob.jumpBoostPower() as double;
myPathfinderMob . jumpBoostPower();
Return Type:
double
Gets the kill credit for this entity. If this entity was last hit by a player, then it will be that player, otherwise it will be the last mob that hit this entity. myPathfinderMob . killCredit
Return Type:
LivingEntity
Gets the kill credit for this entity. If this entity was last hit by a player, then it will be that player, otherwise it will be the last mob that hit this entity. Returns : The kill credit.
myPathfinderMob . killCredit();
Return Type:
LivingEntity
Knocks back this entity. // 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.
Gets the last climbable position for this entity. // PathfinderMob.lastClimbablePos as BlockPos myPathfinderMob . lastClimbablePos
Return Type:
BlockPos
Gets the last climbable position for this entity. Returns : The last climbable position.
// PathfinderMob.lastClimbablePos() as BlockPos ; myPathfinderMob . lastClimbablePos();
Return Type:
BlockPos
Gets the last damage source for this entity. myPathfinderMob . lastDamageSource
Return Type:
DamageSource
Gets the last damage source for this entity. Returns : The last damage source.
myPathfinderMob . lastDamageSource();
Return Type:
DamageSource
Gets the last entity that hurt this entity. myPathfinderMob . lastHurtByMob
Return Type:
LivingEntity
Gets the last entity that hurt this entity. Returns : The last entity that hurt this entity.
myPathfinderMob . lastHurtByMob();
Return Type:
LivingEntity
Gets the timestamp when this entity was last hurt by a mob. // PathfinderMob.lastHurtByMobTimestamp as int
myPathfinderMob . lastHurtByMobTimestamp
Return Type:
int
Gets the timestamp when this entity was last hurt by a mob. Returns : The timestamp when this entity was last hurt by a mob.
// PathfinderMob.lastHurtByMobTimestamp() as int;
myPathfinderMob . lastHurtByMobTimestamp();
Return Type:
int
Gets the last entity that this entity hurt. myPathfinderMob . lastHurtMob
Return Type:
LivingEntity
Gets the last entity that this entity hurt. Returns : The last entity that this entity hurt.
myPathfinderMob . lastHurtMob();
Return Type:
LivingEntity
Gets the timestamp when this entity last hurt a mob. // PathfinderMob.lastHurtMobTimestamp as int
myPathfinderMob . lastHurtMobTimestamp
Return Type:
int
Gets the timestamp when this entity last hurt a mob. Returns : The timestamp when this entity last hurt a mob.
// PathfinderMob.lastHurtMobTimestamp() as int;
myPathfinderMob . lastHurtMobTimestamp();
Return Type:
int
Causes the entity to take damage from lava. // PathfinderMob.lavaHurt();
myPathfinderMob . lavaHurt();
Checks if the mob is leashed. // PathfinderMob.leashed as bool
Return Type:
bool
Checks if the mob is left-handed. // PathfinderMob.leftHanded as bool
myPathfinderMob . leftHanded
Return Type:
bool
Sets whether the mob should be left-handed. // PathfinderMob.leftHanded = (value as bool);
myPathfinderMob . leftHanded = myBool;
Parameters:
value: bool
Type: bool
- Whether the mob should be left-handed.
Gets the Level
of the entity. // PathfinderMob.level as Level
Return Type:
Level
Gets the look angle of the entity. // PathfinderMob.lookAngle as Vec3 myPathfinderMob . lookAngle
Return Type:
Vec3
Gets the look angle of the entity. Returns : The look angle of the entity.
// PathfinderMob.lookAngle() as Vec3 ; myPathfinderMob . lookAngle();
Return Type:
Vec3
Makes the mob look at the given entity. // PathfinderMob.lookAt(entity as Entity , maxXRotIncrease as float, maxYRotIncrease as float); myPathfinderMob . lookAt(myEntity, myFloat, myFloat);
Parameters:
maxXRotIncrease: float
Type: float
- The maximum rotation in the X direction.
maxYRotIncrease: float
Type: float
- The maximum rotation in the Y direction.
Gets the loot table for this entity. myPathfinderMob . lootTable
Return Type:
ResourceLocation
Gets the loot table for this entity. Returns : The loot table.
myPathfinderMob . lootTable();
Return Type:
ResourceLocation
Gets the seed used when generating loot from this entity. // PathfinderMob.lootTableSeed as long
myPathfinderMob . lootTableSeed
Return Type:
long
Gets the main arm for this entity.
Return Type:
HumanoidArm
Gets the main arm for this entity. Returns : The main arm.
myPathfinderMob . mainArm();
Return Type:
HumanoidArm
Gets the main hand item for this entity. myPathfinderMob . mainHandItem
Return Type:
ItemStack
Gets the main hand item for this entity. Returns : The main hand item.
// PathfinderMob.mainHandItem() as ItemStack ; myPathfinderMob . mainHandItem();
Return Type:
ItemStack
Gets the maximum air supply of the entity. // PathfinderMob.maxAirSupply as int
myPathfinderMob . maxAirSupply
Return Type:
int
Gets the maximum air supply of the entity. Returns : The maximum air supply of the entity.
// PathfinderMob.maxAirSupply() as int;
myPathfinderMob . maxAirSupply();
Return Type:
int
Gets the maximum fall distance of the entity. // PathfinderMob.maxFallDistance as int
myPathfinderMob . maxFallDistance
Return Type:
int
Gets the maximum fall distance of the entity. Returns : The maximum fall distance of the entity.
// PathfinderMob.maxFallDistance() as int;
myPathfinderMob . maxFallDistance();
Return Type:
int
Gets the maximum head rotation speed. // PathfinderMob.maxHeadRotSpeed as int
myPathfinderMob . maxHeadRotSpeed
Return Type:
int
Gets the maximum head rotation in the X direction. // PathfinderMob.maxHeadXRot as int
myPathfinderMob . maxHeadXRot
Return Type:
int
Gets the maximum head rotation in the Y direction. // PathfinderMob.maxHeadYRot as int
myPathfinderMob . maxHeadYRot
Return Type:
int
Gets the maximum health for this entity. // PathfinderMob.maxHealth as float
myPathfinderMob . maxHealth
Return Type:
float
Gets the maximum health for this entity. Returns : The maximum health.
// PathfinderMob.maxHealth() as float;
myPathfinderMob . maxHealth();
Return Type:
float
Gets the maximum spawn cluster size. // PathfinderMob.maxSpawnClusterSize as int
myPathfinderMob . maxSpawnClusterSize
Return Type:
int
Gets the motion direction of the entity. // PathfinderMob.motionDirection as Direction myPathfinderMob . motionDirection
Return Type:
Direction
Gets the motion direction of the entity. Returns : The motion direction of the entity.
// PathfinderMob.motionDirection() as Direction ; myPathfinderMob . motionDirection();
Return Type:
Direction
Moves the entity relative to its current position. // PathfinderMob.moveRelative(amount as float, relative as Vec3 ); myPathfinderMob . moveRelative(myFloat, myVec3);
Parameters:
amount: float
Type: float
- The amount to move the entity by.
relative: Vec3
Type: Vec3
- The relative position to move the entity by. Moves the entity to the given position. // PathfinderMob.moveTo(vec as Vec3 ); myPathfinderMob . moveTo(myVec3);
Parameters:
vec: Vec3
Type: Vec3
- The position to move the entity to. Moves the entity to the given position. // 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.
Moves the entity to the given position. // PathfinderMob.moveTo(pos as BlockPos , yaw as float, pitch as float); myPathfinderMob . moveTo(myBlockPos, myFloat, myFloat);
Parameters:
yaw: float
Type: float
- The yaw to move the entity to.
pitch: float
Type: float
- The pitch to move the entity to.
Moves the entity to the given position. // 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.
Gets the name of the entity.
Return Type:
Component
Gets the name of the entity. Returns : The name of the entity.
Return Type:
Component
Gets the time since this entity last performed an action. // PathfinderMob.noActionTime as int
myPathfinderMob . noActionTime
Return Type:
int
Gets the time since this entity last performed an action. Returns : The time since this entity last performed an action.
// PathfinderMob.noActionTime() as int;
myPathfinderMob . noActionTime();
Return Type:
int
Checks if the mob has AI disabled. // PathfinderMob.noAi as bool
Return Type:
bool
Sets whether the mob should have AI disabled. // PathfinderMob.noAi = (value as bool);
myPathfinderMob . noAi = myBool;
Parameters:
value: bool
Type: bool
- Whether the mob should have AI disabled.
Gets the offhand item for this entity. myPathfinderMob . offHandItem
Return Type:
ItemStack
Gets the offhand item for this entity. Returns : The offhand item.
myPathfinderMob . offHandItem();
Return Type:
ItemStack
Checks if the entity is on the ground. // PathfinderMob.onGround as bool
Return Type:
bool
Gets the position of the entity on the ground.
Return Type:
BlockPos
Gets the position of the entity on the ground. Returns : The position of the entity on the ground.
Return Type:
BlockPos
Gets the passengers of the entity. // PathfinderMob.passengers as List< Entity > myPathfinderMob . passengers
Return Type:
List <Entity >
Gets the passengers of the entity. Returns : The passengers of the entity.
// PathfinderMob.passengers() as List< Entity >; myPathfinderMob . passengers();
Return Type:
List <Entity >
Gets the percent the entity is frozen. // PathfinderMob.percentFrozen as float
myPathfinderMob . percentFrozen
Return Type:
float
Gets the percent the entity is frozen. Returns : The percent the entity is frozen.
// PathfinderMob.percentFrozen() as float;
myPathfinderMob . percentFrozen();
Return Type:
float
Gets the piston push reaction of the entity. myPathfinderMob . pistonPushReaction
Return Type:
PushReaction
Gets the piston push reaction of the entity. Returns : The piston push reaction of the entity.
myPathfinderMob . pistonPushReaction();
Return Type:
PushReaction
Plays the ambient sound for this mob. // PathfinderMob.playAmbientSound();
myPathfinderMob . playAmbientSound();
Plays a sound at the entity's location. // PathfinderMob.playSound(sound as SoundEvent , volume as float, pitch as float); myPathfinderMob . playSound(mySoundEvent, myFloat, myFloat);
Parameters:
volume: float
Type: float
- The volume of the sound.
pitch: float
Type: float
- The pitch of the sound.
Gets the position of the entity. // PathfinderMob.position as Vec3
Return Type:
Vec3
Gets the position of the entity. Returns : The position of the entity.
// PathfinderMob.position() as Vec3 ; myPathfinderMob . position();
Return Type:
Vec3
Positions the rider of the entity. // PathfinderMob.positionRider(entity as Entity ); myPathfinderMob . positionRider(myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity to position the rider of. Gets this entity's random source. Returns : The random source for the entity.
myPathfinderMob . random();
Return Type:
RandomSource
Gets the registry name of the entity. myPathfinderMob . registryName
Return Type:
ResourceLocation
Gets the registry name of the entity. Returns : The registry name of the entity.
myPathfinderMob . registryName();
Return Type:
ResourceLocation
Releases the item that the entity is using. // PathfinderMob.releaseUsingItem();
myPathfinderMob . releaseUsingItem();
Removes all effects from this entity. Returns : True if all effects were removed, false otherwise.
// PathfinderMob.removeAllEffects() as bool;
myPathfinderMob . removeAllEffects();
Return Type:
bool
Removes an effect from this entity. Returns : True if the effect was removed, false otherwise.
// PathfinderMob.removeEffect(effect as MobEffect ) as bool; myPathfinderMob . removeEffect(myMobEffect);
Return Type:
bool
Removes an effect from this entity without causing an update. Returns : The removed effect.
myPathfinderMob . removeEffectNoUpdate(myMobEffect);
Return Type:
MobEffectInstance
Removes a tag from the entity. 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
Removes the vehicle of the entity. // PathfinderMob.removeVehicle();
myPathfinderMob . removeVehicle();
Restricts the mob to the given position and radius. // PathfinderMob.restrictTo(restrictCenter as BlockPos , restrictRadius as int); myPathfinderMob . restrictTo(myBlockPos, myInt);
Parameters:
restrictRadius: int
Type: int
- The radius to restrict the mob to.
Gets the root vehicle of the entity. // PathfinderMob.rootVehicle as Entity myPathfinderMob . rootVehicle
Return Type:
Entity
Gets the root vehicle of the entity. Returns : The root vehicle of the entity.
// PathfinderMob.rootVehicle() as Entity ; myPathfinderMob . rootVehicle();
Return Type:
Entity
Gets this entity's scale. // PathfinderMob.scale as float
Return Type:
float
Gets this entity's scale. Returns : The scale of the entity.
// PathfinderMob.scale() as float;
Return Type:
float
Sends a message to the command source. // PathfinderMob.sendMessage(component as Component ); myPathfinderMob . sendMessage(myComponent);
Sets the absorption amount for this entity. // PathfinderMob.setAbsorptionAmount(absorption as float);
myPathfinderMob . setAbsorptionAmount(myFloat);
Parameters:
absorption: float
Type: float
- The absorption amount to set.
Sets the air supply of the entity. // PathfinderMob.setAirSupply(air as int);
myPathfinderMob . setAirSupply(myInt);
Parameters:
air: int
Type: int
- The new air supply of the entity.
Sets how many arrows are currently in this entity. // PathfinderMob.setArrowCount(count as int);
myPathfinderMob . setArrowCount(myInt);
Parameters:
count: int
Type: int
- The number of arrows to set.
// PathfinderMob.setAttachmentData<T>(type as AttachmentType <T>, data as T) as T?; myPathfinderMob . setAttachmentData < T>(myAttachmentType, myT);
Return Type:
T ?
// PathfinderMob.setAttachmentData<T>(type as Supplier< AttachmentType <T>>, data as T) as T?; myPathfinderMob . setAttachmentData < T>(mySupplier, myT);
Return Type:
T ?
Sets the custom name of the entity. // PathfinderMob.setCustomName(name as Component ); myPathfinderMob . setCustomName(myComponent);
Sets the custom name visible state of the entity. // PathfinderMob.setCustomNameVisible(visible as bool);
myPathfinderMob . setCustomNameVisible(myBool);
Parameters:
visible: bool
Type: bool
- true if the custom name should be visible.
Sets the delta movement of the entity. // 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.
Sets if this entity should discard friction. // PathfinderMob.setDiscardFriction(discardFriction as bool);
myPathfinderMob . setDiscardFriction(myBool);
Parameters:
discardFriction: bool
Type: bool
- True if this entity should discard friction, false otherwise.
Sets the drop chance for the given EquipmentSlot
. // PathfinderMob.setDropChance(slot as EquipmentSlot , chance as float); myPathfinderMob . setDropChance(myEquipmentSlot, myFloat);
Parameters:
chance: float
Type: float
- The chance to drop the item.
Makes the entity glow. // PathfinderMob.setGlowingTag(glowing as bool);
myPathfinderMob . setGlowingTag(myBool);
Parameters:
glowing: bool
Type: bool
- true if the entity should be glowing.
Sets that the item in the given EquipmentSlot
should always drop when it is killed. myPathfinderMob . setGuaranteedDrop(myEquipmentSlot);
Sets the health of this entity. // PathfinderMob.setHealth(health as float);
myPathfinderMob . setHealth(myFloat);
Parameters:
health: float
Type: float
- The health to set.
Sets the invisible state of the entity. // PathfinderMob.setInvisible(invisible as bool);
myPathfinderMob . setInvisible(myBool);
Parameters:
invisible: bool
Type: bool
- true if the entity should be invisible.
Sets the invulnerable state of the entity. // PathfinderMob.setInvulnerable(invulnerable as bool);
myPathfinderMob . setInvulnerable(myBool);
Parameters:
invulnerable: bool
Type: bool
- true if the entity should be invulnerable.
Sets whether the entity is in powder snow. // PathfinderMob.setIsInPowderSnow(inPowderSnow as bool);
myPathfinderMob . setIsInPowderSnow(myBool);
Parameters:
inPowderSnow: bool
Type: bool
- Whether the entity is in powder snow.
Sets the item in the entity's hand. myPathfinderMob . setItemInHand(myInteractionHand, myItemStack);
Sets the item in a specific equipment slot. myPathfinderMob . setItemSlot(myEquipmentSlot, myItemStack);
Sets whether this entity is jumping. // PathfinderMob.setJumping(jumping as bool);
myPathfinderMob . setJumping(myBool);
Parameters:
jumping: bool
Type: bool
- True if the entity should jump, false otherwise.
Sets the last entity that hurt this entity. myPathfinderMob . setLastHurtByMob(myLivingEntity);
Sets the last entity that hurt this entity. // PathfinderMob.setLastHurtByPlayer(player as Player ); myPathfinderMob . setLastHurtByPlayer(myPlayer);
Parameters:
player: Player
Type: Player
- The player that hurt this entity. Sets the last entity that this entity hurt. // PathfinderMob.setLastHurtMob(entity as Entity ); myPathfinderMob . setLastHurtMob(myEntity);
Parameters:
entity: Entity
Type: Entity
- The entity that this entity hurt. Sets the entity that the mob is leashed to. // PathfinderMob.setLeashedTo(leashHolder as Entity , broadcastPacket as bool); myPathfinderMob . setLeashedTo(myEntity, myBool);
Parameters:
leashHolder: Entity
Type: Entity
- The entity that the mob is leashed to. broadcastPacket: bool
Type: bool
- Whether to broadcast a packet to the client.
Sets the time since this entity last performed an action. // PathfinderMob.setNoActionTime(idleTime as int);
myPathfinderMob . setNoActionTime(myInt);
Parameters:
idleTime: int
Type: int
- The time since this entity last performed an action.
Sets if the entity has no gravity. // PathfinderMob.setNoGravity(noGravity as bool);
myPathfinderMob . setNoGravity(myBool);
Parameters:
noGravity: bool
Type: bool
- The no gravity state to set the entity to.
Sets the old position and rotation of the entity. // PathfinderMob.setOldPosAndRot();
myPathfinderMob . setOldPosAndRot();
Sets if the entity is on the ground. // PathfinderMob.setOnGround(onGround as bool);
myPathfinderMob . setOnGround(myBool);
Parameters:
onGround: bool
Type: bool
- The on ground state to set the entity to.
Sets that this mob should persist in the world. // PathfinderMob.setPersistenceRequired();
myPathfinderMob . setPersistenceRequired();
Sets the portal cooldown of the entity. // PathfinderMob.setPortalCooldown();
myPathfinderMob . setPortalCooldown();
Sets the position of the entity. // PathfinderMob.setPos(position as Vec3 ); myPathfinderMob . setPos(myVec3);
Parameters:
position: Vec3
Type: Vec3
- The position to set the entity to. Sets the position of the entity. // 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.
Sets the position of the entity to the given coordinates. // 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.
Removes this entity with the given removal reason . myPathfinderMob . setRemoved(myRemovalReason);
Sets the shift key down state of the entity. // PathfinderMob.setShiftKeyDown(keyDown as bool);
myPathfinderMob . setShiftKeyDown(myBool);
Parameters:
keyDown: bool
Type: bool
- true if the shift key is down.
Sets if the entity is silent. // PathfinderMob.setSilent(silent as bool);
myPathfinderMob . setSilent(myBool);
Parameters:
silent: bool
Type: bool
- The silent state to set the entity to.
Sets the position that the entity is sleeping at. // PathfinderMob.setSleepingPos(pos as BlockPos ); myPathfinderMob . setSleepingPos(myBlockPos);
Sets the movement speed of this entity. // PathfinderMob.setSpeed(speed as float);
myPathfinderMob . setSpeed(myFloat);
Parameters:
speed: float
Type: float
- The movement speed to set.
Sets the sprinting state of the entity. // PathfinderMob.setSprinting(sprinting as bool);
myPathfinderMob . setSprinting(myBool);
Parameters:
sprinting: bool
Type: bool
- true if the entity should be sprinting.
Sets how many stingers are currently in this entity. // PathfinderMob.setStingerCount(count as int);
myPathfinderMob . setStingerCount(myInt);
Parameters:
count: int
Type: int
- The number of stingers to set.
Sets the swimming state of the entity. // PathfinderMob.setSwimming(swimming as bool);
myPathfinderMob . setSwimming(myBool);
Parameters:
swimming: bool
Type: bool
- true if the entity should be swimming.
Sets the number of ticks the entity has been frozen. // PathfinderMob.setTicksFrozen(ticks as int);
myPathfinderMob . setTicksFrozen(myInt);
Parameters:
ticks: int
Type: int
- The new number of ticks the entity has been frozen.
Checks if the entity should be saved. // PathfinderMob.shouldBeSaved as bool
myPathfinderMob . shouldBeSaved
Return Type:
bool
Checks if the entity should be saved. Returns : true if the entity should be saved.
// PathfinderMob.shouldBeSaved() as bool;
myPathfinderMob . shouldBeSaved();
Return Type:
bool
Checks if this entity should discard friction. // PathfinderMob.shouldDiscardFriction as bool
myPathfinderMob . shouldDiscardFriction
Return Type:
bool
Checks if this entity should discard friction. Returns : True if this entity should discard friction, false otherwise.
// PathfinderMob.shouldDiscardFriction() as bool;
myPathfinderMob . shouldDiscardFriction();
Return Type:
bool
Checks if the commands from this source should inform admins. // PathfinderMob.shouldInformAdmins as bool
myPathfinderMob . shouldInformAdmins
Return Type:
bool
Checks if the commands from this source should inform admins. Returns : True if the commands from this source should inform admins, false otherwise.
// PathfinderMob.shouldInformAdmins() as bool;
myPathfinderMob . shouldInformAdmins();
Return Type:
bool
Checks if the entity should show its name. // PathfinderMob.shouldShowName as bool
myPathfinderMob . shouldShowName
Return Type:
bool
Checks if the entity should show its name. Returns : true if the entity should show its name.
// PathfinderMob.shouldShowName() as bool;
myPathfinderMob . shouldShowName();
Return Type:
bool
Checks if the entity should show vehicle health. // PathfinderMob.showVehicleHealth as bool
myPathfinderMob . showVehicleHealth
Return Type:
bool
Checks if the entity should show vehicle health. Returns : true if the entity should show vehicle health.
// PathfinderMob.showVehicleHealth() as bool;
myPathfinderMob . showVehicleHealth();
Return Type:
bool
Gets the position that the entity is sleeping at. // PathfinderMob.sleepingPos as BlockPos myPathfinderMob . sleepingPos
Return Type:
BlockPos
Gets the position that the entity is sleeping at. Returns : The position that the entity is sleeping at.
// PathfinderMob.sleepingPos() as BlockPos ; myPathfinderMob . sleepingPos();
Return Type:
BlockPos
Gets the SoundSource
of the entity. Returns : The sound source of the entity.
myPathfinderMob . soundSource();
Return Type:
SoundSource
Gets the movement speed of this entity. // PathfinderMob.speed as float
Return Type:
float
Gets the movement speed of this entity. Returns : The movement speed of the entity.
// PathfinderMob.speed() as float;
Return Type:
float
Starts riding the given entity. Returns : true if the entity started riding.
// PathfinderMob.startRiding(entity as Entity ) as bool; myPathfinderMob . startRiding(myEntity);
Return Type:
bool
Starts riding the given entity. Returns : true if the entity started riding.
// PathfinderMob.startRiding(entity as Entity , force as bool) as bool; myPathfinderMob . startRiding(myEntity, myBool);
Parameters:
force: bool
Type: bool
- true if the entity should be forced to start riding.
Return Type:
bool
Starts the entity to sleep at a specific position. // PathfinderMob.startSleeping(pos as BlockPos ); myPathfinderMob . startSleeping(myBlockPos);
Starts using an item. myPathfinderMob . startUsingItem(myInteractionHand);
Gets how many stingers are currently in this entity. // PathfinderMob.stingerCount as int
myPathfinderMob . stingerCount
Return Type:
int
Gets how many stingers are currently in this entity. Returns : The stinger count.
// PathfinderMob.stingerCount() as int;
myPathfinderMob . stingerCount();
Return Type:
int
Stops riding the entity. // PathfinderMob.stopRiding();
myPathfinderMob . stopRiding();
Stops the entity from sleeping. // PathfinderMob.stopSleeping();
myPathfinderMob . stopSleeping();
Stops using an item. // PathfinderMob.stopUsingItem();
myPathfinderMob . stopUsingItem();
Gets the UUID of the entity as a string. // PathfinderMob.stringUUID as string
myPathfinderMob . stringUUID
Return Type:
string
Gets the UUID of the entity as a string. Returns : The UUID of the entity as a string.
// PathfinderMob.stringUUID() as string;
myPathfinderMob . stringUUID();
Return Type:
string
Swings the entity's main hand. myPathfinderMob . swing(myInteractionHand);
Swings the entity's main hand. myPathfinderMob . swing(myInteractionHand, myBool);
Parameters:
updateSelf: bool
Type: bool
- Whether to update the entity's self.
Gets the tags of the entity. These tags are arbitrary strings that can be attached to an entity. A single entity is limited to 1024. // PathfinderMob.tags as Set<string>
Return Type:
Set <string >
Gets the tags of the entity. 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>;
Return Type:
Set <string >
Gets the current target, or null if not targeting anything.
Return Type:
LivingEntity
Sets the target of the mob. myPathfinderMob . target = myLivingEntity;
Gets the team color of the entity. // PathfinderMob.teamColor as int
myPathfinderMob . teamColor
Return Type:
int
Gets the team color of the entity. Returns : The team color of the entity.
// PathfinderMob.teamColor() as int;
myPathfinderMob . teamColor();
Return Type:
int
Teleports the entity to the given position. // 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.
Gets the number of ticks the entity has been frozen. // PathfinderMob.ticksFrozen as int
myPathfinderMob . ticksFrozen
Return Type:
int
Gets the number of ticks the entity has been frozen. Returns : The number of ticks the entity has been frozen.
// PathfinderMob.ticksFrozen() as int;
myPathfinderMob . ticksFrozen();
Return Type:
int
Gets the number of ticks required to freeze the entity. // PathfinderMob.ticksRequiredToFreeze as int
myPathfinderMob . ticksRequiredToFreeze
Return Type:
int
Gets the number of ticks required to freeze the entity. Returns : The number of ticks required to freeze the entity.
// PathfinderMob.ticksRequiredToFreeze() as int;
myPathfinderMob . ticksRequiredToFreeze();
Return Type:
int
Gets how long the entity has been using an item. // PathfinderMob.ticksUsingItem as int
myPathfinderMob . ticksUsingItem
Return Type:
int
Gets how long the entity has been using an item. Returns : The ticks that the entity has been using an item.
// PathfinderMob.ticksUsingItem() as int;
myPathfinderMob . ticksUsingItem();
Return Type:
int
Moves this entity towards the given location. // PathfinderMob.travel(vec as Vec3 ); myPathfinderMob . travel(myVec3);
Parameters:
vec: Vec3
Type: Vec3
- The direction to move in. Turns the entity. // 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.
Removes any passengers and stops riding the current entity. // PathfinderMob.unRide();
myPathfinderMob . unRide();
Updates the custom NBT data for this Entity. // PathfinderMob.updateCustomData(data as MapData ); myPathfinderMob . updateCustomData({custom: "data" });
// PathfinderMob.updateCustomEntityTag(level as Level , player as Player , data as MapData ); myPathfinderMob . updateCustomEntityTag(myLevel, myPlayer, myMapData);
Updates the NBT data of this Entity. // PathfinderMob.updateData(data as MapData ); myPathfinderMob . updateData({key: "value" });
Gets the hand that the entity is using an item with. myPathfinderMob . usedItemHand
Return Type:
InteractionHand
Gets the hand that the entity is using an item with. Returns : The hand that the entity is using an item with.
myPathfinderMob . usedItemHand();
Return Type:
InteractionHand
Gets the item that the entity is using.
Return Type:
ItemStack
Gets the item that the entity is using. Returns : The item that the entity is using.
myPathfinderMob . useItem();
Return Type:
ItemStack
Gets the remaining ticks left of the use duration of the item that is being used. // PathfinderMob.useItemRemainingTicks as int
myPathfinderMob . useItemRemainingTicks
Return Type:
int
Gets the remaining ticks left of the use duration of the item that is being used. Returns : The remaining ticks for the item that the entity is using.
// PathfinderMob.useItemRemainingTicks() as int;
myPathfinderMob . useItemRemainingTicks();
Return Type:
int
Gets the UUID of the entity. // PathfinderMob.uuid as UUID
Return Type:
UUID
Gets the UUID of the entity. Returns : The UUID of the entity.
// PathfinderMob.uuid() as UUID;
Return Type:
UUID
Gets the vehicle of the entity. // PathfinderMob.vehicle as Entity
Return Type:
Entity
Gets the vehicle of the entity. Returns : The vehicle of the entity.
// PathfinderMob.vehicle() as Entity ; myPathfinderMob . vehicle();
Return Type:
Entity
Gets the voice pitch for this entity. // PathfinderMob.voicePitch as float
myPathfinderMob . voicePitch
Return Type:
float
Gets the voice pitch for this entity. Returns : The voice pitch.
// PathfinderMob.voicePitch() as float;
myPathfinderMob . voicePitch();
Return Type:
float
Checks if the mob wants to pick up the given item. Returns : Whether the mob wants to pick up the item.
// PathfinderMob.wantsToPickUp(stack as ItemStack ) as bool; myPathfinderMob . wantsToPickUp(myItemStack);
Return Type:
bool
Gets the x coordinate of the entity. // PathfinderMob.x as double
Return Type:
double
Gets the x coordinate of the entity. Returns : The x coordinate of the entity.
// PathfinderMob.x() as double;
Return Type:
double
Gets the y coordinate of the entity. // PathfinderMob.y as double
Return Type:
double
Gets the y coordinate of the entity. Returns : The y coordinate of the entity.
// PathfinderMob.y() as double;
Return Type:
double
Gets the z coordinate of the entity. // PathfinderMob.z as double
Return Type:
double
Gets the z coordinate of the entity. Returns : The z coordinate of the entity.
// PathfinderMob.z() as double;
Return Type:
double