Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

Animal

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.

script.zs
import crafttweaker.api.entity.type.animal.Animal;

Extends

Animal extends AgeableMob.

Implements

Animal implements the following interfaces:

Targeting,Nameable,EntityAccess,CommandSource,IAttachmentHolder

Undocumented Interfaces

EquipmentUser,Attackable,ILivingEntityExtension,SyncedDataHolder,ScoreHolder,IEntityExtension,INBTSerializable<CompoundTag>

Members

Getter
script.zs
// Animal.absorptionAmount as float
myAnimal.absorptionAmount

Return Type: float

absorptionAmount() as float
script.zs
// Animal.absorptionAmount() as float;
myAnimal.absorptionAmount();

Return Type: float

Getter
script.zs
// Animal.acceptsFailure as bool
myAnimal.acceptsFailure

Return Type: bool

acceptsFailure() as bool
script.zs
// Animal.acceptsFailure() as bool;
myAnimal.acceptsFailure();

Return Type: bool

Getter
script.zs
// Animal.acceptsSuccess as bool
myAnimal.acceptsSuccess

Return Type: bool

acceptsSuccess() as bool
script.zs
// Animal.acceptsSuccess() as bool;
myAnimal.acceptsSuccess();

Return Type: bool

Getter
script.zs
// Animal.activeEffects as Collection<MobEffectInstance>
myAnimal.activeEffects

Return Type: Collection<MobEffectInstance>

activeEffects() as Collection<MobEffectInstance>
script.zs
// Animal.activeEffects() as Collection<MobEffectInstance>;
myAnimal.activeEffects();

Return Type: Collection<MobEffectInstance>

Getter
script.zs
// Animal.activeEffectsMap as MobEffectInstance[MobEffect]
myAnimal.activeEffectsMap

Return Type: MobEffectInstance[MobEffect]

activeEffectsMap() as MobEffectInstance[MobEffect]
script.zs
// Animal.activeEffectsMap() as MobEffectInstance[MobEffect];
myAnimal.activeEffectsMap();

Return Type: MobEffectInstance[MobEffect]

addEffect(effectInstance as MobEffectInstance) as bool
script.zs
// Animal.addEffect(effectInstance as MobEffectInstance) as bool;
myAnimal.addEffect(myMobEffectInstance);

Parameters:

effectInstance Type: MobEffectInstance

Return Type: bool

addEffect(effectInstance as MobEffectInstance, entity as Entity) as bool
script.zs
// Animal.addEffect(effectInstance as MobEffectInstance, entity as Entity) as bool;
myAnimal.addEffect(myMobEffectInstance, myEntity);

Parameters:

effectInstance Type: MobEffectInstance
entity Type: Entity

Return Type: bool

addTag(tagName as string) as bool
script.zs
// Animal.addTag(tagName as string) as bool;
myAnimal.addTag(myString);

Parameters:

tagName Type: string

Return Type: bool

Getter
script.zs
// Animal.aggressive as bool
myAnimal.aggressive

Return Type: bool

Setter
script.zs
// Animal.aggressive = (value as bool);
myAnimal.aggressive = myBool;

Parameters:

value Type: bool
Getter
script.zs
// Animal.airSupply as int
myAnimal.airSupply

Return Type: int

airSupply() as int
script.zs
// Animal.airSupply() as int;
myAnimal.airSupply();

Return Type: int

Getter
script.zs
// Animal.allSlots as Iterable<ItemStack>
myAnimal.allSlots

Return Type: Iterable<ItemStack>

allSlots() as Iterable<ItemStack>
script.zs
// Animal.allSlots() as Iterable<ItemStack>;
myAnimal.allSlots();

Return Type: Iterable<ItemStack>

Getter
script.zs
// Animal.alwaysAccepts as bool
myAnimal.alwaysAccepts

Return Type: bool

alwaysAccepts() as bool
script.zs
// Animal.alwaysAccepts() as bool;
myAnimal.alwaysAccepts();

Return Type: bool

Getter
script.zs
// Animal.ambientSoundInterval as int
myAnimal.ambientSoundInterval

Return Type: int

Getter
script.zs
// Animal.armorCoverPercentage as float
myAnimal.armorCoverPercentage

Return Type: float

armorCoverPercentage() as float
script.zs
// Animal.armorCoverPercentage() as float;
myAnimal.armorCoverPercentage();

Return Type: float

Getter
script.zs
// Animal.armorSlots as Iterable<ItemStack>
myAnimal.armorSlots

Return Type: Iterable<ItemStack>

armorSlots() as Iterable<ItemStack>
script.zs
// Animal.armorSlots() as Iterable<ItemStack>;
myAnimal.armorSlots();

Return Type: Iterable<ItemStack>

Getter
script.zs
// Animal.armorValue as int
myAnimal.armorValue

Return Type: int

armorValue() as int
script.zs
// Animal.armorValue() as int;
myAnimal.armorValue();

Return Type: int

Getter
script.zs
// Animal.arrowCount as int
myAnimal.arrowCount

Return Type: int

arrowCount() as int
script.zs
// Animal.arrowCount() as int;
myAnimal.arrowCount();

Return Type: int

ate()
script.zs
// Animal.ate();
myAnimal.ate();
Getter
script.zs
// Animal.attackable as bool
myAnimal.attackable

Return Type: bool

attackable() as bool
script.zs
// Animal.attackable() as bool;
myAnimal.attackable();

Return Type: bool

Setter
script.zs
// Animal.baby = (value as bool);
myAnimal.baby = myBool;

Parameters:

value Type: bool
Getter
script.zs
// Animal.bbHeight as float
myAnimal.bbHeight

Return Type: float

bbHeight() as float
script.zs
// Animal.bbHeight() as float;
myAnimal.bbHeight();

Return Type: float

Getter
script.zs
// Animal.bbWidth as float
myAnimal.bbWidth

Return Type: float

bbWidth() as float
script.zs
// Animal.bbWidth() as float;
myAnimal.bbWidth();

Return Type: float

Getter
script.zs
// Animal.bedOrientation as Direction
myAnimal.bedOrientation

Return Type: Direction

bedOrientation() as Direction
script.zs
// Animal.bedOrientation() as Direction;
myAnimal.bedOrientation();

Return Type: Direction

Getter
script.zs
// Animal.blockPosiion as BlockPos
myAnimal.blockPosiion

Return Type: BlockPos

blockPosiion() as BlockPos
script.zs
// Animal.blockPosiion() as BlockPos;
myAnimal.blockPosiion();

Return Type: BlockPos

Getter
script.zs
// Animal.blockPosition as BlockPos
myAnimal.blockPosition

Return Type: BlockPos

blockPosition() as BlockPos
script.zs
// Animal.blockPosition() as BlockPos;
myAnimal.blockPosition();

Return Type: BlockPos

Getter
script.zs
// Animal.blockX as int
myAnimal.blockX

Return Type: int

blockX() as int
script.zs
// Animal.blockX() as int;
myAnimal.blockX();

Return Type: int

Getter
script.zs
// Animal.blockY as int
myAnimal.blockY

Return Type: int

blockY() as int
script.zs
// Animal.blockY() as int;
myAnimal.blockY();

Return Type: int

Getter
script.zs
// Animal.blockZ as int
myAnimal.blockZ

Return Type: int

blockZ() as int
script.zs
// Animal.blockZ() as int;
myAnimal.blockZ();

Return Type: int

Getter
script.zs
// Animal.boundingBox as AABB
myAnimal.boundingBox

Return Type: AABB

boundingBox() as AABB
script.zs
// Animal.boundingBox() as AABB;
myAnimal.boundingBox();

Return Type: AABB

Getter
script.zs
// Animal.boundingBoxForCulling as AABB
myAnimal.boundingBoxForCulling

Return Type: AABB

boundingBoxForCulling() as AABB
script.zs
// Animal.boundingBoxForCulling() as AABB;
myAnimal.boundingBoxForCulling();

Return Type: AABB

canAttack(target as LivingEntity) as bool
script.zs
// Animal.canAttack(target as LivingEntity) as bool;
myAnimal.canAttack(myLivingEntity);

Parameters:

target Type: LivingEntity

Return Type: bool

canBeAffected(effectInstance as MobEffectInstance) as bool
script.zs
// Animal.canBeAffected(effectInstance as MobEffectInstance) as bool;
myAnimal.canBeAffected(myMobEffectInstance);

Parameters:

effectInstance Type: MobEffectInstance

Return Type: bool

Getter
script.zs
// Animal.canBeCollidedWith as bool
myAnimal.canBeCollidedWith

Return Type: bool

canBeCollidedWith() as bool
script.zs
// Animal.canBeCollidedWith() as bool;
myAnimal.canBeCollidedWith();

Return Type: bool

canBeLeashed(leashHolder as Player) as bool
script.zs
// Animal.canBeLeashed(leashHolder as Player) as bool;
myAnimal.canBeLeashed(myPlayer);

Parameters:

leashHolder Type: Player

Return Type: bool

Getter
script.zs
// Animal.canBeSeenAsEnemy as bool
myAnimal.canBeSeenAsEnemy

Return Type: bool

canBeSeenAsEnemy() as bool
script.zs
// Animal.canBeSeenAsEnemy() as bool;
myAnimal.canBeSeenAsEnemy();

Return Type: bool

Getter
script.zs
// Animal.canBeSeenByAnyone as bool
myAnimal.canBeSeenByAnyone

Return Type: bool

canBeSeenByAnyone() as bool
script.zs
// Animal.canBeSeenByAnyone() as bool;
myAnimal.canBeSeenByAnyone();

Return Type: bool

Getter
script.zs
// Animal.canBreatheUnderwater as bool
myAnimal.canBreatheUnderwater

Return Type: bool

Getter
script.zs
// Animal.canBreatheUnderwater as bool
myAnimal.canBreatheUnderwater

Return Type: bool

canBreatheUnderwater() as bool
script.zs
// Animal.canBreatheUnderwater() as bool;
myAnimal.canBreatheUnderwater();

