Uses of Class
net.minecraft.entity.mob.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
Modifier and TypeClassDescriptionclass
AbstractHoglinEntityRenderer<T extends MobEntity & Hoglin>
class
AgeableMobEntityRenderer<T extends MobEntity,
S extends LivingEntityRenderState, M extends EntityModel<? super S>> Deprecated.class
BipedEntityRenderer<T extends MobEntity,
S extends BipedEntityRenderState, M extends BipedEntityModel<S>> class
MobEntityRenderer<T extends MobEntity,
S extends LivingEntityRenderState, M extends EntityModel<? super S>> -
Uses of MobEntity in net.minecraft.entity
Modifier 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) Modifier and TypeMethodDescriptionstatic void
Bucketable.copyDataFromNbt
(MobEntity entity, NbtCompound nbt) Deprecated.static void
Bucketable.copyDataToStack
(MobEntity entity, ItemStack stack) Deprecated.static void
InventoryOwner.pickUpItem
(ServerWorld world, MobEntity entity, InventoryOwner inventoryOwner, ItemEntity item) -
Uses of MobEntity in net.minecraft.entity.ai
Modifier and TypeMethodDescriptionstatic boolean
NavigationConditions.hasMobNavigation
(MobEntity entity) -
Uses of MobEntity in net.minecraft.entity.ai.brain
Modifier and TypeFieldDescriptionstatic final MemoryModuleType
<MobEntity> MemoryModuleType.NEAREST_VISIBLE_NEMESIS
-
Uses of MobEntity in net.minecraft.entity.ai.brain.sensor
Modifier 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
Modifier and TypeClassDescriptionclass
BiasedLongJumpTask<E extends MobEntity>
class
CrossbowAttackTask<E extends MobEntity & CrossbowUser,
T extends LivingEntity> class
LongJumpTask<E extends MobEntity>
class
StayAboveWaterTask<T extends MobEntity>
Modifier and TypeMethodDescriptionForgetAttackTargetTask.create()
ForgetAttackTargetTask.create
(ForgetAttackTargetTask.AlternativeCondition condition) ForgetAttackTargetTask.create
(ForgetAttackTargetTask.AlternativeCondition condition, ForgetAttackTargetTask.ForgetCallback<E> callback, boolean shouldForgetIfTargetUnreachable) ForgetAttackTargetTask.create
(ForgetAttackTargetTask.ForgetCallback<E> callback) static <T extends MobEntity>
SingleTickTask<T> MeleeAttackTask.create
(int cooldown) static <T extends MobEntity>
SingleTickTask<T> UpdateAttackTargetTask.create
(UpdateAttackTargetTask.StartCondition<E> condition, UpdateAttackTargetTask.TargetGetter<E> targetGetter) UpdateAttackTargetTask.create
(UpdateAttackTargetTask.TargetGetter<E> targetGetter) static <E extends MobEntity>
SingleTickTask<E> WalkTowardsFuzzyPosTask.create
(MemoryModuleType<BlockPos> posModule, int completionRange, float speed) static <T extends MobEntity>
booleanStayAboveWaterTask.isUnderwater
(T entity) static <E extends MobEntity>
booleanLongJumpTask.shouldJumpTo
(E entity, BlockPos pos) Modifier and TypeMethodDescriptionstatic SingleTickTask
<MobEntity> AttackTask.create
(int distance, float forwardMovement) RangedApproachTask.create
(float speed) RangedApproachTask.create
(Function<LivingEntity, Float> speed) Modifier 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
MoveToTargetTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
UpdateLookControlTask.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
TargetUtil.isTargetWithinAttackRange
(MobEntity mob, LivingEntity target, int rangedWeaponReachReduction) protected void
JumpInBedTask.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
UpdateLookControlTask.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
LookAroundTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MoveToTargetTask.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
MoveToTargetTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
StayAboveWaterTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
UpdateLookControlTask.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
Modifier and TypeFieldDescriptionprivate final MobEntity
BodyControl.entity
private final MobEntity
JumpControl.entity
protected final MobEntity
LookControl.entity
protected final MobEntity
MoveControl.entity
ModifierConstructorDescriptionAquaticMoveControl
(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
Modifier and TypeClassDescriptionclass
HoldInHandsGoal<T extends MobEntity>
class
UniversalAngerGoal<T extends MobEntity & Angerable>
Modifier 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
Modifier and TypeMethodDescriptionprotected void
RevengeGoal.setMobEntityTarget
(MobEntity mob, LivingEntity target) ModifierConstructorDescriptionActiveTargetGoal
(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, TargetPredicate.EntityPredicate predicate) ActiveTargetGoal
(MobEntity mob, Class<T> targetClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, TargetPredicate.EntityPredicate 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
Modifier and TypeFieldDescriptionprotected final MobEntity
EntityNavigation.entity
protected MobEntity
PathNodeMaker.entity
Modifier 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) ModifierConstructorDescriptionAmphibiousSwimNavigation
(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
-
Uses of MobEntity in net.minecraft.entity.boss.dragon
-
Uses of MobEntity in net.minecraft.entity.conversion
Modifier and TypeInterfaceDescriptionstatic interface
EntityConversionContext.Finalizer<T extends MobEntity>
Modifier and TypeMethodDescription(package private) void
EntityConversionType.copyData
(MobEntity oldEntity, MobEntity newEntity, EntityConversionContext context) static EntityConversionContext
EntityConversionContext.create
(MobEntity entity, boolean keepEquipment, boolean preserveCanPickUpLoot) (package private) abstract void
EntityConversionType.setUpNewEntity
(MobEntity oldEntity, MobEntity newEntity, EntityConversionContext context) -
Uses of MobEntity in net.minecraft.entity.mob
Modifier 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
class
class
Modifier and TypeFieldDescriptionprivate final MobEntity
MobVisibilityCache.owner
VexEntity.owner
Modifier and TypeMethodDescription<T extends MobEntity>
TMobEntity.convertTo
(EntityType<T> entityType, EntityConversionContext context, EntityConversionContext.Finalizer<T> finalizer) Converts this entity to the providedentityType
.<T extends MobEntity>
TMobEntity.convertTo
(EntityType<T> entityType, EntityConversionContext context, SpawnReason reason, EntityConversionContext.Finalizer<T> finalizer) Modifier 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
Modifier and TypeMethodDescriptionstatic boolean
MobEntity.canMobSpawn
(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) ModifierConstructorDescriptionBreakDoorGoal
(MobEntity mob) MobVisibilityCache
(MobEntity owner) PhantomBodyControl
(MobEntity entity) PhantomLookControl
(MobEntity entity) PhantomMoveControl
(MobEntity owner) ShulkerBodyControl
(MobEntity entity) ShulkerLookControl
(MobEntity entity) ModifierConstructorDescriptionprotected
MobEntity
(EntityType<? extends MobEntity> type, World world) -
Uses of MobEntity in net.minecraft.entity.passive
Modifier 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
class
Modifier and TypeMethodDescriptionprivate static <E extends MobEntity>
booleanFrogBrain.shouldJumpTo
(E frog, BlockPos pos) Modifier 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
PufferfishEntity.sting
(ServerWorld world, MobEntity target) ModifierConstructorDescription(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
-
Uses of MobEntity in net.minecraft.item
Modifier and TypeFieldDescriptionprivate static final Map
<EntityType<? extends MobEntity>, SpawnEggItem> SpawnEggItem.SPAWN_EGGS
Modifier and TypeMethodDescriptionSpawnEggItem.spawnBaby
(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) Modifier and TypeMethodDescriptionSpawnEggItem.spawnBaby
(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) Modifier and TypeMethodDescriptionSpawnEggItem.spawnBaby
(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) ModifierConstructorDescriptionSpawnEggItem
(EntityType<? extends MobEntity> type, int primaryColor, int secondaryColor, Item.Settings settings) -
Uses of MobEntity in net.minecraft.server.network
Modifier 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
-
Uses of MobEntity in net.minecraft.test
Modifier 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) Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionprivate static boolean
SpawnHelper.isValidSpawn
(ServerWorld world, MobEntity entity, double squaredDistance) private void
void