Uses of Class
net.minecraft.world.entity.Mob
Packages that use Mob
Package
Description
-
Uses of Mob in net.minecraft.client.renderer.entity
Classes in net.minecraft.client.renderer.entity with type parameters of type MobModifier and TypeClassDescriptionclassAbstractHoglinRenderer<T extends Mob & HoglinBase>classAgeableMobRenderer<T extends Mob, S extends LivingEntityRenderState, M extends EntityModel<? super S>>Deprecated.classHumanoidMobRenderer<T extends Mob, S extends HumanoidRenderState, M extends HumanoidModel<S>>classMobRenderer<T extends Mob, S extends LivingEntityRenderState, M extends EntityModel<? super S>> -
Uses of Mob in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with type parameters of type MobModifier and TypeMethodDescription<E extends Mob>
EGameTestHelper.spawn(EntityType<E> entityType, int x, int y, int z, EntitySpawnReason entitySpawnReason) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill(EntityType<E> entityType, float x, float y, float z) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill(EntityType<E> entityType, int x, int y, int z) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill(EntityType<E> entityType, BlockPos pos) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill(EntityType<E> entityType, Vec3 pos) Methods in net.minecraft.gametest.framework with parameters of type Mob -
Uses of Mob in net.minecraft.server.level
Fields in net.minecraft.server.level with type parameters of type Mob -
Uses of Mob in net.minecraft.util
Methods in net.minecraft.util with type parameters of type MobModifier and TypeMethodDescriptionSpawnUtil.trySpawnMob(EntityType<T> entityType, EntitySpawnReason spawnReason, ServerLevel level, BlockPos start, int spawnAttempts, int spawnRangeXZ, int spawnRangeY, SpawnUtil.Strategy strategy, boolean checkCollisions) -
Uses of Mob in net.minecraft.world.entity
Classes in net.minecraft.world.entity with type parameters of type MobModifier and TypeInterfaceDescriptionstatic interfaceConversionParams.AfterConversion<T extends Mob>Subclasses of Mob in net.minecraft.world.entityMethods in net.minecraft.world.entity with type parameters of type MobModifier and TypeMethodDescription<T extends Mob>
@Nullable TMob.convertTo(EntityType<T> entityType, ConversionParams params, ConversionParams.AfterConversion<T> afterConversion) <T extends Mob>
@Nullable TMob.convertTo(EntityType<T> entityType, ConversionParams params, EntitySpawnReason spawnReason, ConversionParams.AfterConversion<T> afterConversion) private static <T extends Mob>
voidSpawnPlacements.register(EntityType<T> type, SpawnPlacementType placementType, Heightmap.Types heightmap, SpawnPlacements.SpawnPredicate<T> spawnPredicate) Deprecated.Methods in net.minecraft.world.entity with parameters of type MobModifier and TypeMethodDescriptionprivate booleanEntity.attemptToShearEquipment(Player player, InteractionHand hand, ItemStack heldItem, Mob target) static booleanAgeableMob.canUseGoldenDandelion(ItemStack itemInHand, boolean isBaby, int cooldown, Mob mob) (package private) abstract voidConversionType.convert(Mob from, Mob to, ConversionParams params) (package private) voidConversionType.convertCommon(Mob from, Mob to, ConversionParams params) private static <T> voidConversionType.copyComponent(Mob from, Mob to, DataComponentType<T> componentType) static intAgeableMob.makeAgeLockedParticle(Level level, Mob mob, int ageLockParticleTimer) protected voidMob.onOffspringSpawnedFromEgg(Player spawner, Mob offspring) static voidAgeableMob.setAgeLocked(Mob mob, Supplier<Boolean> isAgedLocked, Player player, ItemStack itemInHand, Consumer<Mob> setAgeLockData) static ConversionParamsMethod parameters in net.minecraft.world.entity with type arguments of type MobModifier and TypeMethodDescriptionstatic booleanMob.checkMobSpawnRules(EntityType<? extends Mob> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static voidAgeableMob.setAgeLocked(Mob mob, Supplier<Boolean> isAgedLocked, Player player, ItemStack itemInHand, Consumer<Mob> setAgeLockData) Constructor parameters in net.minecraft.world.entity with type arguments of type Mob -
Uses of Mob in net.minecraft.world.entity.ai.behavior
Classes in net.minecraft.world.entity.ai.behavior with type parameters of type MobModifier and TypeClassDescriptionclassCrossbowAttack<E extends Mob & CrossbowAttackMob, T extends LivingEntity>classLongJumpToPreferredBlock<E extends Mob>classLongJumpToRandomPos<E extends Mob>classSubclasses with type arguments of type Mob in net.minecraft.world.entity.ai.behaviorModifier and TypeClassDescriptionclassclassclassclassclassMethods in net.minecraft.world.entity.ai.behavior with type parameters of type MobModifier and TypeMethodDescriptionGoToTargetLocation.create(MemoryModuleType<BlockPos> locationMemory, int closeEnoughDist, float speedModifier) MeleeAttack.create(int cooldownBetweenAttacks) static <E extends Mob>
BehaviorControl<E> StartAttacking.create(StartAttacking.StartAttackingCondition<E> canAttackPredicate, StartAttacking.TargetFinder<E> targetFinderFunction) static <E extends Mob>
BehaviorControl<E> StartAttacking.create(StartAttacking.TargetFinder<E> targetFinderFunction) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create()static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(StopAttackingIfTargetInvalid.StopAttackCondition stopAttackingWhen) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(StopAttackingIfTargetInvalid.StopAttackCondition stopAttackingWhen, StopAttackingIfTargetInvalid.TargetErasedCallback<E> onTargetErased, boolean canGrowTiredOfTryingToReachTarget) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(StopAttackingIfTargetInvalid.TargetErasedCallback<E> onTargetErased) static <E extends Mob>
booleanLongJumpToRandomPos.defaultAcceptableLandingSpot(E body, BlockPos targetPos) static <T extends Mob>
booleanSwim.shouldSwim(T mob) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type MobModifier and TypeMethodDescriptionBackUpIfTooClose.create(int tooCloseDistance, float strafeSpeed) static BehaviorControl<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create(float speedModifier) static BehaviorControl<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create(Function<LivingEntity, Float> speedModifier) Methods in net.minecraft.world.entity.ai.behavior with parameters of type MobModifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle(Mob body, Vec3 targetPos, float maxJumpVelocity, int angle, boolean checkCollision) protected @Nullable Vec3LongJumpToRandomPos.calculateOptimalJumpVector(Mob body, Vec3 targetPos) protected booleanJumpOnBed.canStillUse(ServerLevel level, Mob body, long timestamp) protected booleanLongJumpMidJump.canStillUse(ServerLevel level, Mob body, long timestamp) protected booleanLongJumpToRandomPos.canStillUse(ServerLevel level, Mob body, long timestamp) protected booleanLookAtTargetSink.canStillUse(ServerLevel level, Mob body, long timestamp) protected booleanMoveToTargetSink.canStillUse(ServerLevel level, Mob body, long timestamp) protected booleanSwim.canStillUse(ServerLevel level, Mob body, long timestamp) protected booleanJumpOnBed.checkExtraStartConditions(ServerLevel level, Mob body) protected booleanLongJumpToRandomPos.checkExtraStartConditions(ServerLevel level, Mob body) protected booleanMoveToTargetSink.checkExtraStartConditions(ServerLevel level, Mob body) protected booleanSwim.checkExtraStartConditions(ServerLevel level, Mob body) static @Nullable PathAcquirePoi.findPathToPois(Mob body, Set<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>> pois) private static BlockPosGoToTargetLocation.getNearbyPos(Mob body, BlockPos pos) JumpOnBed.getNearestBed(Mob body) private static booleanLongJumpUtil.isClearTransition(Mob body, EntityDimensions entityDimensions, Vec3 position1, Vec3 position2) private static booleanMeleeAttack.isHoldingUsableNonMeleeWeapon(Mob body) static booleanBehaviorUtils.isWithinAttackRange(Mob body, LivingEntity target, int projectileAttackRangeMargin) private voidCrossbowAttack.lookAtTarget(Mob body, LivingEntity target) private booleanJumpOnBed.nearBed(ServerLevel level, Mob body) private booleanJumpOnBed.onBedSurface(ServerLevel level, Mob body) private booleanJumpOnBed.onOrOverBed(ServerLevel level, Mob body) private booleanMoveToTargetSink.reachedTarget(Mob body, WalkTarget walkTarget) protected voidJumpOnBed.start(ServerLevel level, Mob body, long timestamp) protected voidLongJumpMidJump.start(ServerLevel level, Mob body, long timestamp) protected voidMoveToTargetSink.start(ServerLevel level, Mob body, long timestamp) protected voidRandomLookAround.start(ServerLevel level, Mob body, long timestamp) private voidJumpOnBed.startWalkingTowardsBed(Mob body, BlockPos bedPos) protected voidJumpOnBed.stop(ServerLevel level, Mob body, long timestamp) protected voidLongJumpMidJump.stop(ServerLevel level, Mob body, long timestamp) protected voidLookAtTargetSink.stop(ServerLevel level, Mob body, long timestamp) protected voidMoveToTargetSink.stop(ServerLevel level, Mob body, long timestamp) protected voidJumpOnBed.tick(ServerLevel level, Mob body, long timestamp) protected voidLookAtTargetSink.tick(ServerLevel level, Mob body, long timestamp) protected voidMoveToTargetSink.tick(ServerLevel level, Mob body, long timestamp) protected voidSwim.tick(ServerLevel level, Mob body, long timestamp) private booleanJumpOnBed.tiredOfJumping(ServerLevel level, Mob body) private booleanJumpOnBed.tiredOfWalking(ServerLevel level, Mob body) private booleanMoveToTargetSink.tryComputePath(Mob body, WalkTarget walkTarget, long timestamp) -
Uses of Mob in net.minecraft.world.entity.ai.control
Fields in net.minecraft.world.entity.ai.control declared as MobModifier and TypeFieldDescriptionprivate final MobBodyRotationControl.mobprivate final MobJumpControl.mobprotected final MobLookControl.mobprotected final MobMoveControl.mobConstructors in net.minecraft.world.entity.ai.control with parameters of type MobModifierConstructorDescriptionBodyRotationControl(Mob mob) FlyingMoveControl(Mob mob, int maxTurn, boolean hoversInPlace) JumpControl(Mob mob) LookControl(Mob mob) MoveControl(Mob mob) SmoothSwimmingLookControl(Mob mob, int maxYRotFromCenter) SmoothSwimmingMoveControl(Mob mob, int maxTurnX, int maxTurnY, float inWaterSpeedModifier, float outsideWaterSpeedModifier, boolean applyGravity) -
Uses of Mob in net.minecraft.world.entity.ai.goal
Classes in net.minecraft.world.entity.ai.goal with type parameters of type MobModifier and TypeClassDescriptionclassRangedBowAttackGoal<T extends Mob & RangedAttackMob>classRangedCrossbowAttackGoal<T extends Mob & CrossbowAttackMob>classUseItemGoal<T extends Mob>Fields in net.minecraft.world.entity.ai.goal declared as MobModifier and TypeFieldDescriptionprivate @Nullable MobFollowMobGoal.followingMobprivate final MobClimbOnTopOfPowderSnowGoal.mobprotected MobDoorInteractGoal.mobprivate final MobEatBlockGoal.mobThe entity owner of this AITaskprivate final MobFloatGoal.mobprivate final MobFollowMobGoal.mobprivate final MobLeapAtTargetGoal.mobprotected final MobLookAtPlayerGoal.mobprivate final MobOcelotAttackGoal.mobprivate final MobRandomLookAroundGoal.mobprivate final MobRangedAttackGoal.mobprivate final TRangedBowAttackGoal.mobprivate final TRangedCrossbowAttackGoal.mobprotected final MobTemptGoal.mobprivate final TUseItemGoal.mobprivate final MobRemoveBlockGoal.removerMobFields in net.minecraft.world.entity.ai.goal with type parameters of type MobConstructors in net.minecraft.world.entity.ai.goal with parameters of type MobModifierConstructorDescriptionBreakDoorGoal(Mob mob, int seconds, Predicate<Difficulty> validDifficulties) BreakDoorGoal(Mob mob, Predicate<Difficulty> validDifficulties) ClimbOnTopOfPowderSnowGoal(Mob mob, Level level) DoorInteractGoal(Mob mob) EatBlockGoal(Mob mob) FollowMobGoal(Mob mob, double speedModifier, float stopDistance, float areaSize) Constructs a goal allowing a mob to follow others.ForNonPathfinders(Mob mob, double speedModifier, Predicate<ItemStack> items, boolean canScare, double stopDistance) InteractGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance) InteractGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance, float probability) LeapAtTargetGoal(Mob mob, float yd) LookAtPlayerGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance) LookAtPlayerGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance, float probability) LookAtPlayerGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance, float probability, boolean onlyHorizontal) OcelotAttackGoal(Mob mob) OpenDoorGoal(Mob mob, boolean closeDoorAfter) RandomLookAroundGoal(Mob mob) privateTemptGoal(Mob mob, double speedModifier, Predicate<ItemStack> items, boolean canScare, double stopDistance) -
Uses of Mob in net.minecraft.world.entity.ai.goal.target
Classes in net.minecraft.world.entity.ai.goal.target with type parameters of type MobFields in net.minecraft.world.entity.ai.goal.target declared as MobModifier and TypeFieldDescriptionprivate final TResetUniversalAngerTargetGoal.mobprotected final MobTargetGoal.mobThe entity that this goal belongs toMethods in net.minecraft.world.entity.ai.goal.target that return types with arguments of type MobMethods in net.minecraft.world.entity.ai.goal.target with parameters of type MobModifier and TypeMethodDescriptionprotected voidHurtByTargetGoal.alertOther(Mob other, LivingEntity hurtByMob) Constructors in net.minecraft.world.entity.ai.goal.target with parameters of type MobModifierConstructorDescriptionNearestAttackableTargetGoal(Mob mob, Class<T> targetType, boolean mustSee) NearestAttackableTargetGoal(Mob mob, Class<T> targetType, boolean mustSee, boolean mustReach) NearestAttackableTargetGoal(Mob mob, Class<T> targetType, boolean mustSee, TargetingConditions.Selector selector) NearestAttackableTargetGoal(Mob mob, Class<T> targetType, int randomInterval, boolean mustSee, boolean mustReach, @Nullable TargetingConditions.Selector selector) TargetGoal(Mob mob, boolean mustSee) TargetGoal(Mob mob, boolean mustSee, boolean mustReach) -
Uses of Mob in net.minecraft.world.entity.ai.memory
Fields in net.minecraft.world.entity.ai.memory with type parameters of type MobModifier and TypeFieldDescriptionstatic final MemoryModuleType<Mob> MemoryModuleType.NEAREST_VISIBLE_NEMESIS -
Uses of Mob in net.minecraft.world.entity.ai.sensing
Subclasses with type arguments of type Mob in net.minecraft.world.entity.ai.sensingFields in net.minecraft.world.entity.ai.sensing declared as MobMethods in net.minecraft.world.entity.ai.sensing with parameters of type MobModifier and TypeMethodDescriptionprotected voidNearestBedSensor.doTick(ServerLevel level, Mob body) protected voidNearestItemSensor.doTick(ServerLevel level, Mob body) Constructors in net.minecraft.world.entity.ai.sensing with parameters of type Mob -
Uses of Mob in net.minecraft.world.entity.ai.util
Methods in net.minecraft.world.entity.ai.util with parameters of type Mob -
Uses of Mob in net.minecraft.world.entity.ambient
Subclasses of Mob in net.minecraft.world.entity.ambient -
Uses of Mob in net.minecraft.world.entity.animal
Subclasses of Mob in net.minecraft.world.entity.animalMethods in net.minecraft.world.entity.animal with parameters of type MobModifier and TypeMethodDescriptionstatic voidBucketable.loadDefaultDataFromBucketTag(Mob entity, CompoundTag tag) Deprecated.static voidBucketable.saveDefaultDataToBucketTag(Mob entity, ItemStack bucket) Deprecated. -
Uses of Mob in net.minecraft.world.entity.animal.allay
Subclasses of Mob in net.minecraft.world.entity.animal.allay -
Uses of Mob in net.minecraft.world.entity.animal.armadillo
Subclasses of Mob in net.minecraft.world.entity.animal.armadillo -
Uses of Mob in net.minecraft.world.entity.animal.axolotl
Subclasses of Mob in net.minecraft.world.entity.animal.axolotl -
Uses of Mob in net.minecraft.world.entity.animal.bee
Subclasses of Mob in net.minecraft.world.entity.animal.beeMethods in net.minecraft.world.entity.animal.bee with parameters of type MobModifier and TypeMethodDescriptionprotected voidBee.BeeHurtByOtherGoal.alertOther(Mob other, LivingEntity hurtByMob) Constructors in net.minecraft.world.entity.animal.bee with parameters of type Mob -
Uses of Mob in net.minecraft.world.entity.animal.camel
Subclasses of Mob in net.minecraft.world.entity.animal.camel -
Uses of Mob in net.minecraft.world.entity.animal.chicken
Subclasses of Mob in net.minecraft.world.entity.animal.chicken -
Uses of Mob in net.minecraft.world.entity.animal.cow
Subclasses of Mob in net.minecraft.world.entity.animal.cow -
Uses of Mob in net.minecraft.world.entity.animal.dolphin
Subclasses of Mob in net.minecraft.world.entity.animal.dolphin -
Uses of Mob in net.minecraft.world.entity.animal.equine
Subclasses of Mob in net.minecraft.world.entity.animal.equineModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclass -
Uses of Mob in net.minecraft.world.entity.animal.feline
Subclasses of Mob in net.minecraft.world.entity.animal.feline -
Uses of Mob in net.minecraft.world.entity.animal.fish
Subclasses of Mob in net.minecraft.world.entity.animal.fishModifier and TypeClassDescriptionclassclassclassclassclassclassclassMethods in net.minecraft.world.entity.animal.fish with parameters of type Mob -
Uses of Mob in net.minecraft.world.entity.animal.fox
Subclasses of Mob in net.minecraft.world.entity.animal.foxMethods in net.minecraft.world.entity.animal.fox with parameters of type MobModifier and TypeMethodDescriptionprotected voidFox.onOffspringSpawnedFromEgg(Player spawner, Mob offspring) Constructors in net.minecraft.world.entity.animal.fox with parameters of type MobModifierConstructorDescriptionFoxLookAtPlayerGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance) -
Uses of Mob in net.minecraft.world.entity.animal.frog
Subclasses of Mob in net.minecraft.world.entity.animal.frogMethods in net.minecraft.world.entity.animal.frog with type parameters of type MobModifier and TypeMethodDescriptionprivate static <E extends Mob>
booleanFrogAi.isAcceptableLandingSpot(E body, BlockPos targetPos) Methods in net.minecraft.world.entity.animal.frog with parameters of type MobConstructors in net.minecraft.world.entity.animal.frog with parameters of type Mob -
Uses of Mob in net.minecraft.world.entity.animal.goat
Subclasses of Mob in net.minecraft.world.entity.animal.goat -
Uses of Mob in net.minecraft.world.entity.animal.golem
Subclasses of Mob in net.minecraft.world.entity.animal.golemModifier and TypeClassDescriptionclassclassclassclass -
Uses of Mob in net.minecraft.world.entity.animal.happyghast
Subclasses of Mob in net.minecraft.world.entity.animal.happyghast -
Uses of Mob in net.minecraft.world.entity.animal.nautilus
Subclasses of Mob in net.minecraft.world.entity.animal.nautilus -
Uses of Mob in net.minecraft.world.entity.animal.panda
Subclasses of Mob in net.minecraft.world.entity.animal.pandaMethods in net.minecraft.world.entity.animal.panda with parameters of type MobModifier and TypeMethodDescriptionprotected voidPanda.PandaHurtByTargetGoal.alertOther(Mob other, LivingEntity hurtByMob) -
Uses of Mob in net.minecraft.world.entity.animal.parrot
Subclasses of Mob in net.minecraft.world.entity.animal.parrotFields in net.minecraft.world.entity.animal.parrot with type parameters of type Mob -
Uses of Mob in net.minecraft.world.entity.animal.pig
Subclasses of Mob in net.minecraft.world.entity.animal.pig -
Uses of Mob in net.minecraft.world.entity.animal.polarbear
Subclasses of Mob in net.minecraft.world.entity.animal.polarbearMethods in net.minecraft.world.entity.animal.polarbear with parameters of type MobModifier and TypeMethodDescriptionprotected voidPolarBear.PolarBearHurtByTargetGoal.alertOther(Mob other, LivingEntity hurtByMob) -
Uses of Mob in net.minecraft.world.entity.animal.rabbit
Subclasses of Mob in net.minecraft.world.entity.animal.rabbit -
Uses of Mob in net.minecraft.world.entity.animal.sheep
Subclasses of Mob in net.minecraft.world.entity.animal.sheep -
Uses of Mob in net.minecraft.world.entity.animal.sniffer
Subclasses of Mob in net.minecraft.world.entity.animal.sniffer -
Uses of Mob in net.minecraft.world.entity.animal.squid
Subclasses of Mob in net.minecraft.world.entity.animal.squid -
Uses of Mob in net.minecraft.world.entity.animal.turtle
Subclasses of Mob in net.minecraft.world.entity.animal.turtle -
Uses of Mob in net.minecraft.world.entity.animal.wolf
Subclasses of Mob in net.minecraft.world.entity.animal.wolf -
Uses of Mob in net.minecraft.world.entity.boss.enderdragon
Subclasses of Mob in net.minecraft.world.entity.boss.enderdragon -
Uses of Mob in net.minecraft.world.entity.boss.wither
Subclasses of Mob in net.minecraft.world.entity.boss.wither -
Uses of Mob in net.minecraft.world.entity.monster
Subclasses of Mob in net.minecraft.world.entity.monsterModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.monster declared as MobModifier and TypeFieldDescriptionprivate final MobGhast.GhastLookGoal.ghastprivate final MobGhast.GhastMoveControl.ghastprivate final MobGhast.RandomFloatAroundGoal.ghastFields in net.minecraft.world.entity.monster with type parameters of type MobMethods in net.minecraft.world.entity.monster that return MobMethods in net.minecraft.world.entity.monster with parameters of type MobModifier and TypeMethodDescriptionprivate static @Nullable Vec3Ghast.RandomFloatAroundGoal.chooseRandomPositionWithRestriction(Mob mob, Vec3 center, RandomSource random) static voidGhast.faceMovementDirection(Mob ghast) private static Optional<? extends LivingEntity> Zoglin.findNearestValidAttackTarget(ServerLevel level, Mob mob) static Vec3Ghast.RandomFloatAroundGoal.getSuitableFlyToPosition(Mob mob, int distanceToBlocks) voidprivate SpawnGroupDataStrider.spawnJockey(ServerLevelAccessor level, DifficultyInstance difficulty, Mob jockey, @Nullable SpawnGroupData jockeyGroupData) Method parameters in net.minecraft.world.entity.monster with type arguments of type MobModifier and TypeMethodDescriptionstatic booleanMonster.checkMonsterSpawnRules(EntityType<? extends Mob> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanMonster.checkSurfaceMonstersSpawnRules(EntityType<? extends Mob> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) Constructors in net.minecraft.world.entity.monster with parameters of type MobModifierConstructorDescriptionGhastLookGoal(Mob ghast) GhastMoveControl(Mob ghast, boolean careful, BooleanSupplier shouldBeStopped) PhantomLookControl(Mob mob) PhantomMoveControl(Mob mob) RandomFloatAroundGoal(Mob ghast) RandomFloatAroundGoal(Mob ghast, int distanceToBlocks) ShulkerLookControl(Mob mob) -
Uses of Mob in net.minecraft.world.entity.monster.breeze
Subclasses of Mob in net.minecraft.world.entity.monster.breezeMethods in net.minecraft.world.entity.monster.breeze with parameters of type MobModifier and TypeMethodDescriptionprotected voidBreezeAi.SlideToTargetSink.start(ServerLevel level, Mob body, long timestamp) protected voidBreezeAi.SlideToTargetSink.stop(ServerLevel level, Mob body, long timestamp) -
Uses of Mob in net.minecraft.world.entity.monster.creaking
Subclasses of Mob in net.minecraft.world.entity.monster.creaking -
Uses of Mob in net.minecraft.world.entity.monster.hoglin
Subclasses of Mob in net.minecraft.world.entity.monster.hoglin -
Uses of Mob in net.minecraft.world.entity.monster.illager
Subclasses of Mob in net.minecraft.world.entity.monster.illagerModifier and TypeClassDescriptionclassclassclassclassclassclassConstructors in net.minecraft.world.entity.monster.illager with parameters of type Mob -
Uses of Mob in net.minecraft.world.entity.monster.piglin
Subclasses of Mob in net.minecraft.world.entity.monster.piglin -
Uses of Mob in net.minecraft.world.entity.monster.skeleton
Subclasses of Mob in net.minecraft.world.entity.monster.skeletonModifier and TypeClassDescriptionclassclassclassclassclassclass -
Uses of Mob in net.minecraft.world.entity.monster.spider
Subclasses of Mob in net.minecraft.world.entity.monster.spider -
Uses of Mob in net.minecraft.world.entity.monster.warden
Subclasses of Mob in net.minecraft.world.entity.monster.warden -
Uses of Mob in net.minecraft.world.entity.monster.zombie
Subclasses of Mob in net.minecraft.world.entity.monster.zombieModifier and TypeClassDescriptionclassclassclassclassclass -
Uses of Mob in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc with parameters of type MobModifier and TypeMethodDescriptionstatic voidInventoryCarrier.pickUpItem(ServerLevel level, Mob mob, InventoryCarrier inventoryCarrier, ItemEntity itemEntity) -
Uses of Mob in net.minecraft.world.entity.npc.villager
Subclasses of Mob in net.minecraft.world.entity.npc.villager -
Uses of Mob in net.minecraft.world.entity.npc.wanderingtrader
Subclasses of Mob in net.minecraft.world.entity.npc.wanderingtrader -
Uses of Mob in net.minecraft.world.entity.raid
Subclasses of Mob in net.minecraft.world.entity.raid -
Uses of Mob in net.minecraft.world.item
Fields in net.minecraft.world.item with type parameters of type MobMethods in net.minecraft.world.item that return types with arguments of type MobModifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg(Player player, Mob parent, EntityType<? extends Mob> type, ServerLevel level, Vec3 pos, ItemStack spawnEggStack) Methods in net.minecraft.world.item with parameters of type MobModifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg(Player player, Mob parent, EntityType<? extends Mob> type, ServerLevel level, Vec3 pos, ItemStack spawnEggStack) Method parameters in net.minecraft.world.item with type arguments of type MobModifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg(Player player, Mob parent, EntityType<? extends Mob> type, ServerLevel level, Vec3 pos, ItemStack spawnEggStack) Constructor parameters in net.minecraft.world.item with type arguments of type MobModifierConstructorDescriptionMobBucketItem(EntityType<? extends Mob> type, Fluid content, SoundEvent emptySound, Item.Properties properties) -
Uses of Mob in net.minecraft.world.level
Methods in net.minecraft.world.level that return MobModifier and TypeMethodDescriptionprivate static @Nullable MobNaturalSpawner.getMobForSpawn(ServerLevel level, EntityType<?> type) Methods in net.minecraft.world.level with parameters of type MobModifier and TypeMethodDescriptionprivate voidNaturalSpawner.SpawnState.afterSpawn(Mob mob, ChunkAccess chunk) private static booleanNaturalSpawner.isValidPositionForMob(ServerLevel level, Mob mob, double nearestPlayerDistanceSqr) voidNaturalSpawner.AfterSpawnCallback.run(Mob mob, ChunkAccess levelChunk) -
Uses of Mob in net.minecraft.world.level.pathfinder
Fields in net.minecraft.world.level.pathfinder declared as MobMethods in net.minecraft.world.level.pathfinder with parameters of type MobModifier and TypeMethodDescription@Nullable PathPathFinder.findPath(PathNavigationRegion level, Mob entity, Set<BlockPos> targets, float maxPathLength, int reachRange, float maxVisitedNodesMultiplier) Finds a path to one of the specified positions and post-processes it or returns null if no path could be found within given accuracyNodeEvaluator.getPathType(Mob mob, BlockPos pos) abstract PathTypeNodeEvaluator.getPathTypeOfMob(PathfindingContext context, int x, int y, int z, Mob mob) SwimNodeEvaluator.getPathTypeOfMob(PathfindingContext context, int x, int y, int z, Mob mob) WalkNodeEvaluator.getPathTypeOfMob(PathfindingContext context, int x, int y, int z, Mob mob) static PathTypeWalkNodeEvaluator.getPathTypeStatic(Mob mob, BlockPos pos) FlyNodeEvaluator.iteratePathfindingStartNodeCandidatePositions(Mob mob) voidAmphibiousNodeEvaluator.prepare(PathNavigationRegion level, Mob entity) voidFlyNodeEvaluator.prepare(PathNavigationRegion level, Mob entity) voidNodeEvaluator.prepare(PathNavigationRegion level, Mob entity) voidSwimNodeEvaluator.prepare(PathNavigationRegion level, Mob entity) voidWalkNodeEvaluator.prepare(PathNavigationRegion level, Mob entity) Constructors in net.minecraft.world.level.pathfinder with parameters of type Mob -
Uses of Mob in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type MobModifier and TypeMethodDescriptiondefault @Nullable PathTypeIBlockExtension.getAdjacentBlockPathType(BlockState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent block to a pathfinding entity.default @Nullable PathTypeIBlockStateExtension.getAdjacentBlockPathType(BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent block to a pathfinding entity.default @Nullable PathTypeIFluidExtension.getAdjacentBlockPathType(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent fluid to a pathfinding entity.default @Nullable PathTypeIFluidStateExtension.getAdjacentBlockPathType(BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent fluid to a pathfinding entity.default @Nullable PathTypeIBlockExtension.getBlockPathType(BlockState state, BlockGetter level, BlockPos pos, @Nullable Mob mob) Gets the path type of this block when an entity is pathfinding.default @Nullable PathTypeIBlockStateExtension.getBlockPathType(BlockGetter level, BlockPos pos, @Nullable Mob mob) Gets the path type of this block when an entity is pathfinding.default @Nullable PathTypeIFluidExtension.getBlockPathType(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.default @Nullable PathTypeIFluidStateExtension.getBlockPathType(BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.default voidIItemExtension.onAnimalArmorTick(ItemStack stack, Level level, Mob horse) Called every tick when this item is equipped as an armor item by an animal.default voidIItemStackExtension.onAnimalArmorTick(Level level, Mob horse) -
Uses of Mob in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type MobModifier and TypeMethodDescriptionstatic booleanEventHooks.checkMobDespawn(Mob mob) FiresMobDespawnEventand returns true if the default logic should be ignored.static booleanEventHooks.checkSpawnPosition(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType) Checks if the current position of the passed mob is valid for spawning, by firingMobSpawnEvent.PositionCheck.
The default check is to perform the logical and ofMob.checkSpawnRules(LevelAccessor, EntitySpawnReason)andMob.checkSpawnObstruction(LevelReader).static booleanEventHooks.checkSpawnPositionSpawner(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType, SpawnData spawnData, BaseSpawner spawner) Specialized variant ofEventHooks.checkSpawnPosition(Mob, ServerLevelAccessor, EntitySpawnReason)for spawners, as they have slightly different checks, and pass through theBaseSpawnerto the event.static @Nullable SpawnGroupDataEventHooks.finalizeMobSpawn(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData) Finalizes the spawn of a mob by firing theFinalizeSpawnEventand callingMob.finalizeSpawn(ServerLevelAccessor, DifficultyInstance, EntitySpawnReason, SpawnGroupData)with the result.static FinalizeSpawnEventEventHooks.finalizeMobSpawnSpawner(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, IOwnedSpawner spawner, boolean def) Finalizes the spawn of a mob by firing theFinalizeSpawnEventand callingMob.finalizeSpawn(ServerLevelAccessor, DifficultyInstance, EntitySpawnReason, SpawnGroupData)with the result.static intEventHooks.getMaxSpawnClusterSize(Mob entity) FiresSpawnClusterSizeEventand returns the size as a result of the event.static MobSplitEventEventHooks.onMobSplit(Mob parent, List<Mob> children) Fires the mob split event.Method parameters in net.neoforged.neoforge.event with type arguments of type MobModifier and TypeMethodDescriptionstatic MobSplitEventEventHooks.onMobSplit(Mob parent, List<Mob> children) Fires the mob split event. -
Uses of Mob in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as MobModifier and TypeFieldDescriptionprotected final MobMobSplitEvent.parentprivate final MobBabyEntitySpawnEvent.parentAprivate final MobBabyEntitySpawnEvent.parentBFields in net.neoforged.neoforge.event.entity.living with type parameters of type MobMethods in net.neoforged.neoforge.event.entity.living that return MobModifier and TypeMethodDescriptionMobSpawnEvent.getEntity()SpawnClusterSizeEvent.getEntity()MobSplitEvent.getParent()Returns the parent mob, which is in the process of being removed.BabyEntitySpawnEvent.getParentA()BabyEntitySpawnEvent.getParentB()Methods in net.neoforged.neoforge.event.entity.living that return types with arguments of type MobModifier and TypeMethodDescriptionMobSplitEvent.getChildren()Returns the mutable list of all children.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type MobModifierConstructorDescriptionBabyEntitySpawnEvent(Mob parentA, Mob parentB, @Nullable AgeableMob proposedChild) FinalizeSpawnEvent(Mob entity, ServerLevelAccessor level, double x, double y, double z, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, @Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> spawner) MobDespawnEvent(Mob mob, ServerLevelAccessor level) Fire viaEventHooks.checkMobDespawn(Mob)protectedMobSpawnEvent(Mob mob, ServerLevelAccessor level, double x, double y, double z) MobSplitEvent(Mob parent, List<Mob> children) PositionCheck(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType, @Nullable BaseSpawner spawner) SpawnClusterSizeEvent(Mob entity) Constructor parameters in net.neoforged.neoforge.event.entity.living with type arguments of type Mob -
Uses of Mob in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type MobModifier and TypeMethodDescription@Nullable PathTypeFluidType.getAdjacentBlockPathType(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent fluid to a pathfinding entity.@Nullable PathTypeFluidType.getBlockPathType(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.
RegisterSpawnPlacementsEventinstead.