Return Type: bool

canBreatheUnderwater() as bool
script.zs
// Animal.canBreatheUnderwater() as bool;
myAnimal.canBreatheUnderwater();

Return Type: bool

canCollideWith(other as Entity) as bool
script.zs
// Animal.canCollideWith(other as Entity) as bool;
myAnimal.canCollideWith(myEntity);

Parameters:

other Type: Entity

Return Type: bool

Getter
script.zs
// Animal.canFAllInLove as bool
myAnimal.canFAllInLove

Return Type: bool

canFireProjectileWeapon(weapon as ProjectileWeaponItem) as bool
script.zs
// Animal.canFireProjectileWeapon(weapon as ProjectileWeaponItem) as bool;
myAnimal.canFireProjectileWeapon(myProjectileWeaponItem);

Parameters:

Return Type: bool

Getter
script.zs
// Animal.canFreeze as bool
myAnimal.canFreeze

Return Type: bool

canFreeze() as bool
script.zs
// Animal.canFreeze() as bool;
myAnimal.canFreeze();

Return Type: bool

canHoldItem(stack as ItemStack) as bool
script.zs
// Animal.canHoldItem(stack as ItemStack) as bool;
myAnimal.canHoldItem(myItemStack);

Parameters:

stack Type: ItemStack

Return Type: bool

canMate(other as Animal) as bool
script.zs
// Animal.canMate(other as Animal) as bool;
myAnimal.canMate(myAnimal);

Parameters:

other Type: Animal

Return Type: bool

Getter
script.zs
// Animal.canPickUpLoot as bool
myAnimal.canPickUpLoot

Return Type: bool

Setter
script.zs
// Animal.canPickUpLoot = (value as bool);
myAnimal.canPickUpLoot = myBool;

Parameters:

value Type: bool
canReplaceEqualItem(toReplace as ItemStack, with as ItemStack) as bool
script.zs
// Animal.canReplaceEqualItem(toReplace as ItemStack, with as ItemStack) as bool;
myAnimal.canReplaceEqualItem(myItemStack, myItemStack);

Parameters:

toReplace Type: ItemStack
with Type: ItemStack

Return Type: bool

canStandOnFluid(fluid as Fluid) as bool
script.zs
// Animal.canStandOnFluid(fluid as Fluid) as bool;
myAnimal.canStandOnFluid(myFluid);

Parameters:

fluid Type: Fluid

Return Type: bool

canTakeItem(stack as ItemStack) as bool
script.zs
// Animal.canTakeItem(stack as ItemStack) as bool;
myAnimal.canTakeItem(myItemStack);

Parameters:

stack Type: ItemStack

Return Type: bool

checkSpawnObstruction(level as LevelReader) as bool
script.zs
// Animal.checkSpawnObstruction(level as LevelReader) as bool;
myAnimal.checkSpawnObstruction(myLevelReader);

Parameters:

level Type: LevelReader

Return Type: bool

checkSpawnRules(level as LevelAccessor, spawnType as MobSpawnType) as bool
script.zs
// Animal.checkSpawnRules(level as LevelAccessor, spawnType as MobSpawnType) as bool;
myAnimal.checkSpawnRules(myLevelAccessor, myMobSpawnType);

Parameters:

spawnType Type: MobSpawnType

Return Type: bool

clearFire()
script.zs
// Animal.clearFire();
myAnimal.clearFire();
clearRestriction()
script.zs
// Animal.clearRestriction();
myAnimal.clearRestriction();
clearSleepingPos()
script.zs
// Animal.clearSleepingPos();
myAnimal.clearSleepingPos();
closerThan(other as Entity, distance as double) as bool
script.zs
// Animal.closerThan(other as Entity, distance as double) as bool;
myAnimal.closerThan(myEntity, myDouble);

Parameters:

other Type: Entity
distance Type: double

Return Type: bool

Getter
script.zs
// Animal.commandSenderWorld as Level
myAnimal.commandSenderWorld

Return Type: Level

commandSenderWorld() as Level
script.zs
// Animal.commandSenderWorld() as Level;
myAnimal.commandSenderWorld();

Return Type: Level

Getter
script.zs
// Animal.controllingPassenger as Entity
myAnimal.controllingPassenger

Return Type: Entity

controllingPassenger() as Entity
script.zs
// Animal.controllingPassenger() as Entity;
myAnimal.controllingPassenger();

Return Type: Entity

Getter
Gets the custom NBT data for this Entity.
script.zs
// Animal.customData as MapData
myAnimal.customData

Return Type: MapData

customData() as MapData
Gets the custom NBT data for this Entity.

Returns: The custom data for this Entity.

script.zs
// Animal.customData() as MapData;
myAnimal.customData();

Return Type: MapData

Getter
script.zs
// Animal.customName as Component
myAnimal.customName

Return Type: Component

Getter
script.zs
// Animal.customName as Component
myAnimal.customName

Return Type: Component

customName() as Component
script.zs
// Animal.customName() as Component;
myAnimal.customName();

Return Type: Component

customName() as Component
script.zs
// Animal.customName() as Component;
myAnimal.customName();

Return Type: Component

Getter
script.zs
// Animal.dampensVibrations as bool
myAnimal.dampensVibrations

Return Type: bool

dampensVibrations() as bool
script.zs
// Animal.dampensVibrations() as bool;
myAnimal.dampensVibrations();

Return Type: bool

Getter
Gets the NBT data of this Entity.
script.zs
// Animal.data as MapData
myAnimal.data

Return Type: MapData

data() as MapData
Gets the NBT data of this Entity.

Returns: The NBT data of this Entity.

script.zs
// Animal.data() as MapData;
myAnimal.data();

Return Type: MapData

Getter
script.zs
// Animal.deltaMovement as Vec3
myAnimal.deltaMovement

Return Type: Vec3

Setter
script.zs
// Animal.deltaMovement = (deltaMovement as Vec3);
myAnimal.deltaMovement = myVec3;

Parameters:

deltaMovement Type: Vec3
deltaMovement() as Vec3
script.zs
// Animal.deltaMovement() as Vec3;
myAnimal.deltaMovement();

Return Type: Vec3

deltaMovement(deltaMovement as Vec3)
script.zs
// Animal.deltaMovement(deltaMovement as Vec3);
myAnimal.deltaMovement(myVec3);

Parameters:

deltaMovement Type: Vec3
die(source as DamageSource)
script.zs
// Animal.die(source as DamageSource);
myAnimal.die(myDamageSource);

Parameters:

source Type: DamageSource
Getter
script.zs
// Animal.dimensionChangingDelay as int
myAnimal.dimensionChangingDelay

Return Type: int

dimensionChangingDelay() as int
script.zs
// Animal.dimensionChangingDelay() as int;
myAnimal.dimensionChangingDelay();

Return Type: int

Getter
script.zs
// Animal.direction as Direction
myAnimal.direction

Return Type: Direction

direction() as Direction
script.zs
// Animal.direction() as Direction;
myAnimal.direction();

Return Type: Direction

discard()
script.zs
// Animal.discard();
myAnimal.discard();
Getter
script.zs
// Animal.dismountsUnderwater as bool
myAnimal.dismountsUnderwater

Return Type: bool

Getter
script.zs
// Animal.displayName as Component
myAnimal.displayName

Return Type: Component

Getter
script.zs
// Animal.displayName as Component
myAnimal.displayName

Return Type: Component

displayName() as Component
script.zs
// Animal.displayName() as Component;
myAnimal.displayName();

Return Type: Component

displayName() as Component
script.zs
// Animal.displayName() as Component;
myAnimal.displayName();

Return Type: Component

distanceTo(entity as Entity) as float
script.zs
// Animal.distanceTo(entity as Entity) as float;
myAnimal.distanceTo(myEntity);

Parameters:

entity Type: Entity

Return Type: float

