Uses of Class
net.minecraft.entity.mob.MobEntity
Packages that use MobEntity
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
The basic AI system for Minecraft living entities.
-
Uses of MobEntity in net.minecraft.client.render.entity
Classes in net.minecraft.client.render.entity with type parameters of type MobEntityModifier and TypeClassDescriptionclass
BipedEntityRenderer<T extends MobEntity,
M extends BipedEntityModel<T>> class
MobEntityRenderer<T extends MobEntity,
M extends EntityModel<T>> Methods in net.minecraft.client.render.entity that return types with arguments of type MobEntityModifier and TypeMethodDescriptionprivate static PiglinEntityModel
<MobEntity> PiglinEntityRenderer.getPiglinModel
(EntityModelLoader modelLoader, EntityModelLayer layer, boolean zombie) Methods in net.minecraft.client.render.entity with parameters of type MobEntityModifier and TypeMethodDescriptionPiglinEntityRenderer.getTexture
(MobEntity mobEntity) protected boolean
-
Uses of MobEntity in net.minecraft.client.render.entity.feature
Classes in net.minecraft.client.render.entity.feature with type parameters of type MobEntityModifier and TypeClassDescriptionclass
SkeletonOverlayFeatureRenderer<T extends MobEntity & RangedAttackMob,
M extends EntityModel<T>> -
Uses of MobEntity in net.minecraft.client.render.entity.model
Classes in net.minecraft.client.render.entity.model with type parameters of type MobEntityModifier and TypeClassDescriptionclass
HoglinEntityModel<T extends MobEntity & Hoglin>
Represents the model of a hoglin-like entity.class
PiglinEntityModel<T extends MobEntity>
Represents the model of a piglin-like entity.class
SkeletonEntityModel<T extends MobEntity & RangedAttackMob>
Methods in net.minecraft.client.render.entity.model with type parameters of type MobEntityModifier and TypeMethodDescriptionstatic <T extends MobEntity>
voidCrossbowPosing.meleeAttack
(ModelPart leftArm, ModelPart rightArm, T actor, float swingProgress, float animationProgress) -
Uses of MobEntity in net.minecraft.entity
Methods in net.minecraft.entity with type parameters of type MobEntityModifier and TypeMethodDescriptionprivate static <T extends MobEntity>
voidSpawnRestriction.register
(EntityType<T> type, SpawnLocation location, Heightmap.Type heightmapType, SpawnRestriction.SpawnPredicate<T> predicate) LargeEntitySpawnHelper.trySpawnAt
(EntityType<T> entityType, SpawnReason reason, ServerWorld world, BlockPos pos, int tries, int horizontalRange, int verticalRange, LargeEntitySpawnHelper.Requirements requirements) Methods in net.minecraft.entity with parameters of type MobEntityModifier and TypeMethodDescriptionstatic void
Bucketable.copyDataFromNbt
(MobEntity entity, NbtCompound nbt) Deprecated.static void
Bucketable.copyDataToStack
(MobEntity entity, ItemStack stack) Deprecated.static void
InventoryOwner.pickUpItem
(MobEntity entity, InventoryOwner inventoryOwner, ItemEntity item) -
Uses of MobEntity in net.minecraft.entity.ai
Methods in net.minecraft.entity.ai with parameters of type MobEntityModifier and TypeMethodDescriptionstatic boolean
NavigationConditions.hasMobNavigation
(MobEntity entity) -
Uses of MobEntity in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain with type parameters of type MobEntityModifier and TypeFieldDescriptionstatic final MemoryModuleType
<MobEntity> MemoryModuleType.NEAREST_VISIBLE_NEMESIS
-
Uses of MobEntity in net.minecraft.entity.ai.brain.sensor
Methods in net.minecraft.entity.ai.brain.sensor with parameters of type MobEntityModifier and TypeMethodDescriptionprotected void
NearestBedSensor.sense
(ServerWorld serverWorld, MobEntity mobEntity) protected void
NearestItemsSensor.sense
(ServerWorld serverWorld, MobEntity mobEntity) -
Uses of MobEntity in net.minecraft.entity.ai.brain.task
Classes in net.minecraft.entity.ai.brain.task with type parameters of type MobEntityModifier and TypeClassDescriptionclass
BiasedLongJumpTask<E extends MobEntity>
class
CrossbowAttackTask<E extends MobEntity & CrossbowUser,
T extends LivingEntity> class
LongJumpTask<E extends MobEntity>
Methods in net.minecraft.entity.ai.brain.task with type parameters of type MobEntityModifier and TypeMethodDescriptionForgetAttackTargetTask.create()
ForgetAttackTargetTask.create
(BiConsumer<E, LivingEntity> forgetCallback) ForgetAttackTargetTask.create
(Predicate<LivingEntity> alternativeCondition) ForgetAttackTargetTask.create
(Predicate<LivingEntity> alternativeCondition, BiConsumer<E, LivingEntity> forgetCallback, boolean shouldForgetIfTargetUnreachable) UpdateAttackTargetTask.create
(Function<E, Optional<? extends LivingEntity>> targetGetter) UpdateAttackTargetTask.create
(Predicate<E> startCondition, Function<E, Optional<? extends LivingEntity>> targetGetter) static <E extends MobEntity>
SingleTickTask<E> WalkTowardsPosTask.create
(MemoryModuleType<BlockPos> posModule, int completionRange, float speed) static <E extends MobEntity>
booleanLongJumpTask.shouldJumpTo
(E entity, BlockPos pos) Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type MobEntityModifier and TypeMethodDescriptionstatic SingleTickTask
<MobEntity> AttackTask.create
(int distance, float forwardMovement) static SingleTickTask
<MobEntity> MeleeAttackTask.create
(int cooldown) RangedApproachTask.create
(float speed) RangedApproachTask.create
(Function<LivingEntity, Float> speed) Methods in net.minecraft.entity.ai.brain.task with parameters of type MobEntityModifier and TypeMethodDescriptionFindPointOfInterestTask.findPathToPoi
(MobEntity entity, Set<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>, BlockPos>> pois) protected void
JumpInBedTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LeapingChargeTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LookAroundTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MoveToTargetTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) private static BlockPos
LongJumpTask.getJumpingVelocity
(MobEntity entity, Vec3d targetPos) JumpInBedTask.getNearestBed
(MobEntity mob) private boolean
MoveToTargetTask.hasFinishedPath
(MobEntity entity, WalkTarget walkTarget, long time) private boolean
MoveToTargetTask.hasReached
(MobEntity entity, WalkTarget walkTarget) private boolean
JumpInBedTask.isAboveBed
(ServerWorld world, MobEntity mob) private boolean
JumpInBedTask.isBedGoneTooLong
(ServerWorld world, MobEntity mob) private boolean
JumpInBedTask.isDoneJumping
(ServerWorld world, MobEntity mob) private static boolean
MeleeAttackTask.isHoldingUsableRangedWeapon
(MobEntity mob) private boolean
JumpInBedTask.isOnBed
(ServerWorld world, MobEntity mob) static boolean
LookTargetUtil.isTargetWithinAttackRange
(MobEntity mob, LivingEntity target, int rangedWeaponReachReduction) static boolean
StayAboveWaterTask.isUnderwater
(MobEntity entity) protected void
JumpInBedTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LookAroundTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MoveToTargetTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
StayAboveWaterTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
JumpInBedTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LeapingChargeTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MoveToTargetTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
RandomLookAroundTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) private void
CrossbowAttackTask.setLookTarget
(MobEntity entity, LivingEntity target) private void
JumpInBedTask.setWalkTarget
(MobEntity mob, BlockPos pos) protected boolean
JumpInBedTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
LeapingChargeTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
LongJumpTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
LookAroundTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
MoveToTargetTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
StayAboveWaterTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
JumpInBedTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
LongJumpTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
MoveToTargetTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
StayAboveWaterTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) private boolean
JumpInBedTask.shouldStartJumping
(ServerWorld world, MobEntity mob) -
Uses of MobEntity in net.minecraft.entity.ai.control
Fields in net.minecraft.entity.ai.control declared as MobEntityModifier and TypeFieldDescriptionprivate final MobEntity
BodyControl.entity
private final MobEntity
JumpControl.entity
protected final MobEntity
LookControl.entity
protected final MobEntity
MoveControl.entity
Constructors in net.minecraft.entity.ai.control with parameters of type MobEntityModifierConstructorDescriptionAquaticMoveControl
(MobEntity entity, int pitchChange, int yawChange, float speedInWater, float speedInAir, boolean buoyant) BodyControl
(MobEntity entity) FlightMoveControl
(MobEntity entity, int maxPitchChange, boolean noGravity) JumpControl
(MobEntity entity) LookControl
(MobEntity entity) MoveControl
(MobEntity entity) YawAdjustingLookControl
(MobEntity entity, int yawAdjustThreshold) -
Uses of MobEntity in net.minecraft.entity.ai.goal
Classes in net.minecraft.entity.ai.goal with type parameters of type MobEntityModifier and TypeClassDescriptionclass
HoldInHandsGoal<T extends MobEntity>
class
UniversalAngerGoal<T extends MobEntity & Angerable>
Fields in net.minecraft.entity.ai.goal declared as MobEntityModifier and TypeFieldDescriptionprivate final T
HoldInHandsGoal.actor
private final MobEntity
PowderSnowJumpGoal.entity
private final MobEntity
AttackGoal.mob
protected MobEntity
DoorInteractGoal.mob
private final MobEntity
EatGrassGoal.mob
private final MobEntity
FollowMobGoal.mob
private final MobEntity
LookAroundGoal.mob
protected final MobEntity
LookAtEntityGoal.mob
private final MobEntity
PounceAtTargetGoal.mob
private final MobEntity
ProjectileAttackGoal.mob
private final MobEntity
SwimGoal.mob
protected final MobEntity
TrackTargetGoal.mob
private final T
UniversalAngerGoal.mob
private final MobEntity
StepAndDestroyBlockGoal.stepAndDestroyMob
FollowMobGoal.target
Fields in net.minecraft.entity.ai.goal with type parameters of type MobEntityMethods in net.minecraft.entity.ai.goal that return types with arguments of type MobEntityMethods in net.minecraft.entity.ai.goal with parameters of type MobEntityModifier and TypeMethodDescriptionprotected void
RevengeGoal.setMobEntityTarget
(MobEntity mob, LivingEntity target) Constructors in net.minecraft.entity.ai.goal with parameters of type MobEntityModifierConstructorDescriptionActiveTargetGoal
(MobEntity mob, Class<T> targetClass, boolean checkVisibility) ActiveTargetGoal
(MobEntity mob, Class<T> targetClass, boolean checkVisibility, boolean checkCanNavigate) ActiveTargetGoal
(MobEntity mob, Class<T> targetClass, boolean checkVisibility, Predicate<LivingEntity> targetPredicate) ActiveTargetGoal
(MobEntity mob, Class<T> targetClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate) AttackGoal
(MobEntity mob) BreakDoorGoal
(MobEntity mob, int maxProgress, Predicate<Difficulty> difficultySufficientPredicate) BreakDoorGoal
(MobEntity mob, Predicate<Difficulty> difficultySufficientPredicate) EatGrassGoal
(MobEntity mob) FollowMobGoal
(MobEntity mob, double speed, float minDistance, float maxDistance) LongDoorInteractGoal
(MobEntity mob, boolean delayedClose) LookAroundGoal
(MobEntity mob) LookAtEntityGoal
(MobEntity mob, Class<? extends LivingEntity> targetType, float range) LookAtEntityGoal
(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance) LookAtEntityGoal
(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance, boolean lookForward) PounceAtTargetGoal
(MobEntity mob, float velocity) PowderSnowJumpGoal
(MobEntity entity, World world) StopAndLookAtEntityGoal
(MobEntity mob, Class<? extends LivingEntity> targetType, float range) StopAndLookAtEntityGoal
(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance) TrackTargetGoal
(MobEntity mob, boolean checkVisibility) TrackTargetGoal
(MobEntity mob, boolean checkVisibility, boolean checkNavigable) -
Uses of MobEntity in net.minecraft.entity.ai.pathing
Fields in net.minecraft.entity.ai.pathing declared as MobEntityModifier and TypeFieldDescriptionprotected final MobEntity
EntityNavigation.entity
protected MobEntity
PathNodeMaker.entity
Methods in net.minecraft.entity.ai.pathing with parameters of type MobEntityModifier and TypeMethodDescriptionprotected static boolean
EntityNavigation.doesNotCollide
(MobEntity entity, Vec3d startPos, Vec3d entityPos, boolean includeFluids) PathNodeNavigator.findPathToAny
(ChunkCache world, MobEntity mob, Set<BlockPos> positions, float followRange, int distance, float rangeMultiplier) PathNodeMaker.getDefaultNodeType
(MobEntity entity, BlockPos pos) static PathNodeType
LandPathNodeMaker.getLandNodeType
(MobEntity entity, BlockPos pos) LandPathNodeMaker.getNodeType
(PathContext context, int x, int y, int z, MobEntity mob) Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doorsabstract PathNodeType
PathNodeMaker.getNodeType
(PathContext context, int x, int y, int z, MobEntity mob) Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doorsWaterPathNodeMaker.getNodeType
(PathContext context, int x, int y, int z, MobEntity mob) Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doorsBirdPathNodeMaker.getPotentialEscapePositions
(MobEntity entity) Returns the iterable of positions that the entity should try to pathfind to when escaping.void
AmphibiousPathNodeMaker.init
(ChunkCache cachedWorld, MobEntity entity) void
BirdPathNodeMaker.init
(ChunkCache cachedWorld, MobEntity entity) void
LandPathNodeMaker.init
(ChunkCache cachedWorld, MobEntity entity) void
PathNodeMaker.init
(ChunkCache cachedWorld, MobEntity entity) void
WaterPathNodeMaker.init
(ChunkCache cachedWorld, MobEntity entity) Constructors in net.minecraft.entity.ai.pathing with parameters of type MobEntityModifierConstructorDescriptionAmphibiousSwimNavigation
(MobEntity mobEntity, World world) BirdNavigation
(MobEntity entity, World world) EntityNavigation
(MobEntity entity, World world) MobNavigation
(MobEntity entity, World world) PathContext
(CollisionView world, MobEntity entity) SpiderNavigation
(MobEntity entity, World world) SwimNavigation
(MobEntity entity, World world) -
Uses of MobEntity in net.minecraft.entity.boss
Subclasses of MobEntity in net.minecraft.entity.boss -
Uses of MobEntity in net.minecraft.entity.boss.dragon
Subclasses of MobEntity in net.minecraft.entity.boss.dragon -
Uses of MobEntity in net.minecraft.entity.mob
Subclasses of MobEntity in net.minecraft.entity.mobModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Fields in net.minecraft.entity.mob declared as MobEntityModifier and TypeFieldDescriptionprivate final MobEntity
MobVisibilityCache.owner
VexEntity.owner
Methods in net.minecraft.entity.mob with type parameters of type MobEntityModifier and TypeMethodDescription<T extends MobEntity>
TMobEntity.convertTo
(EntityType<T> entityType, boolean keepEquipment) Converts this entity to the providedentityType
.Methods in net.minecraft.entity.mob that return MobEntityMethods in net.minecraft.entity.mob with parameters of type MobEntityModifier and TypeMethodDescriptionprotected void
BreezeBrain.SlideAroundTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MobEntity.onPlayerSpawnedChild
(PlayerEntity player, MobEntity child) protected void
BreezeBrain.SlideAroundTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) void
Method parameters in net.minecraft.entity.mob with type arguments of type MobEntityModifier and TypeMethodDescriptionstatic boolean
MobEntity.canMobSpawn
(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) Constructors in net.minecraft.entity.mob with parameters of type MobEntityModifierConstructorDescriptionBreakDoorGoal
(MobEntity mob) MobVisibilityCache
(MobEntity owner) PhantomBodyControl
(MobEntity entity) PhantomLookControl
(MobEntity entity) PhantomMoveControl
(MobEntity owner) ShulkerBodyControl
(MobEntity entity) ShulkerLookControl
(MobEntity entity) Constructor parameters in net.minecraft.entity.mob with type arguments of type MobEntityModifierConstructorDescriptionprotected
MobEntity
(EntityType<? extends MobEntity> type, World world) -
Uses of MobEntity in net.minecraft.entity.passive
Subclasses of MobEntity in net.minecraft.entity.passiveModifier and TypeClassDescriptionclass
class
class
class
class
class
Represents an axolotl, the cutest predator.class
class
class
class
Meow.class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Fields in net.minecraft.entity.passive with type parameters of type MobEntityMethods in net.minecraft.entity.passive with type parameters of type MobEntityModifier and TypeMethodDescriptionprivate static <E extends MobEntity>
booleanFrogBrain.shouldJumpTo
(E frog, BlockPos pos) Methods in net.minecraft.entity.passive with parameters of type MobEntityModifier and TypeMethodDescriptionprivate EntityData
StriderEntity.initializeRider
(ServerWorldAccess world, LocalDifficulty difficulty, MobEntity rider, @Nullable EntityData entityData) protected void
FoxEntity.onPlayerSpawnedChild
(PlayerEntity player, MobEntity child) protected void
BeeEntity.BeeRevengeGoal.setMobEntityTarget
(MobEntity mob, LivingEntity target) protected void
PandaEntity.PandaRevengeGoal.setMobEntityTarget
(MobEntity mob, LivingEntity target) protected void
PolarBearEntity.PolarBearRevengeGoal.setMobEntityTarget
(MobEntity mob, LivingEntity target) private void
Constructors in net.minecraft.entity.passive with parameters of type MobEntityModifierConstructorDescription(package private)
BeeLookControl
(MobEntity entity) (package private)
FrogLookControl
(MobEntity entity) LookAtEntityGoal
(MobEntity fox, Class<? extends LivingEntity> targetType, float range) -
Uses of MobEntity in net.minecraft.entity.raid
Subclasses of MobEntity in net.minecraft.entity.raid -
Uses of MobEntity in net.minecraft.item
Fields in net.minecraft.item with type parameters of type MobEntityModifier and TypeFieldDescriptionprivate static final Map
<EntityType<? extends MobEntity>, SpawnEggItem> SpawnEggItem.SPAWN_EGGS
Methods in net.minecraft.item that return types with arguments of type MobEntityModifier and TypeMethodDescriptionSpawnEggItem.spawnBaby
(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) Methods in net.minecraft.item with parameters of type MobEntityModifier and TypeMethodDescriptionSpawnEggItem.spawnBaby
(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) Method parameters in net.minecraft.item with type arguments of type MobEntityModifier and TypeMethodDescriptionSpawnEggItem.spawnBaby
(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) Constructor parameters in net.minecraft.item with type arguments of type MobEntityModifierConstructorDescriptionSpawnEggItem
(EntityType<? extends MobEntity> type, int primaryColor, int secondaryColor, Item.Settings settings) -
Uses of MobEntity in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type MobEntityModifier and TypeMethodDescriptionstatic void
DebugInfoSender.sendGoalSelector
(World world, MobEntity mob, GoalSelector goalSelector) static void
DebugInfoSender.sendPathfindingData
(World world, MobEntity mob, @Nullable Path path, float nodeReachProximity) -
Uses of MobEntity in net.minecraft.server.world
Fields in net.minecraft.server.world with type parameters of type MobEntity -
Uses of MobEntity in net.minecraft.test
Methods in net.minecraft.test with type parameters of type MobEntityModifier and TypeMethodDescription<E extends MobEntity>
ETestContext.spawnMob
(EntityType<E> type, float x, float y, float z) <E extends MobEntity>
ETestContext.spawnMob
(EntityType<E> type, int x, int y, int z) <E extends MobEntity>
ETestContext.spawnMob
(EntityType<E> type, BlockPos pos) <E extends MobEntity>
ETestContext.spawnMob
(EntityType<E> type, Vec3d pos) Methods in net.minecraft.test with parameters of type MobEntityModifier and TypeMethodDescriptionvoid
TestContext.setEntityPos
(MobEntity entity, float x, float y, float z) TestContext.startMovingTowards
(MobEntity entity, BlockPos pos, float speed) -
Uses of MobEntity in net.minecraft.util.math
Methods in net.minecraft.util.math with parameters of type MobEntityModifier and TypeMethodDescriptionLongJumpUtil.getJumpingVelocity
(MobEntity entity, Vec3d jumpTarget, float maxVelocity, int angle, boolean requireClearPath) private static boolean
LongJumpUtil.isPathClear
(MobEntity entity, EntityDimensions dimensions, Vec3d prevPos, Vec3d nextPos) -
Uses of MobEntity in net.minecraft.world
Methods in net.minecraft.world that return MobEntityMethods in net.minecraft.world with parameters of type MobEntityModifier and TypeMethodDescriptionprivate static boolean
SpawnHelper.isValidSpawn
(ServerWorld world, MobEntity entity, double squaredDistance) private void
void