Uses of Class
net.minecraft.world.entity.Mob
Packages that use Mob
Package
Description
-
Uses of Mob in net.minecraft.client.model
Classes in net.minecraft.client.model with type parameters of type MobModifier and TypeClassDescriptionclassHoglinModel<T extends Mob & HoglinBase>classPiglinModel<T extends Mob>classSkeletonModel<T extends Mob & RangedAttackMob>Methods in net.minecraft.client.model with type parameters of type MobModifier and TypeMethodDescriptionstatic <T extends Mob>
voidAnimationUtils.swingWeaponDown(ModelPart rightArm, ModelPart leftArm, T mob, float attackTime, float ageInTicks) -
Uses of Mob in net.minecraft.client.renderer.entity
Classes in net.minecraft.client.renderer.entity with type parameters of type MobModifier and TypeClassDescriptionclassHumanoidMobRenderer<T extends Mob,M extends HumanoidModel<T>> classMobRenderer<T extends Mob,M extends EntityModel<T>> Methods in net.minecraft.client.renderer.entity that return types with arguments of type MobModifier and TypeMethodDescriptionprivate static PiglinModel<Mob> PiglinRenderer.createModel(EntityModelSet modelSet, ModelLayerLocation layer, boolean noRightEar) Methods in net.minecraft.client.renderer.entity with parameters of type MobModifier and TypeMethodDescriptionPiglinRenderer.getTextureLocation(Mob entity) Returns the location of an entity's texture.protected boolean -
Uses of Mob in net.minecraft.client.renderer.entity.layers
Classes in net.minecraft.client.renderer.entity.layers with type parameters of type MobModifier and TypeClassDescriptionclassSkeletonClothingLayer<T extends Mob & RangedAttackMob,M extends EntityModel<T>> -
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.spawnWithNoFreeWill(EntityType<E> type, float x, float y, float z) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill(EntityType<E> type, int x, int y, int z) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill(EntityType<E> type, BlockPos pos) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill(EntityType<E> type, Vec3 pos) Methods in net.minecraft.gametest.framework with parameters of type Mob -
Uses of Mob in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game with parameters of type MobModifier and TypeMethodDescriptionstatic voidDebugPackets.sendGoalSelector(Level level, Mob mob, GoalSelector goalSelector) static voidDebugPackets.sendPathFindingPacket(Level level, Mob mob, Path path, float maxDistanceToWaypoint) -
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, MobSpawnType spawnType, ServerLevel level, BlockPos pos, int attempts, int spread, int yOffset, SpawnUtil.Strategy strategy) -
Uses of Mob in net.minecraft.world.entity
Subclasses of Mob in net.minecraft.world.entityModifier and TypeClassDescriptionclassclassclassclassclassMethods in net.minecraft.world.entity with type parameters of type MobModifier and TypeMethodDescription<T extends Mob>
TMob.convertTo(EntityType<T> entityType, boolean transferInventory) private static <T extends Mob>
voidSpawnPlacements.register(EntityType<T> entityType, SpawnPlacementType spawnPlacementType, Heightmap.Types heightmapType, SpawnPlacements.SpawnPredicate<T> predicate) Deprecated.Methods in net.minecraft.world.entity with parameters of type MobModifier and TypeMethodDescriptionprotected voidMob.onOffspringSpawnedFromEgg(Player player, Mob child) Method parameters in net.minecraft.world.entity with type arguments of type MobModifier and TypeMethodDescriptionstatic booleanMob.checkMobSpawnRules(EntityType<? extends Mob> type, LevelAccessor level, MobSpawnType spawnType, BlockPos pos, RandomSource random) 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>Methods in net.minecraft.world.entity.ai.behavior with type parameters of type MobModifier and TypeMethodDescriptionGoToTargetLocation.create(MemoryModuleType<BlockPos> locationMemory, int closeEnoughDist, float speedModifier) static <E extends Mob>
BehaviorControl<E> StartAttacking.create(Function<E, Optional<? extends LivingEntity>> targetFinder) static <E extends Mob>
BehaviorControl<E> StartAttacking.create(Predicate<E> canAttack, Function<E, Optional<? extends LivingEntity>> targetFinder) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create()static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(BiConsumer<E, LivingEntity> onStopAttacking) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(Predicate<LivingEntity> canStopAttacking) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create(Predicate<LivingEntity> canStopAttacking, BiConsumer<E, LivingEntity> onStopAttacking, boolean canGrowTiredOfTryingToReachTarget) static <E extends Mob>
booleanLongJumpToRandomPos.defaultAcceptableLandingSpot(E mob, BlockPos pos) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type MobModifier and TypeMethodDescriptionBackUpIfTooClose.create(int tooCloseDistance, float strafeSpeed) MeleeAttack.create(int cooldownBetweenAttacks) 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 mob, Vec3 target, float maxJumpVelocity, int angle, boolean requireClearTransition) protected Vec3LongJumpToRandomPos.calculateOptimalJumpVector(Mob mob, Vec3 target) protected booleanJumpOnBed.canStillUse(ServerLevel level, Mob entity, long gameTime) protected booleanLongJumpMidJump.canStillUse(ServerLevel level, Mob entity, long gameTime) protected booleanLongJumpToRandomPos.canStillUse(ServerLevel level, Mob entity, long gameTime) protected booleanLookAtTargetSink.canStillUse(ServerLevel level, Mob entity, long gameTime) protected booleanMoveToTargetSink.canStillUse(ServerLevel level, Mob entity, long gameTime) protected booleanSwim.canStillUse(ServerLevel level, Mob entity, long gameTime) protected booleanJumpOnBed.checkExtraStartConditions(ServerLevel level, Mob owner) protected booleanLongJumpToRandomPos.checkExtraStartConditions(ServerLevel level, Mob owner) protected booleanMoveToTargetSink.checkExtraStartConditions(ServerLevel level, Mob owner) protected booleanSwim.checkExtraStartConditions(ServerLevel level, Mob owner) static PathAcquirePoi.findPathToPois(Mob mob, Set<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>> poiPositions) private static BlockPosGoToTargetLocation.getNearbyPos(Mob mob, BlockPos pos) JumpOnBed.getNearestBed(Mob mob) private static booleanLongJumpUtil.isClearTransition(Mob mob, EntityDimensions dimensions, Vec3 startPos, Vec3 endPos) private static booleanMeleeAttack.isHoldingUsableProjectileWeapon(Mob mob) static booleanBehaviorUtils.isWithinAttackRange(Mob mob, LivingEntity target, int cooldown) private voidCrossbowAttack.lookAtTarget(Mob shooter, LivingEntity target) private booleanJumpOnBed.nearBed(ServerLevel level, Mob mob) private booleanJumpOnBed.onBedSurface(ServerLevel level, Mob mob) private booleanJumpOnBed.onOrOverBed(ServerLevel level, Mob mob) private booleanMoveToTargetSink.reachedTarget(Mob mob, WalkTarget target) static booleanSwim.shouldSwim(Mob mob) protected voidJumpOnBed.start(ServerLevel level, Mob entity, long gameTime) protected voidLongJumpMidJump.start(ServerLevel level, Mob entity, long gameTime) protected voidMoveToTargetSink.start(ServerLevel level, Mob entity, long gameTime) protected voidRandomLookAround.start(ServerLevel level, Mob entity, long gameTime) private voidJumpOnBed.startWalkingTowardsBed(Mob mob, BlockPos pos) protected voidJumpOnBed.stop(ServerLevel level, Mob entity, long gameTime) protected voidLongJumpMidJump.stop(ServerLevel level, Mob entity, long gameTime) protected voidLookAtTargetSink.stop(ServerLevel level, Mob entity, long gameTime) protected voidMoveToTargetSink.stop(ServerLevel level, Mob entity, long gameTime) protected voidJumpOnBed.tick(ServerLevel level, Mob owner, long gameTime) protected voidLookAtTargetSink.tick(ServerLevel level, Mob owner, long gameTime) protected voidMoveToTargetSink.tick(ServerLevel level, Mob owner, long gameTime) protected voidSwim.tick(ServerLevel level, Mob owner, long gameTime) private booleanJumpOnBed.tiredOfJumping(ServerLevel level, Mob mob) private booleanJumpOnBed.tiredOfWalking(ServerLevel level, Mob mob) private booleanMoveToTargetSink.tryComputePath(Mob mob, WalkTarget target, long time) -
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 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.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 doorBreakTime, 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.InteractGoal(Mob p_148111_, Class<? extends LivingEntity> p_148112_, float p_148113_) InteractGoal(Mob p_25415_, Class<? extends LivingEntity> p_25416_, float p_25417_, float p_25418_) 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 closeDoor) RandomLookAroundGoal(Mob mob) -
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 mob, LivingEntity target) 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, Predicate<LivingEntity> targetPredicate) NearestAttackableTargetGoal(Mob mob, Class<T> targetType, int randomInterval, boolean mustSee, boolean mustReach, Predicate<LivingEntity> targetPredicate) 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
Fields 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 entity) protected voidNearestItemSensor.doTick(ServerLevel level, Mob entity) 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.animalModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.animal with type parameters of type MobMethods in net.minecraft.world.entity.animal with parameters of type MobModifier and TypeMethodDescriptionprotected voidBee.BeeHurtByOtherGoal.alertOther(Mob mob, LivingEntity target) protected voidPanda.PandaHurtByTargetGoal.alertOther(Mob mob, LivingEntity target) protected voidPolarBear.PolarBearHurtByTargetGoal.alertOther(Mob mob, LivingEntity target) static voidBucketable.loadDefaultDataFromBucketTag(Mob mob, CompoundTag tag) Deprecated.protected voidFox.onOffspringSpawnedFromEgg(Player player, Mob child) static voidBucketable.saveDefaultDataToBucketTag(Mob mob, ItemStack bucket) Deprecated.private voidConstructors in net.minecraft.world.entity.animal with parameters of type MobModifierConstructorDescription(package private)BeeLookControl(Mob mob) FoxLookAtPlayerGoal(Mob mob, Class<? extends LivingEntity> lookAtType, float lookDistance) -
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.camel
Subclasses of Mob in net.minecraft.world.entity.animal.camel -
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 mob, BlockPos pos) Constructors 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.horse
Subclasses of Mob in net.minecraft.world.entity.animal.horseModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclass -
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.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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.monster declared as MobMethods in net.minecraft.world.entity.monster that return MobMethods in net.minecraft.world.entity.monster with parameters of type MobModifier and TypeMethodDescriptionvoidprivate SpawnGroupDataStrider.spawnJockey(ServerLevelAccessor serverLevel, DifficultyInstance difficulty, Mob jockey, SpawnGroupData spawnData) Constructors in net.minecraft.world.entity.monster with parameters of type MobModifierConstructorDescriptionPhantomLookControl(Mob mob) PhantomMoveControl(Mob mob) ShulkerLookControl(Mob mob) VindicatorBreakDoorGoal(Mob p_34112_) -
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 p_312732_, Mob p_312543_, long p_312612_) protected voidBreezeAi.SlideToTargetSink.stop(ServerLevel p_312932_, Mob p_311871_, long p_312594_) -
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.piglin
Subclasses of Mob in net.minecraft.world.entity.monster.piglin -
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.npc
Subclasses of Mob in net.minecraft.world.entity.npcMethods in net.minecraft.world.entity.npc with parameters of type MobModifier and TypeMethodDescriptionstatic voidInventoryCarrier.pickUpItem(Mob mob, InventoryCarrier carrier, ItemEntity itemEntity) -
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 MobModifier and TypeFieldDescriptionprivate static final Map<EntityType<? extends Mob>, SpawnEggItem> SpawnEggItem.BY_IDMethods in net.minecraft.world.item that return types with arguments of type MobModifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg(Player player, Mob p_mob, EntityType<? extends Mob> entityType, ServerLevel serverLevel, Vec3 pos, ItemStack stack) Methods in net.minecraft.world.item with parameters of type MobModifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg(Player player, Mob p_mob, EntityType<? extends Mob> entityType, ServerLevel serverLevel, Vec3 pos, ItemStack stack) Method parameters in net.minecraft.world.item with type arguments of type MobModifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg(Player player, Mob p_mob, EntityType<? extends Mob> entityType, ServerLevel serverLevel, Vec3 pos, ItemStack stack) Constructor parameters in net.minecraft.world.item with type arguments of type MobModifierConstructorDescriptionSpawnEggItem(EntityType<? extends Mob> defaultType, int backgroundColor, int highlightColor, Item.Properties properties) Deprecated.Forge: UseDeferredSpawnEggIteminstead for suppliers -
Uses of Mob in net.minecraft.world.level
Methods in net.minecraft.world.level that return MobModifier and TypeMethodDescriptionprivate static MobNaturalSpawner.getMobForSpawn(ServerLevel level, EntityType<?> entityType) 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 distance) voidNaturalSpawner.AfterSpawnCallback.run(Mob mob, ChunkAccess chunk) -
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 TypeMethodDescriptionPathFinder.findPath(PathNavigationRegion region, Mob mob, Set<BlockPos> targetPositions, float maxRange, int accuracy, float searchDepthMultiplier) 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 mob) voidFlyNodeEvaluator.prepare(PathNavigationRegion level, Mob mob) voidNodeEvaluator.prepare(PathNavigationRegion level, Mob mob) voidSwimNodeEvaluator.prepare(PathNavigationRegion level, Mob mob) voidWalkNodeEvaluator.prepare(PathNavigationRegion level, Mob mob) Constructors in net.minecraft.world.level.pathfinder with parameters of type Mob -
Uses of Mob in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common with type parameters of type MobModifier and TypeFieldDescriptionprivate static final Map<EntityType<? extends Mob>, DeferredSpawnEggItem> DeferredSpawnEggItem.TYPE_MAPprivate final Supplier<? extends EntityType<? extends Mob>> DeferredSpawnEggItem.typeSupplierConstructor parameters in net.neoforged.neoforge.common with type arguments of type MobModifierConstructorDescriptionDeferredSpawnEggItem(Supplier<? extends EntityType<? extends Mob>> type, int backgroundColor, int highlightColor, Item.Properties props) -
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 a horse.invalid reference
that can wear armor
default voidIItemStackExtension.onAnimalArmorTick(Level level, Mob horse) Called every tick when this item is equipped as an armor item by a horsethat can wear armor}.invalid reference
Mob#canWearBodyArmor()
-
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, MobSpawnType 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 ofcheckSpawnRules(net.minecraft.world.level.LevelAccessor, net.minecraft.world.entity.MobSpawnType)andcheckSpawnObstruction(net.minecraft.world.level.LevelReader).static booleanEventHooks.checkSpawnPositionSpawner(Mob mob, ServerLevelAccessor level, MobSpawnType spawnType, SpawnData spawnData, BaseSpawner spawner) Specialized variant ofEventHooks.checkSpawnPosition(net.minecraft.world.entity.Mob, net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.entity.MobSpawnType)for spawners, as they have slightly different checks, and pass through theBaseSpawnerto the event.static @Nullable SpawnGroupDataEventHooks.finalizeMobSpawn(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData) Finalizes the spawn of a mob by firing theFinalizeSpawnEventand callingfinalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.SpawnGroupData)with the result.static FinalizeSpawnEventEventHooks.finalizeMobSpawnSpawner(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData, IOwnedSpawner spawner, boolean def) Finalizes the spawn of a mob by firing theFinalizeSpawnEventand callingfinalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.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, MobSpawnType 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, MobSpawnType 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.