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
BipedEntityRenderer<T extends MobEntity,
M extends BipedEntityModel<T>> class
MobEntityRenderer<T extends MobEntity,
M extends EntityModel<T>> Modifier and TypeMethodDescriptionprivate static PiglinEntityModel<MobEntity>
PiglinEntityRenderer.getPiglinModel
(EntityModelLoader modelLoader, EntityModelLayer layer, boolean zombie) Modifier and TypeMethodDescriptionPiglinEntityRenderer.getTexture
(MobEntity mobEntity) protected boolean
-
Uses of MobEntity in net.minecraft.client.render.entity.feature
Modifier and TypeClassDescriptionclass
StrayOverlayFeatureRenderer<T extends MobEntity & RangedAttackMob,
M extends EntityModel<T>> -
Uses of MobEntity in net.minecraft.client.render.entity.model
Modifier 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>
Modifier and TypeMethodDescriptionstatic <T extends MobEntity>
voidCrossbowPosing.meleeAttack
(ModelPart leftArm, ModelPart rightArm, T actor, float swingProgress, float animationProgress) -
Uses of MobEntity in net.minecraft.entity
Modifier and TypeMethodDescriptionprivate static <T extends MobEntity>
voidSpawnRestriction.register
(EntityType<T> type, SpawnRestriction.Location location, Heightmap.Type heightmapType, SpawnRestriction.SpawnPredicate<T> predicate) Modifier and TypeMethodDescriptionstatic void
Bucketable.copyDataFromNbt
(MobEntity entity, NbtCompound nbt) Deprecated.static void
Bucketable.copyDataToStack
(MobEntity entity, ItemStack stack) Deprecated.default boolean
ItemSteerable.travel
(MobEntity entity, SaddledComponent saddledEntity, Vec3d movementInput) -
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
AttackTask<E extends MobEntity>
class
CrossbowAttackTask<E extends MobEntity & CrossbowUser,
T extends LivingEntity> class
ForgetAngryAtTargetTask<E extends MobEntity>
class
ForgetAttackTargetTask<E extends MobEntity>
class
GoToCelebrateTask<E extends MobEntity>
class
LongJumpTask<E extends MobEntity>
class
MemoryTransferTask<E extends MobEntity,
T> class
UpdateAttackTargetTask<E extends MobEntity>
Modifier and TypeMethodDescriptionprivate boolean
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
WanderAroundTask.finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) private static BlockPos
private LivingEntity
MeleeAttackTask.getAttackTarget
(MobEntity entity) private static BlockPos
GoToCelebrateTask.getCelebrateLocation
(MobEntity entity) JumpInBedTask.getNearestBed
(MobEntity mob) LongJumpTask.getRammingVelocity
(MobEntity entity, Vec3d pos) LongJumpTask.getRammingVelocity
(MobEntity entity, Vec3d pos, int range) private boolean
WanderAroundTask.hasFinishedPath
(MobEntity entity, WalkTarget walkTarget, long time) private boolean
WanderAroundTask.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 boolean
MeleeAttackTask.isHoldingUsableRangedWeapon
(MobEntity entity) private boolean
JumpInBedTask.isOnBed
(ServerWorld world, MobEntity mob) static boolean
LookTargetUtil.isTargetWithinAttackRange
(MobEntity mobEntity, LivingEntity target, int rangedWeaponReachReduction) static boolean
LookTargetUtil.isTargetWithinMeleeRange
(MobEntity source, LivingEntity target) protected void
JumpInBedTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
LookAroundTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
StayAboveWaterTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
WanderAroundTask.keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
GoToCelebrateTask.run
(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
LongJumpTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
MeleeAttackTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
RangedApproachTask.run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
WanderAroundTask.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
StayAboveWaterTask.shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
WanderAroundTask.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
MeleeAttackTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
StayAboveWaterTask.shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) protected boolean
WanderAroundTask.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
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, 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 mobEntity, Class<? extends LivingEntity> class2, float float2, float float3, boolean bool) PounceAtTargetGoal
(MobEntity mob, float velocity) 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 TypeMethodDescriptionPathNodeNavigator.findPathToAny
(ChunkCache world, MobEntity mob, Set<BlockPos> positions, float followRange, int distance, float rangeMultiplier) BirdPathNodeMaker.getNodeType
(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors) Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doorsprotected PathNodeType
LandPathNodeMaker.getNodeType
(MobEntity entity, int x, int y, int z) private PathNodeType
LandPathNodeMaker.getNodeType
(MobEntity entity, BlockPos pos) LandPathNodeMaker.getNodeType
(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors) 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
(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors) 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
(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors) Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doorsvoid
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) ModifierConstructorDescriptionBirdNavigation
(MobEntity mob, World world) EntityNavigation
(MobEntity mob, World world) MobNavigation
(MobEntity mob, World world) SpiderNavigation
(MobEntity mob, World world) SwimNavigation
(MobEntity mob, 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.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
Modifier and TypeFieldDescriptionprivate final MobEntity
MobVisibilityCache.owner
VexEntity.owner
Modifier and TypeMethodDescription<T extends MobEntity>
TMobEntity.convertTo
(EntityType<T> entityType, boolean keepEquipment) Converts this entity to the providedentityType
.Modifier and TypeMethodDescriptionprotected void
MobEntity.onPlayerSpawnedChild
(PlayerEntity player, MobEntity child) 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) Navigation
(MobEntity mob, World world) 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
Represents an axolotl, the cutest predator.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
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
ModifierConstructorDescription(package private)
BeeLookControl
(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 TypeMethodDescriptionTestContext.startMovingTowards
(MobEntity entity, BlockPos pos, float speed) -
Uses of MobEntity in net.minecraft.world
Modifier and TypeMethodDescriptionprivate static boolean
SpawnHelper.isValidSpawn
(ServerWorld world, MobEntity entity, double squaredDistance) private void
void