distanceToSqr(x as double, y as double, z as double) as double
script.zs
// Animal.distanceToSqr(x as double, y as double, z as double) as double;
myAnimal.distanceToSqr(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double

Return Type: double

distanceToSqr(entity as Entity) as double
script.zs
// Animal.distanceToSqr(entity as Entity) as double;
myAnimal.distanceToSqr(myEntity);

Parameters:

entity Type: Entity

Return Type: double

distanceToSqr(vec as Vec3) as double
script.zs
// Animal.distanceToSqr(vec as Vec3) as double;
myAnimal.distanceToSqr(myVec3);

Parameters:

vec Type: Vec3

Return Type: double

doHurtTarget(entity as Entity) as bool
script.zs
// Animal.doHurtTarget(entity as Entity) as bool;
myAnimal.doHurtTarget(myEntity);

Parameters:

entity Type: Entity

Return Type: bool

dropLeash(broadcastPacket as bool, dropLeash as bool)
script.zs
// Animal.dropLeash(broadcastPacket as bool, dropLeash as bool);
myAnimal.dropLeash(myBool, myBool);

Parameters:

broadcastPacket Type: bool
dropLeash Type: bool
eat(level as Level, stack as ItemStack) as ItemStack
script.zs
// Animal.eat(level as Level, stack as ItemStack) as ItemStack;
myAnimal.eat(myLevel, myItemStack);

Parameters:

level Type: Level
stack Type: ItemStack

Return Type: ItemStack

ejectPassengers()
script.zs
// Animal.ejectPassengers();
myAnimal.ejectPassengers();
equipItemIfPossible(stack as ItemStack) as ItemStack
script.zs
// Animal.equipItemIfPossible(stack as ItemStack) as ItemStack;
myAnimal.equipItemIfPossible(myItemStack);

Parameters:

stack Type: ItemStack

Return Type: ItemStack

Getter
script.zs
// Animal.eyeHeight as float
myAnimal.eyeHeight

Return Type: float

eyeHeight() as float
script.zs
// Animal.eyeHeight() as float;
myAnimal.eyeHeight();

Return Type: float

Getter
script.zs
// Animal.eyePosition as Vec3
myAnimal.eyePosition

Return Type: Vec3

eyePosition() as Vec3
script.zs
// Animal.eyePosition() as Vec3;
myAnimal.eyePosition();

Return Type: Vec3

Getter
script.zs
// Animal.eyeY as double
myAnimal.eyeY

Return Type: double

eyeY() as double
script.zs
// Animal.eyeY() as double;
myAnimal.eyeY();

Return Type: double

Getter
script.zs
// Animal.fallFlyingTicks as int
myAnimal.fallFlyingTicks

Return Type: int

fallFlyingTicks() as int
script.zs
// Animal.fallFlyingTicks() as int;
myAnimal.fallFlyingTicks();

Return Type: int

finalizeSpawnChildFromBreeding(level as ServerLevel, otherParent as Animal, child as AgeableMob)
script.zs
// Animal.finalizeSpawnChildFromBreeding(level as ServerLevel, otherParent as Animal, child as AgeableMob);
myAnimal.finalizeSpawnChildFromBreeding(myServerLevel, myAnimal, myAgeableMob);

Parameters:

level Type: ServerLevel
otherParent Type: Animal
child Type: AgeableMob
Getter
script.zs
// Animal.fireImmune as bool
myAnimal.fireImmune

Return Type: bool

fireImmune() as bool
script.zs
// Animal.fireImmune() as bool;
myAnimal.fireImmune();

Return Type: bool

Getter
script.zs
// Animal.fireTicks as int
myAnimal.fireTicks

Return Type: int

Setter
script.zs
// Animal.fireTicks = (ticks as int);
myAnimal.fireTicks = myInt;

Parameters:

ticks Type: int
Getter
script.zs
// Animal.firstPassenger as Entity
myAnimal.firstPassenger

Return Type: Entity

firstPassenger() as Entity
script.zs
// Animal.firstPassenger() as Entity;
myAnimal.firstPassenger();

Return Type: Entity

Getter
script.zs
// Animal.fluidJumpThreshold as double
myAnimal.fluidJumpThreshold

Return Type: double

fluidJumpThreshold() as double
script.zs
// Animal.fluidJumpThreshold() as double;
myAnimal.fluidJumpThreshold();

Return Type: double

forceAddEffect(effectInstance as MobEffectInstance, entity as Entity)
script.zs
// Animal.forceAddEffect(effectInstance as MobEffectInstance, entity as Entity);
myAnimal.forceAddEffect(myMobEffectInstance, myEntity);

Parameters:

effectInstance Type: MobEffectInstance
entity Type: Entity
Getter
script.zs
// Animal.forward as Vec3
myAnimal.forward

Return Type: Vec3

forward() as Vec3
script.zs
// Animal.forward() as Vec3;
myAnimal.forward();

Return Type: Vec3

getAttachmentData(type as AttachmentType<T>) as T
script.zs
// Animal.getAttachmentData<T>(type as AttachmentType<T>) as T;
myAnimal.getAttachmentData<T>(myAttachmentType);

Parameters:

type Type: AttachmentType<T>

Return Type: T

getAttachmentData(type as Supplier<AttachmentType<T>>) as T
script.zs
// Animal.getAttachmentData<T>(type as Supplier<AttachmentType<T>>) as T;
myAnimal.getAttachmentData<T>(mySupplier);

Parameters:

type Type: Supplier<AttachmentType<T>>

Return Type: T

getAttribute(attribute as Attribute) as AttributeInstance
script.zs
// Animal.getAttribute(attribute as Attribute) as AttributeInstance;
myAnimal.getAttribute(myAttribute);

Parameters:

attribute Type: Attribute

Return Type: AttributeInstance

getAttributeBaseValue(attribute as Attribute) as double
script.zs
// Animal.getAttributeBaseValue(attribute as Attribute) as double;
myAnimal.getAttributeBaseValue(myAttribute);

Parameters:

attribute Type: Attribute

Return Type: double

getAttributeValue(attribute as Attribute) as double
script.zs
// Animal.getAttributeValue(attribute as Attribute) as double;
myAnimal.getAttributeValue(myAttribute);

Parameters:

attribute Type: Attribute

Return Type: double

getEffect(effect as MobEffect) as MobEffectInstance
script.zs
// Animal.getEffect(effect as MobEffect) as MobEffectInstance;
myAnimal.getEffect(myMobEffect);

Parameters:

effect Type: MobEffect

Return Type: MobEffectInstance

getEyePosition(partialTicks as float) as Vec3
script.zs
// Animal.getEyePosition(partialTicks as float) as Vec3;
myAnimal.getEyePosition(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getItemBySlot(slot as EquipmentSlot) as ItemStack
script.zs
// Animal.getItemBySlot(slot as EquipmentSlot) as ItemStack;
myAnimal.getItemBySlot(myEquipmentSlot);

Parameters:

Return Type: ItemStack

getItemInHand(hand as InteractionHand) as ItemStack
script.zs
// Animal.getItemInHand(hand as InteractionHand) as ItemStack;
myAnimal.getItemInHand(myInteractionHand);

Parameters:

Return Type: ItemStack

getPosition(partialTicks as float) as Vec3
script.zs
// Animal.getPosition(partialTicks as float) as Vec3;
myAnimal.getPosition(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

Getter
script.zs
// Animal.getRestrictCenter as BlockPos
myAnimal.getRestrictCenter

Return Type: BlockPos

Getter
script.zs
// Animal.getRestrictCenter as Entity
myAnimal.getRestrictCenter

Return Type: Entity

Getter
script.zs
// Animal.getRestrictRadius as float
myAnimal.getRestrictRadius

Return Type: float

getSwimAmount(partialTicks as float) as float
script.zs
// Animal.getSwimAmount(partialTicks as float) as float;
myAnimal.getSwimAmount(myFloat);

Parameters:

partialTicks Type: float

Return Type: float

getUpVector(partialTicks as float) as Vec3
script.zs
// Animal.getUpVector(partialTicks as float) as Vec3;
myAnimal.getUpVector(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getViewVector(partialTicks as float) as Vec3
script.zs
// Animal.getViewVector(partialTicks as float) as Vec3;
myAnimal.getViewVector(myFloat);

Parameters:

partialTicks Type: float

Return Type: Vec3

getVisibilityPercent(lookingEntity as Entity) as double
script.zs
// Animal.getVisibilityPercent(lookingEntity as Entity) as double;
myAnimal.getVisibilityPercent(myEntity);

Parameters:

lookingEntity Type: Entity

Return Type: double

getX(scale as double) as double
script.zs
// Animal.getX(scale as double) as double;
myAnimal.getX(myDouble);

Parameters:

scale Type: double

Return Type: double

getY(scale as double) as double
script.zs
// Animal.getY(scale as double) as double;
myAnimal.getY(myDouble);

Parameters:

scale Type: double

Return Type: double

getZ(scale as double) as double
script.zs
// Animal.getZ(scale as double) as double;
myAnimal.getZ(myDouble);

Parameters:

scale Type: double

Return Type: double

Getter
script.zs
// Animal.handSlots as Iterable<ItemStack>
myAnimal.handSlots

Return Type: Iterable<ItemStack>

handSlots() as Iterable<ItemStack>
script.zs
// Animal.handSlots() as Iterable<ItemStack>;
myAnimal.handSlots();

Return Type: Iterable<ItemStack>

hasAttachmentData(type as AttachmentType<T>) as bool
script.zs
// Animal.hasAttachmentData<T>(type as AttachmentType<T>) as bool;
myAnimal.hasAttachmentData<T>(myAttachmentType);

Parameters:

type Type: AttachmentType<T>

Return Type: bool

hasAttachmentData(type as Supplier<AttachmentType<T>>) as bool
script.zs
// Animal.hasAttachmentData<T>(type as Supplier<AttachmentType<T>>) as bool;
myAnimal.hasAttachmentData<T>(mySupplier);

Parameters:

type Type: Supplier<AttachmentType<T>>

Return Type: bool

Getter
script.zs
// Animal.hasCustomName as bool
myAnimal.hasCustomName

Return Type: bool

Getter
script.zs
// Animal.hasCustomName as bool
myAnimal.hasCustomName

Return Type: bool

hasCustomName() as bool
script.zs
// Animal.hasCustomName() as bool;
myAnimal.hasCustomName();

Return Type: bool

hasCustomName() as bool
script.zs
// Animal.hasCustomName() as bool;
myAnimal.hasCustomName();

Return Type: bool

hasEffect(effect as MobEffect) as bool
script.zs
// Animal.hasEffect(effect as MobEffect) as bool;
myAnimal.hasEffect(myMobEffect);

Parameters:

effect Type: MobEffect

Return Type: bool

Getter
script.zs
// Animal.hasExactlyOnePlayerPassenger as bool
myAnimal.hasExactlyOnePlayerPassenger

Return Type: bool

hasExactlyOnePlayerPassenger() as bool
script.zs
// Animal.hasExactlyOnePlayerPassenger() as bool;
myAnimal.hasExactlyOnePlayerPassenger();

Return Type: bool

Getter
script.zs
// Animal.hasGlowingTag as bool
myAnimal.hasGlowingTag

Return Type: bool

hasGlowingTag() as bool
script.zs
// Animal.hasGlowingTag() as bool;
myAnimal.hasGlowingTag();

Return Type: bool

hasIndirectPassenger(entity as Entity) as bool
script.zs
// Animal.hasIndirectPassenger(entity as Entity) as bool;
myAnimal.hasIndirectPassenger(myEntity);

Parameters:

entity Type: Entity

Return Type: bool

hasItemInSlot(slot as EquipmentSlot) as bool
script.zs
// Animal.hasItemInSlot(slot as EquipmentSlot) as bool;
myAnimal.hasItemInSlot(myEquipmentSlot);

Parameters:

Return Type: bool

hasLineOfSight(entity as Entity) as bool
script.zs
// Animal.hasLineOfSight(entity as Entity) as bool;
myAnimal.hasLineOfSight(myEntity);

Parameters:

entity Type: Entity

Return Type: bool

hasPassenger(entity as Entity) as bool
script.zs
// Animal.hasPassenger(entity as Entity) as bool;
myAnimal.hasPassenger(myEntity);

Parameters:

entity Type: Entity

Return Type: bool

hasPassenger(predicate as function(t as Entity) as bool) as bool
script.zs
// Animal.hasPassenger(predicate as function(t as Entity) as bool) as bool;
myAnimal.hasPassenger(myPredicate);

Parameters:

predicate Type: function(t as Entity) as bool

Return Type: bool

Getter
script.zs
// Animal.hasRestriction as bool
myAnimal.hasRestriction

Return Type: bool

heal(amount as float)
script.zs
// Animal.heal(amount as float);
myAnimal.heal(myFloat);

Parameters:

amount Type: float
Getter
script.zs
// Animal.health as float
myAnimal.health

Return Type: float

health() as float
script.zs
// Animal.health() as float;
myAnimal.health();

Return Type: float

hurt(source as DamageSource, amount as float) as bool
script.zs
// Animal.hurt(source as DamageSource, amount as float) as bool;
myAnimal.hurt(myDamageSource, myFloat);

Parameters:

source Type: DamageSource
amount Type: float

Return Type: bool

Getter
script.zs
// Animal.id as int
myAnimal.id

Return Type: int

id() as int
script.zs
// Animal.id() as int;
myAnimal.id();

Return Type: int

Getter
script.zs
// Animal.inBlockState as BlockState
myAnimal.inBlockState

Return Type: BlockState

Getter
script.zs
// Animal.inLoveTime as int
myAnimal.inLoveTime

Return Type: int

Setter
script.zs
// Animal.inLoveTime = (inLove as int);
myAnimal.inLoveTime = myInt;

Parameters:

inLove Type: int
Getter
script.zs
// Animal.isAffectedByPotions as bool
myAnimal.isAffectedByPotions

Return Type: bool

isAffectedByPotions() as bool
script.zs
// Animal.isAffectedByPotions() as bool;
myAnimal.isAffectedByPotions();

Return Type: bool

Getter
script.zs
// Animal.isAlive as bool
myAnimal.isAlive

Return Type: bool

isAlive() as bool
script.zs
// Animal.isAlive() as bool;
myAnimal.isAlive();

Return Type: bool

Getter
script.zs
// Animal.isAlwaysTicking as bool
myAnimal.isAlwaysTicking

Return Type: bool

isAlwaysTicking() as bool
script.zs
// Animal.isAlwaysTicking() as bool;
myAnimal.isAlwaysTicking();

Return Type: bool

Getter
script.zs
// Animal.isAttackable as bool
myAnimal.isAttackable

Return Type: bool

isAttackable() as bool
script.zs
// Animal.isAttackable() as bool;
myAnimal.isAttackable();

Return Type: bool

Getter
script.zs
// Animal.isAutoSpinAttack as bool
myAnimal.isAutoSpinAttack

Return Type: bool

isAutoSpinAttack() as bool
script.zs
// Animal.isAutoSpinAttack() as bool;
myAnimal.isAutoSpinAttack();

Return Type: bool

Getter
script.zs
// Animal.isBaby as bool
myAnimal.isBaby

Return Type: bool

isBaby() as bool
script.zs
// Animal.isBaby() as bool;
myAnimal.isBaby();

Return Type: bool

Getter
script.zs
// Animal.isBlocking as bool
myAnimal.isBlocking

Return Type: bool

isBlocking() as bool
script.zs
// Animal.isBlocking() as bool;
myAnimal.isBlocking();

Return Type: bool

isColliding(pos as BlockPos, state as BlockState) as bool
script.zs
// Animal.isColliding(pos as BlockPos, state as BlockState) as bool;
myAnimal.isColliding(myBlockPos, myBlockState);

Parameters:

pos Type: BlockPos
state Type: BlockState

Return Type: bool

Getter
script.zs
// Animal.isCrouching as bool
myAnimal.isCrouching

Return Type: bool

isCrouching() as bool
script.zs
// Animal.isCrouching() as bool;
myAnimal.isCrouching();

Return Type: bool

Getter
script.zs
// Animal.isCurrentlyGlowing as bool
myAnimal.isCurrentlyGlowing

Return Type: bool

Getter
script.zs
// Animal.isCurrentlyGlowing as bool
myAnimal.isCurrentlyGlowing

Return Type: bool

isCurrentlyGlowing() as bool
script.zs
// Animal.isCurrentlyGlowing() as bool;
myAnimal.isCurrentlyGlowing();

Return Type: bool

isCurrentlyGlowing() as bool
script.zs
// Animal.isCurrentlyGlowing() as bool;
myAnimal.isCurrentlyGlowing();

Return Type: bool

Getter
script.zs
// Animal.isCustomNameVisible as bool
myAnimal.isCustomNameVisible

Return Type: bool

isCustomNameVisible() as bool
script.zs
// Animal.isCustomNameVisible() as bool;
myAnimal.isCustomNameVisible();

Return Type: bool

isDamageSourceBlocked(source as DamageSource) as bool
script.zs
// Animal.isDamageSourceBlocked(source as DamageSource) as bool;
myAnimal.isDamageSourceBlocked(myDamageSource);

Parameters:

source Type: DamageSource

Return Type: bool

Getter
script.zs
// Animal.isDeadOrDying as bool
myAnimal.isDeadOrDying

Return Type: bool

isDeadOrDying() as bool
script.zs
// Animal.isDeadOrDying() as bool;
myAnimal.isDeadOrDying();

Return Type: bool

Getter
script.zs
// Animal.isDescending as bool
myAnimal.isDescending

Return Type: bool

isDescending() as bool
script.zs
// Animal.isDescending() as bool;
myAnimal.isDescending();

Return Type: bool

Getter
script.zs
// Animal.isDiscrete as bool
myAnimal.isDiscrete

Return Type: bool

isDiscrete() as bool
script.zs
// Animal.isDiscrete() as bool;
myAnimal.isDiscrete();

Return Type: bool

Getter
script.zs
// Animal.isFallFlying as bool
myAnimal.isFallFlying

Return Type: bool

isFallFlying() as bool
script.zs
// Animal.isFallFlying() as bool;
myAnimal.isFallFlying();

Return Type: bool

isFood(stack as ItemStack) as bool
script.zs
// Animal.isFood(stack as ItemStack) as bool;
myAnimal.isFood(myItemStack);

Parameters:

stack Type: ItemStack

Return Type: bool

isFree(x as double, y as double, z as double) as bool
script.zs
// Animal.isFree(x as double, y as double, z as double) as bool;
myAnimal.isFree(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double

Return Type: bool

Getter
script.zs
// Animal.isFullyFrozen as bool
myAnimal.isFullyFrozen

Return Type: bool

isFullyFrozen() as bool
script.zs
// Animal.isFullyFrozen() as bool;
myAnimal.isFullyFrozen();

Return Type: bool

isHolding(item as Item) as bool
script.zs
// Animal.isHolding(item as Item) as bool;
myAnimal.isHolding(myItem);

Parameters:

Return Type: bool

isHolding(predicate as function(t as ItemStack) as bool) as bool
script.zs
// Animal.isHolding(predicate as function(t as ItemStack) as bool) as bool;
myAnimal.isHolding(myPredicate);

Parameters:

predicate Type: function(t as ItemStack) as bool

Return Type: bool

Getter
script.zs
// Animal.isInLava as bool
myAnimal.isInLava

Return Type: bool

isInLava() as bool
script.zs
// Animal.isInLava() as bool;
myAnimal.isInLava();

Return Type: bool

Getter
script.zs
// Animal.isInLove as bool
myAnimal.isInLove

Return Type: bool

Getter
script.zs
// Animal.isInvertedHealAndHarm as bool
myAnimal.isInvertedHealAndHarm

Return Type: bool

isInvertedHealAndHarm() as bool
script.zs
// Animal.isInvertedHealAndHarm() as bool;
myAnimal.isInvertedHealAndHarm();

Return Type: bool

Getter
script.zs
// Animal.isInvisible as bool
myAnimal.isInvisible

Return Type: bool

isInvisible() as bool
script.zs
// Animal.isInvisible() as bool;
myAnimal.isInvisible();

Return Type: bool

isInvisibleTo(player as Player) as bool
script.zs
// Animal.isInvisibleTo(player as Player) as bool;
myAnimal.isInvisibleTo(myPlayer);

Parameters:

player Type: Player

Return Type: bool

Getter
script.zs
// Animal.isInvulnerable as bool
myAnimal.isInvulnerable

Return Type: bool

isInvulnerable() as bool
script.zs
// Animal.isInvulnerable() as bool;
myAnimal.isInvulnerable();

Return Type: bool

isInvulnerableTo(source as DamageSource) as bool
script.zs
// Animal.isInvulnerableTo(source as DamageSource) as bool;
myAnimal.isInvulnerableTo(myDamageSource);

Parameters:

source Type: DamageSource

Return Type: bool

Getter
script.zs
// Animal.isInWall as bool
myAnimal.isInWall

Return Type: bool

isInWall() as bool
script.zs
// Animal.isInWall() as bool;
myAnimal.isInWall();

Return Type: bool

Getter
script.zs
// Animal.isInWater as bool
myAnimal.isInWater

Return Type: bool

isInWater() as bool
script.zs
// Animal.isInWater() as bool;
myAnimal.isInWater();

Return Type: bool

Getter
script.zs
// Animal.isInWaterOrBubble as bool
myAnimal.isInWaterOrBubble

Return Type: bool

isInWaterOrBubble() as bool
script.zs
// Animal.isInWaterOrBubble() as bool;
myAnimal.isInWaterOrBubble();

Return Type: bool

Getter
script.zs
// Animal.isInWaterOrRain as bool
myAnimal.isInWaterOrRain

Return Type: bool

isInWaterOrRain() as bool
script.zs
// Animal.isInWaterOrRain() as bool;
myAnimal.isInWaterOrRain();

Return Type: bool

Getter
script.zs
// Animal.isInWaterRainOrBubble as bool
myAnimal.isInWaterRainOrBubble

Return Type: bool

isInWaterRainOrBubble() as bool
script.zs
// Animal.isInWaterRainOrBubble() as bool;
myAnimal.isInWaterRainOrBubble();

Return Type: bool

isMaxGroupSizeReached(size as int) as bool
script.zs
// Animal.isMaxGroupSizeReached(size as int) as bool;
myAnimal.isMaxGroupSizeReached(myInt);

Parameters:

size Type: int

Return Type: bool

Getter
script.zs
// Animal.isNoGravity as bool
myAnimal.isNoGravity

Return Type: bool

isNoGravity() as bool
script.zs
// Animal.isNoGravity() as bool;
myAnimal.isNoGravity();

Return Type: bool

Getter
script.zs
// Animal.isOnFire as bool
myAnimal.isOnFire

Return Type: bool

isOnFire() as bool
script.zs
// Animal.isOnFire() as bool;
myAnimal.isOnFire();

Return Type: bool

Getter
script.zs
// Animal.isOnPortalCooldown as bool
myAnimal.isOnPortalCooldown

Return Type: bool

isOnPortalCooldown() as bool
script.zs
// Animal.isOnPortalCooldown() as bool;
myAnimal.isOnPortalCooldown();

Return Type: bool

Getter
script.zs
// Animal.isPassenger as bool
myAnimal.isPassenger

Return Type: bool

isPassenger() as bool
script.zs
// Animal.isPassenger() as bool;
myAnimal.isPassenger();

Return Type: bool

isPassengerOfSameVehicle(entity as Entity) as bool
script.zs
// Animal.isPassengerOfSameVehicle(entity as Entity) as bool;
myAnimal.isPassengerOfSameVehicle(myEntity);

Parameters:

entity Type: Entity

Return Type: bool

Getter
script.zs
// Animal.isPersistenceRequired as bool
myAnimal.isPersistenceRequired

Return Type: bool

Getter
script.zs
// Animal.isPickable as bool
myAnimal.isPickable

Return Type: bool

isPickable() as bool
script.zs
// Animal.isPickable() as bool;
myAnimal.isPickable();

Return Type: bool

Getter
script.zs
// Animal.isPushable as bool
myAnimal.isPushable

Return Type: bool

isPushable() as bool
script.zs
// Animal.isPushable() as bool;
myAnimal.isPushable();

Return Type: bool

Getter
script.zs
// Animal.isPushedByFluid as bool
myAnimal.isPushedByFluid

Return Type: bool

isPushedByFluid() as bool
script.zs
// Animal.isPushedByFluid() as bool;
myAnimal.isPushedByFluid();

Return Type: bool

Getter
script.zs
// Animal.isRemoved as bool
myAnimal.isRemoved

Return Type: bool

isRemoved() as bool
script.zs
// Animal.isRemoved() as bool;
myAnimal.isRemoved();

Return Type: bool

Getter
script.zs
// Animal.isSensitiveToWater as bool
myAnimal.isSensitiveToWater

Return Type: bool

isSensitiveToWater() as bool
script.zs
// Animal.isSensitiveToWater() as bool;
myAnimal.isSensitiveToWater();

Return Type: bool

Getter
script.zs
// Animal.isShiftKeyDown as bool
myAnimal.isShiftKeyDown

Return Type: bool

isShiftKeyDown() as bool
script.zs
// Animal.isShiftKeyDown() as bool;
myAnimal.isShiftKeyDown();

Return Type: bool

Getter
script.zs
// Animal.isSilent as bool
myAnimal.isSilent

Return Type: bool

isSilent() as bool
script.zs
// Animal.isSilent() as bool;
myAnimal.isSilent();

Return Type: bool

Getter
script.zs
// Animal.isSleeping as bool
myAnimal.isSleeping

Return Type: bool

isSleeping() as bool
script.zs
// Animal.isSleeping() as bool;
myAnimal.isSleeping();

Return Type: bool

Getter
script.zs
// Animal.isSpectator as bool
myAnimal.isSpectator

Return Type: bool

isSpectator() as bool
script.zs
// Animal.isSpectator() as bool;
myAnimal.isSpectator();

Return Type: bool

Getter
script.zs
// Animal.isSprinting as bool
myAnimal.isSprinting

Return Type: bool

isSprinting() as bool
script.zs
// Animal.isSprinting() as bool;
myAnimal.isSprinting();

Return Type: bool

Getter
script.zs
// Animal.isSteppingCarefully as bool
myAnimal.isSteppingCarefully

Return Type: bool

isSteppingCarefully() as bool
script.zs
// Animal.isSteppingCarefully() as bool;
myAnimal.isSteppingCarefully();

Return Type: bool

Getter
script.zs
// Animal.isSuppressingBounce as bool
myAnimal.isSuppressingBounce

Return Type: bool

isSuppressingBounce() as bool
script.zs
// Animal.isSuppressingBounce() as bool;
myAnimal.isSuppressingBounce();

Return Type: bool

Getter
script.zs
// Animal.isSuppressingSlidingDownLadder as bool
myAnimal.isSuppressingSlidingDownLadder

Return Type: bool

isSuppressingSlidingDownLadder() as bool
script.zs
// Animal.isSuppressingSlidingDownLadder() as bool;
myAnimal.isSuppressingSlidingDownLadder();

Return Type: bool

Getter
script.zs
// Animal.isSwimming as bool
myAnimal.isSwimming

Return Type: bool

isSwimming() as bool
script.zs
// Animal.isSwimming() as bool;
myAnimal.isSwimming();

Return Type: bool

Getter
script.zs
// Animal.isUnderWater as bool
myAnimal.isUnderWater

Return Type: bool

isUnderWater() as bool
script.zs
// Animal.isUnderWater() as bool;
myAnimal.isUnderWater();

Return Type: bool

Getter
script.zs
// Animal.isUsingItem as bool
myAnimal.isUsingItem

Return Type: bool

isUsingItem() as bool
script.zs
// Animal.isUsingItem() as bool;
myAnimal.isUsingItem();

Return Type: bool

Getter
script.zs
// Animal.isVehicle as bool
myAnimal.isVehicle

Return Type: bool

isVehicle() as bool
script.zs
// Animal.isVehicle() as bool;
myAnimal.isVehicle();

Return Type: bool

Getter
script.zs
// Animal.isVisuallyCrawling as bool
myAnimal.isVisuallyCrawling

Return Type: bool

isVisuallyCrawling() as bool
script.zs
// Animal.isVisuallyCrawling() as bool;
myAnimal.isVisuallyCrawling();

Return Type: bool

Getter
script.zs
// Animal.isVisuallySwimming as bool
myAnimal.isVisuallySwimming

Return Type: bool

Getter
script.zs
// Animal.isVisuallySwimming as bool
myAnimal.isVisuallySwimming

Return Type: bool

isVisuallySwimming() as bool
script.zs
// Animal.isVisuallySwimming() as bool;
myAnimal.isVisuallySwimming();

Return Type: bool

isVisuallySwimming() as bool
script.zs
// Animal.isVisuallySwimming() as bool;
myAnimal.isVisuallySwimming();

Return Type: bool

isWithinMeleeAttackRange(entity as LivingEntity) as bool
script.zs
// Animal.isWithinMeleeAttackRange(entity as LivingEntity) as bool;
myAnimal.isWithinMeleeAttackRange(myLivingEntity);

Parameters:

entity Type: LivingEntity

Return Type: bool

Getter
script.zs
// Animal.isWithinRestriction as bool
myAnimal.isWithinRestriction

Return Type: bool

isWithinRestriction(position as BlockPos) as bool
script.zs
// Animal.isWithinRestriction(position as BlockPos) as bool;
myAnimal.isWithinRestriction(myBlockPos);

Parameters:

position Type: BlockPos

Return Type: bool

Getter
script.zs
// Animal.jumpBoostPower as double
myAnimal.jumpBoostPower

Return Type: double

jumpBoostPower() as double
script.zs
// Animal.jumpBoostPower() as double;
myAnimal.jumpBoostPower();

Return Type: double

kill()
script.zs
// Animal.kill();
myAnimal.kill();
Getter
script.zs
// Animal.killCredit as LivingEntity
myAnimal.killCredit

Return Type: LivingEntity

killCredit() as LivingEntity
script.zs
// Animal.killCredit() as LivingEntity;
myAnimal.killCredit();

Return Type: LivingEntity

knockback(x as double, y as double, z as double)
script.zs
// Animal.knockback(x as double, y as double, z as double);
myAnimal.knockback(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double
Getter
script.zs
// Animal.lastClimbablePos as BlockPos
myAnimal.lastClimbablePos

Return Type: BlockPos

lastClimbablePos() as BlockPos
script.zs
// Animal.lastClimbablePos() as BlockPos;
myAnimal.lastClimbablePos();

Return Type: BlockPos

Getter
script.zs
// Animal.lastDamageSource as DamageSource
myAnimal.lastDamageSource

Return Type: DamageSource

lastDamageSource() as DamageSource
script.zs
// Animal.lastDamageSource() as DamageSource;
myAnimal.lastDamageSource();

Return Type: DamageSource

Getter
script.zs
// Animal.lastHurtByMob as LivingEntity
myAnimal.lastHurtByMob

Return Type: LivingEntity

lastHurtByMob() as LivingEntity
script.zs
// Animal.lastHurtByMob() as LivingEntity;
myAnimal.lastHurtByMob();

Return Type: LivingEntity

Getter
script.zs
// Animal.lastHurtByMobTimestamp as int
myAnimal.lastHurtByMobTimestamp

Return Type: int

lastHurtByMobTimestamp() as int
script.zs
// Animal.lastHurtByMobTimestamp() as int;
myAnimal.lastHurtByMobTimestamp();

Return Type: int

Getter
script.zs
// Animal.lastHurtMob as LivingEntity
myAnimal.lastHurtMob

Return Type: LivingEntity

lastHurtMob() as LivingEntity
script.zs
// Animal.lastHurtMob() as LivingEntity;
myAnimal.lastHurtMob();

Return Type: LivingEntity

Getter
script.zs
// Animal.lastHurtMobTimestamp as int
myAnimal.lastHurtMobTimestamp

Return Type: int

lastHurtMobTimestamp() as int
script.zs
// Animal.lastHurtMobTimestamp() as int;
myAnimal.lastHurtMobTimestamp();

Return Type: int

lavaHurt()
script.zs
// Animal.lavaHurt();
myAnimal.lavaHurt();
Getter
script.zs
// Animal.leashed as bool
myAnimal.leashed

Return Type: bool

Getter
script.zs
// Animal.leftHanded as bool
myAnimal.leftHanded

Return Type: bool

Setter
script.zs
// Animal.leftHanded = (value as bool);
myAnimal.leftHanded = myBool;

Parameters:

value Type: bool
Getter
script.zs
// Animal.level as Level
myAnimal.level

Return Type: Level

Getter
script.zs
// Animal.lookAngle as Vec3
myAnimal.lookAngle

Return Type: Vec3

lookAngle() as Vec3
script.zs
// Animal.lookAngle() as Vec3;
myAnimal.lookAngle();

Return Type: Vec3

lookAt(entity as Entity, maxXRotIncrease as float, maxYRotIncrease as float)
script.zs
// Animal.lookAt(entity as Entity, maxXRotIncrease as float, maxYRotIncrease as float);
myAnimal.lookAt(myEntity, myFloat, myFloat);

Parameters:

entity Type: Entity
maxXRotIncrease Type: float
maxYRotIncrease Type: float
Getter
script.zs
// Animal.lootTable as ResourceLocation
myAnimal.lootTable

Return Type: ResourceLocation

lootTable() as ResourceLocation
script.zs
// Animal.lootTable() as ResourceLocation;
myAnimal.lootTable();

Return Type: ResourceLocation

Getter
Gets the seed used when generating loot from this entity.
script.zs
// Animal.lootTableSeed as long
myAnimal.lootTableSeed

Return Type: long

Getter
script.zs
// Animal.loveCause as ServerPlayer
myAnimal.loveCause

Return Type: ServerPlayer

Getter
script.zs
// Animal.mainArm as HumanoidArm
myAnimal.mainArm

Return Type: HumanoidArm

mainArm() as HumanoidArm
script.zs
// Animal.mainArm() as HumanoidArm;
myAnimal.mainArm();

Return Type: HumanoidArm

Getter
script.zs
// Animal.mainHandItem as ItemStack
myAnimal.mainHandItem

Return Type: ItemStack

mainHandItem() as ItemStack
script.zs
// Animal.mainHandItem() as ItemStack;
myAnimal.mainHandItem();

Return Type: ItemStack

Getter
script.zs
// Animal.maxAirSupply as int
myAnimal.maxAirSupply

Return Type: int

maxAirSupply() as int
script.zs
// Animal.maxAirSupply() as int;
myAnimal.maxAirSupply();

Return Type: int

Getter
script.zs
// Animal.maxFallDistance as int
myAnimal.maxFallDistance

Return Type: int

maxFallDistance() as int
script.zs
// Animal.maxFallDistance() as int;
myAnimal.maxFallDistance();

Return Type: int

Getter
script.zs
// Animal.maxHeadRotSpeed as int
myAnimal.maxHeadRotSpeed

Return Type: int

Getter
script.zs
// Animal.maxHeadXRot as int
myAnimal.maxHeadXRot

Return Type: int

Getter
script.zs
// Animal.maxHeadYRot as int
myAnimal.maxHeadYRot

Return Type: int

Getter
script.zs
// Animal.maxHealth as float
myAnimal.maxHealth

Return Type: float

maxHealth() as float
script.zs
// Animal.maxHealth() as float;
myAnimal.maxHealth();

Return Type: float

Getter
script.zs
// Animal.maxSpawnClusterSize as int
myAnimal.maxSpawnClusterSize

Return Type: int

Getter
script.zs
// Animal.motionDirection as Direction
myAnimal.motionDirection

Return Type: Direction

motionDirection() as Direction
script.zs
// Animal.motionDirection() as Direction;
myAnimal.motionDirection();

Return Type: Direction

moveRelative(amount as float, relative as Vec3)
script.zs
// Animal.moveRelative(amount as float, relative as Vec3);
myAnimal.moveRelative(myFloat, myVec3);

Parameters:

amount Type: float
relative Type: Vec3
moveTo(vec as Vec3)
script.zs
// Animal.moveTo(vec as Vec3);
myAnimal.moveTo(myVec3);

Parameters:

vec Type: Vec3
moveTo(x as double, y as double, z as double)
script.zs
// Animal.moveTo(x as double, y as double, z as double);
myAnimal.moveTo(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double
moveTo(pos as BlockPos, yaw as float, pitch as float)
script.zs
// Animal.moveTo(pos as BlockPos, yaw as float, pitch as float);
myAnimal.moveTo(myBlockPos, myFloat, myFloat);

Parameters:

pos Type: BlockPos
yaw Type: float
pitch Type: float
moveTo(x as double, y as double, z as double, yaw as float, pitch as float)
script.zs
// Animal.moveTo(x as double, y as double, z as double, yaw as float, pitch as float);
myAnimal.moveTo(myDouble, myDouble, myDouble, myFloat, myFloat);

Parameters:

x Type: double
y Type: double
z Type: double
yaw Type: float
pitch Type: float
Getter
script.zs
// Animal.name as Component
myAnimal.name

Return Type: Component

Getter
script.zs
// Animal.name as Component
myAnimal.name

Return Type: Component

name() as Component
script.zs
// Animal.name() as Component;
myAnimal.name();

Return Type: Component

name() as Component
script.zs
// Animal.name() as Component;
myAnimal.name();

Return Type: Component

Getter
script.zs
// Animal.noActionTime as int
myAnimal.noActionTime

Return Type: int

noActionTime() as int
script.zs
// Animal.noActionTime() as int;
myAnimal.noActionTime();

Return Type: int

Getter
script.zs
// Animal.noAi as bool
myAnimal.noAi

Return Type: bool

Setter
script.zs
// Animal.noAi = (value as bool);
myAnimal.noAi = myBool;

Parameters:

value Type: bool
Getter
script.zs
// Animal.offHandItem as ItemStack
myAnimal.offHandItem

Return Type: ItemStack

offHandItem() as ItemStack
script.zs
// Animal.offHandItem() as ItemStack;
myAnimal.offHandItem();

Return Type: ItemStack

Getter
script.zs
// Animal.onGround as bool
myAnimal.onGround

Return Type: bool

Getter
script.zs
// Animal.onPos as BlockPos
myAnimal.onPos

Return Type: BlockPos

onPos() as BlockPos
script.zs
// Animal.onPos() as BlockPos;
myAnimal.onPos();

Return Type: BlockPos

Getter
script.zs
// Animal.passengers as List<Entity>
myAnimal.passengers

Return Type: List<Entity>

passengers() as List<Entity>
script.zs
// Animal.passengers() as List<Entity>;
myAnimal.passengers();

Return Type: List<Entity>

Getter
script.zs
// Animal.percentFrozen as float
myAnimal.percentFrozen

Return Type: float

percentFrozen() as float
script.zs
// Animal.percentFrozen() as float;
myAnimal.percentFrozen();

Return Type: float

Getter
script.zs
// Animal.pistonPushReaction as PushReaction
myAnimal.pistonPushReaction

Return Type: PushReaction

pistonPushReaction() as PushReaction
script.zs
// Animal.pistonPushReaction() as PushReaction;
myAnimal.pistonPushReaction();

Return Type: PushReaction

playAmbientSound()
script.zs
// Animal.playAmbientSound();
myAnimal.playAmbientSound();
playSound(sound as SoundEvent, volume as float, pitch as float)
script.zs
// Animal.playSound(sound as SoundEvent, volume as float, pitch as float);
myAnimal.playSound(mySoundEvent, myFloat, myFloat);

Parameters:

sound Type: SoundEvent
volume Type: float
pitch Type: float
Getter
script.zs
// Animal.portalWaitTime as int
myAnimal.portalWaitTime

Return Type: int

portalWaitTime() as int
script.zs
// Animal.portalWaitTime() as int;
myAnimal.portalWaitTime();

Return Type: int

Getter
script.zs
// Animal.position as Vec3
myAnimal.position

Return Type: Vec3

position() as Vec3
script.zs
// Animal.position() as Vec3;
myAnimal.position();

Return Type: Vec3

positionRider(entity as Entity)
script.zs
// Animal.positionRider(entity as Entity);
myAnimal.positionRider(myEntity);

Parameters:

entity Type: Entity
Getter
script.zs
// Animal.random as RandomSource
myAnimal.random

Return Type: RandomSource

random() as RandomSource
script.zs
// Animal.random() as RandomSource;
myAnimal.random();

Return Type: RandomSource

Getter
script.zs
// Animal.registryName as ResourceLocation
myAnimal.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// Animal.registryName() as ResourceLocation;
myAnimal.registryName();

Return Type: ResourceLocation

releaseUsingItem()
script.zs
// Animal.releaseUsingItem();
myAnimal.releaseUsingItem();
removeAllEffects() as bool
script.zs
// Animal.removeAllEffects() as bool;
myAnimal.removeAllEffects();

Return Type: bool

removeEffect(effect as MobEffect) as bool
script.zs
// Animal.removeEffect(effect as MobEffect) as bool;
myAnimal.removeEffect(myMobEffect);

Parameters:

effect Type: MobEffect

Return Type: bool

removeEffectNoUpdate(effect as MobEffect) as MobEffectInstance
script.zs
// Animal.removeEffectNoUpdate(effect as MobEffect) as MobEffectInstance;
myAnimal.removeEffectNoUpdate(myMobEffect);

Parameters:

effect Type: MobEffect

Return Type: MobEffectInstance

removeTag(tagName as string) as bool
script.zs
// Animal.removeTag(tagName as string) as bool;
myAnimal.removeTag(myString);

Parameters:

tagName Type: string

Return Type: bool

removeVehicle()
script.zs
// Animal.removeVehicle();
myAnimal.removeVehicle();
resetLove()
script.zs
// Animal.resetLove();
myAnimal.resetLove();
restrictTo(restrictCenter as BlockPos, restrictRadius as int)
script.zs
// Animal.restrictTo(restrictCenter as BlockPos, restrictRadius as int);
myAnimal.restrictTo(myBlockPos, myInt);

Parameters:

restrictCenter Type: BlockPos
restrictRadius Type: int
Getter
script.zs
// Animal.rootVehicle as Entity
myAnimal.rootVehicle

Return Type: Entity

rootVehicle() as Entity
script.zs
// Animal.rootVehicle() as Entity;
myAnimal.rootVehicle();

Return Type: Entity

Getter
script.zs
// Animal.scale as float
myAnimal.scale

Return Type: float

scale() as float
script.zs
// Animal.scale() as float;
myAnimal.scale();

Return Type: float

sendMessage(component as Component)
script.zs
// Animal.sendMessage(component as Component);
myAnimal.sendMessage(myComponent);

Parameters:

component Type: Component
setAbsorptionAmount(absorption as float)
script.zs
// Animal.setAbsorptionAmount(absorption as float);
myAnimal.setAbsorptionAmount(myFloat);

Parameters:

absorption Type: float
setAirSupply(air as int)
script.zs
// Animal.setAirSupply(air as int);
myAnimal.setAirSupply(myInt);

Parameters:

air Type: int
setArrowCount(count as int)
script.zs
// Animal.setArrowCount(count as int);
myAnimal.setArrowCount(myInt);

Parameters:

count Type: int
setAttachmentData(type as AttachmentType<T>, data as T) as T?
script.zs
// Animal.setAttachmentData<T>(type as AttachmentType<T>, data as T) as T?;
myAnimal.setAttachmentData<T>(myAttachmentType, myT);

Parameters:

type Type: AttachmentType<T>
data Type: T

Return Type: T?

setAttachmentData(type as Supplier<AttachmentType<T>>, data as T) as T?
script.zs
// Animal.setAttachmentData<T>(type as Supplier<AttachmentType<T>>, data as T) as T?;
myAnimal.setAttachmentData<T>(mySupplier, myT);

Parameters:

type Type: Supplier<AttachmentType<T>>
data Type: T

Return Type: T?

setCustomName(name as Component)
script.zs
// Animal.setCustomName(name as Component);
myAnimal.setCustomName(myComponent);

Parameters:

name Type: Component
setCustomNameVisible(visible as bool)
script.zs
// Animal.setCustomNameVisible(visible as bool);
myAnimal.setCustomNameVisible(myBool);

Parameters:

visible Type: bool
setDeltaMovement(xDelta as double, yDelta as double, zDelta as double)
script.zs
// Animal.setDeltaMovement(xDelta as double, yDelta as double, zDelta as double);
myAnimal.setDeltaMovement(myDouble, myDouble, myDouble);

Parameters:

xDelta Type: double
yDelta Type: double
zDelta Type: double
setDiscardFriction(discardFriction as bool)
script.zs
// Animal.setDiscardFriction(discardFriction as bool);
myAnimal.setDiscardFriction(myBool);

Parameters:

discardFriction Type: bool
setDropChance(slot as EquipmentSlot, chance as float)
script.zs
// Animal.setDropChance(slot as EquipmentSlot, chance as float);
myAnimal.setDropChance(myEquipmentSlot, myFloat);

Parameters:

chance Type: float
setGlowingTag(glowing as bool)
script.zs
// Animal.setGlowingTag(glowing as bool);
myAnimal.setGlowingTag(myBool);

Parameters:

glowing Type: bool
setGuaranteedDrop(slot as EquipmentSlot)
script.zs
// Animal.setGuaranteedDrop(slot as EquipmentSlot);
myAnimal.setGuaranteedDrop(myEquipmentSlot);

Parameters:

setHealth(health as float)
script.zs
// Animal.setHealth(health as float);
myAnimal.setHealth(myFloat);

Parameters:

health Type: float
setInLove(loveCause as Player = null)
script.zs
// Animal.setInLove(loveCause as Player = null);
myAnimal.setInLove(myPlayer);

Parameters:

loveCause (optional) Type: Player

Default Value: null

setInvisible(invisible as bool)
script.zs
// Animal.setInvisible(invisible as bool);
myAnimal.setInvisible(myBool);

Parameters:

invisible Type: bool
setInvulnerable(invulnerable as bool)
script.zs
// Animal.setInvulnerable(invulnerable as bool);
myAnimal.setInvulnerable(myBool);

Parameters:

invulnerable Type: bool
setIsInPowderSnow(inPowderSnow as bool)
script.zs
// Animal.setIsInPowderSnow(inPowderSnow as bool);
myAnimal.setIsInPowderSnow(myBool);

Parameters:

inPowderSnow Type: bool
setItemInHand(hand as InteractionHand, stack as ItemStack)
script.zs
// Animal.setItemInHand(hand as InteractionHand, stack as ItemStack);
myAnimal.setItemInHand(myInteractionHand, myItemStack);

Parameters:

setItemSlot(slot as EquipmentSlot, stack as ItemStack)
script.zs
// Animal.setItemSlot(slot as EquipmentSlot, stack as ItemStack);
myAnimal.setItemSlot(myEquipmentSlot, myItemStack);

Parameters:

stack Type: ItemStack
setJumping(jumping as bool)
script.zs
// Animal.setJumping(jumping as bool);
myAnimal.setJumping(myBool);

Parameters:

jumping Type: bool
setLastHurtByMob(entity as LivingEntity)
script.zs
// Animal.setLastHurtByMob(entity as LivingEntity);
myAnimal.setLastHurtByMob(myLivingEntity);

Parameters:

entity Type: LivingEntity
setLastHurtByPlayer(player as Player)
script.zs
// Animal.setLastHurtByPlayer(player as Player);
myAnimal.setLastHurtByPlayer(myPlayer);

Parameters:

player Type: Player
setLastHurtMob(entity as Entity)
script.zs
// Animal.setLastHurtMob(entity as Entity);
myAnimal.setLastHurtMob(myEntity);

Parameters:

entity Type: Entity
setLeashedTo(leashHolder as Entity, broadcastPacket as bool)
script.zs
// Animal.setLeashedTo(leashHolder as Entity, broadcastPacket as bool);
myAnimal.setLeashedTo(myEntity, myBool);

Parameters:

leashHolder Type: Entity
broadcastPacket Type: bool
setNoActionTime(idleTime as int)
script.zs
// Animal.setNoActionTime(idleTime as int);
myAnimal.setNoActionTime(myInt);

Parameters:

idleTime Type: int
setNoGravity(noGravity as bool)
script.zs
// Animal.setNoGravity(noGravity as bool);
myAnimal.setNoGravity(myBool);

Parameters:

noGravity Type: bool
setOldPosAndRot()
script.zs
// Animal.setOldPosAndRot();
myAnimal.setOldPosAndRot();
setOnGround(onGround as bool)
script.zs
// Animal.setOnGround(onGround as bool);
myAnimal.setOnGround(myBool);

Parameters:

onGround Type: bool
setPersistenceRequired()
script.zs
// Animal.setPersistenceRequired();
myAnimal.setPersistenceRequired();
setPortalCooldown()
script.zs
// Animal.setPortalCooldown();
myAnimal.setPortalCooldown();
setPos(position as Vec3)
script.zs
// Animal.setPos(position as Vec3);
myAnimal.setPos(myVec3);

Parameters:

position Type: Vec3
setPos(x as double, y as double, z as double)
script.zs
// Animal.setPos(x as double, y as double, z as double);
myAnimal.setPos(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double
setPosRaw(x as double, y as double, z as double)
script.zs
// Animal.setPosRaw(x as double, y as double, z as double);
myAnimal.setPosRaw(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double
setRemoved(var1 as RemovalReason)
script.zs
// Animal.setRemoved(var1 as RemovalReason);
myAnimal.setRemoved(myRemovalReason);

Parameters:

setShiftKeyDown(keyDown as bool)
script.zs
// Animal.setShiftKeyDown(keyDown as bool);
myAnimal.setShiftKeyDown(myBool);

Parameters:

keyDown Type: bool
setSilent(silent as bool)
script.zs
// Animal.setSilent(silent as bool);
myAnimal.setSilent(myBool);

Parameters:

silent Type: bool
setSleepingPos(pos as BlockPos)
script.zs
// Animal.setSleepingPos(pos as BlockPos);
myAnimal.setSleepingPos(myBlockPos);

Parameters:

pos Type: BlockPos
setSpeed(speed as float)
script.zs
// Animal.setSpeed(speed as float);
myAnimal.setSpeed(myFloat);

Parameters:

speed Type: float
setSprinting(sprinting as bool)
script.zs
// Animal.setSprinting(sprinting as bool);
myAnimal.setSprinting(myBool);

Parameters:

sprinting Type: bool
setStingerCount(count as int)
script.zs
// Animal.setStingerCount(count as int);
myAnimal.setStingerCount(myInt);

Parameters:

count Type: int
setSwimming(swimming as bool)
script.zs
// Animal.setSwimming(swimming as bool);
myAnimal.setSwimming(myBool);

Parameters:

swimming Type: bool
setTicksFrozen(ticks as int)
script.zs
// Animal.setTicksFrozen(ticks as int);
myAnimal.setTicksFrozen(myInt);

Parameters:

ticks Type: int
Getter
script.zs
// Animal.shouldBeSaved as bool
myAnimal.shouldBeSaved

Return Type: bool

shouldBeSaved() as bool
script.zs
// Animal.shouldBeSaved() as bool;
myAnimal.shouldBeSaved();

Return Type: bool

Getter
script.zs
// Animal.shouldDiscardFriction as bool
myAnimal.shouldDiscardFriction

Return Type: bool

shouldDiscardFriction() as bool
script.zs
// Animal.shouldDiscardFriction() as bool;
myAnimal.shouldDiscardFriction();

Return Type: bool

Getter
script.zs
// Animal.shouldInformAdmins as bool
myAnimal.shouldInformAdmins

Return Type: bool

shouldInformAdmins() as bool
script.zs
// Animal.shouldInformAdmins() as bool;
myAnimal.shouldInformAdmins();

Return Type: bool

Getter
script.zs
// Animal.shouldShowName as bool
myAnimal.shouldShowName

Return Type: bool

shouldShowName() as bool
script.zs
// Animal.shouldShowName() as bool;
myAnimal.shouldShowName();

Return Type: bool

Getter
script.zs
// Animal.showVehicleHealth as bool
myAnimal.showVehicleHealth

Return Type: bool

showVehicleHealth() as bool
script.zs
// Animal.showVehicleHealth() as bool;
myAnimal.showVehicleHealth();

Return Type: bool

Getter
script.zs
// Animal.sleepingPos as BlockPos
myAnimal.sleepingPos

Return Type: BlockPos

sleepingPos() as BlockPos
script.zs
// Animal.sleepingPos() as BlockPos;
myAnimal.sleepingPos();

Return Type: BlockPos

Getter
script.zs
// Animal.soundSource as SoundSource
myAnimal.soundSource

Return Type: SoundSource

soundSource() as SoundSource
script.zs
// Animal.soundSource() as SoundSource;
myAnimal.soundSource();

Return Type: SoundSource

spawnChildFromBreeding(level as ServerLevel, otherParent as Animal)
script.zs
// Animal.spawnChildFromBreeding(level as ServerLevel, otherParent as Animal);
myAnimal.spawnChildFromBreeding(myServerLevel, myAnimal);

Parameters:

level Type: ServerLevel
otherParent Type: Animal
Getter
script.zs
// Animal.speed as float
myAnimal.speed

Return Type: float

speed() as float
script.zs
// Animal.speed() as float;
myAnimal.speed();

Return Type: float

startRiding(entity as Entity) as bool
script.zs
// Animal.startRiding(entity as Entity) as bool;
myAnimal.startRiding(myEntity);

Parameters:

entity Type: Entity

Return Type: bool

startRiding(entity as Entity, force as bool) as bool
script.zs
// Animal.startRiding(entity as Entity, force as bool) as bool;
myAnimal.startRiding(myEntity, myBool);

Parameters:

entity Type: Entity
force Type: bool

Return Type: bool

startSleeping(pos as BlockPos)
script.zs
// Animal.startSleeping(pos as BlockPos);
myAnimal.startSleeping(myBlockPos);

Parameters:

pos Type: BlockPos
startUsingItem(param0 as InteractionHand)
script.zs
// Animal.startUsingItem(param0 as InteractionHand);
myAnimal.startUsingItem(myInteractionHand);

Parameters:

Getter
script.zs
// Animal.stingerCount as int
myAnimal.stingerCount

Return Type: int

stingerCount() as int
script.zs
// Animal.stingerCount() as int;
myAnimal.stingerCount();

Return Type: int

stopRiding()
script.zs
// Animal.stopRiding();
myAnimal.stopRiding();
stopSleeping()
script.zs
// Animal.stopSleeping();
myAnimal.stopSleeping();
stopUsingItem()
script.zs
// Animal.stopUsingItem();
myAnimal.stopUsingItem();
Getter
script.zs
// Animal.stringUUID as string
myAnimal.stringUUID

Return Type: string

stringUUID() as string
script.zs
// Animal.stringUUID() as string;
myAnimal.stringUUID();

Return Type: string

swing(hand as InteractionHand)
script.zs
// Animal.swing(hand as InteractionHand);
myAnimal.swing(myInteractionHand);

Parameters:

swing(hand as InteractionHand, updateSelf as bool)
script.zs
// Animal.swing(hand as InteractionHand, updateSelf as bool);
myAnimal.swing(myInteractionHand, myBool);

Parameters:

updateSelf Type: bool
Getter
script.zs
// Animal.tags as Set<string>
myAnimal.tags

Return Type: Set<string>

tags() as Set<string>
script.zs
// Animal.tags() as Set<string>;
myAnimal.tags();

Return Type: Set<string>

Getter
Gets the current target, or null if not targeting anything.
script.zs
// Animal.target as LivingEntity
myAnimal.target

Return Type: LivingEntity

Setter
script.zs
// Animal.target = (target as LivingEntity);
myAnimal.target = myLivingEntity;

Parameters:

target Type: LivingEntity
Getter
script.zs
// Animal.teamColor as int
myAnimal.teamColor

Return Type: int

teamColor() as int
script.zs
// Animal.teamColor() as int;
myAnimal.teamColor();

Return Type: int

teleportTo(x as double, y as double, z as double)
script.zs
// Animal.teleportTo(x as double, y as double, z as double);
myAnimal.teleportTo(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double
Getter
script.zs
// Animal.ticksFrozen as int
myAnimal.ticksFrozen

Return Type: int

ticksFrozen() as int
script.zs
// Animal.ticksFrozen() as int;
myAnimal.ticksFrozen();

Return Type: int

Getter
script.zs
// Animal.ticksRequiredToFreeze as int
myAnimal.ticksRequiredToFreeze

Return Type: int

ticksRequiredToFreeze() as int
script.zs
// Animal.ticksRequiredToFreeze() as int;
myAnimal.ticksRequiredToFreeze();

Return Type: int

Getter
script.zs
// Animal.ticksUsingItem as int
myAnimal.ticksUsingItem

Return Type: int

ticksUsingItem() as int
script.zs
// Animal.ticksUsingItem() as int;
myAnimal.ticksUsingItem();

Return Type: int

travel(vec as Vec3)
script.zs
// Animal.travel(vec as Vec3);
myAnimal.travel(myVec3);

Parameters:

vec Type: Vec3
turn(yaw as double, pitch as double)
script.zs
// Animal.turn(yaw as double, pitch as double);
myAnimal.turn(myDouble, myDouble);

Parameters:

yaw Type: double
pitch Type: double
Getter
script.zs
// Animal.type as EntityType<Entity>
myAnimal.type

Return Type: EntityType<Entity>

type() as EntityType<Entity>
script.zs
// Animal.type() as EntityType<Entity>;
myAnimal.type();

Return Type: EntityType<Entity>

unRide()
script.zs
// Animal.unRide();
myAnimal.unRide();
updateCustomData(data as MapData)
Updates the custom NBT data for this Entity.
script.zs
// Animal.updateCustomData(data as MapData);
myAnimal.updateCustomData({custom: "data"});

Parameters:

data Type: MapData - The custom data to store.
updateCustomEntityTag(level as Level, player as Player, data as MapData)
script.zs
// Animal.updateCustomEntityTag(level as Level, player as Player, data as MapData);
myAnimal.updateCustomEntityTag(myLevel, myPlayer, myMapData);

Parameters:

level Type: Level
player Type: Player
data Type: MapData
updateData(data as MapData)
Updates the NBT data of this Entity.
script.zs
// Animal.updateData(data as MapData);
myAnimal.updateData({key: "value"});

Parameters:

data Type: MapData - The new Data for this Entity
Getter
script.zs
// Animal.usedItemHand as InteractionHand
myAnimal.usedItemHand

Return Type: InteractionHand

usedItemHand() as InteractionHand
script.zs
// Animal.usedItemHand() as InteractionHand;
myAnimal.usedItemHand();

Return Type: InteractionHand

Getter
script.zs
// Animal.useItem as ItemStack
myAnimal.useItem

Return Type: ItemStack

useItem() as ItemStack
script.zs
// Animal.useItem() as ItemStack;
myAnimal.useItem();

Return Type: ItemStack

Getter
script.zs
// Animal.useItemRemainingTicks as int
myAnimal.useItemRemainingTicks

Return Type: int

useItemRemainingTicks() as int
script.zs
// Animal.useItemRemainingTicks() as int;
myAnimal.useItemRemainingTicks();

Return Type: int

Getter
script.zs
// Animal.uuid as UUID
myAnimal.uuid

Return Type: UUID

uuid() as UUID
script.zs
// Animal.uuid() as UUID;
myAnimal.uuid();

Return Type: UUID

Getter
script.zs
// Animal.vehicle as Entity
myAnimal.vehicle

Return Type: Entity

vehicle() as Entity
script.zs
// Animal.vehicle() as Entity;
myAnimal.vehicle();

Return Type: Entity

Getter
script.zs
// Animal.voicePitch as float
myAnimal.voicePitch

Return Type: float

voicePitch() as float
script.zs
// Animal.voicePitch() as float;
myAnimal.voicePitch();

Return Type: float

wantsToPickUp(stack as ItemStack) as bool
script.zs
// Animal.wantsToPickUp(stack as ItemStack) as bool;
myAnimal.wantsToPickUp(myItemStack);

Parameters:

stack Type: ItemStack

Return Type: bool

Getter
script.zs
// Animal.x as double
myAnimal.x

Return Type: double

x() as double
script.zs
// Animal.x() as double;
myAnimal.x();

Return Type: double

Getter
script.zs
// Animal.y as double
myAnimal.y

Return Type: double

y() as double
script.zs
// Animal.y() as double;
myAnimal.y();

Return Type: double

Getter
script.zs
// Animal.z as double
myAnimal.z

Return Type: double

z() as double
script.zs
// Animal.z() as double;
myAnimal.z();

Return Type: double