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