Uses of Class
net.minecraft.world.entity.Mob
Package
Description
-
Uses of Mob in net.minecraft.client.model
Modifier and TypeClassDescriptionclass
HoglinModel<T extends Mob & HoglinBase>
class
PiglinModel<T extends Mob>
class
SkeletonModel<T extends Mob & RangedAttackMob>
Modifier and TypeMethodDescriptionstatic <T extends Mob>
voidAnimationUtils.swingWeaponDown
(ModelPart p_102092_, ModelPart p_102093_, T p_102094_, float p_102095_, float p_102096_) -
Uses of Mob in net.minecraft.client.renderer.entity
Modifier and TypeClassDescriptionclass
HumanoidMobRenderer<T extends Mob,
M extends HumanoidModel<T>> class
MobRenderer<T extends Mob,
M extends EntityModel<T>> Modifier and TypeMethodDescriptionprivate static PiglinModel
<Mob> PiglinRenderer.createModel
(EntityModelSet p_174350_, ModelLayerLocation p_174351_, boolean p_174352_) Modifier and TypeMethodDescriptionPiglinRenderer.getTextureLocation
(Mob p_115708_) protected boolean
-
Uses of Mob in net.minecraft.client.renderer.entity.layers
Modifier and TypeClassDescriptionclass
SkeletonClothingLayer<T extends Mob & RangedAttackMob,
M extends EntityModel<T>> -
Uses of Mob in net.minecraft.gametest.framework
Modifier and TypeMethodDescription<E extends Mob>
EGameTestHelper.spawnWithNoFreeWill
(EntityType<E> p_177317_, float p_177318_, float p_177319_, float p_177320_) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill
(EntityType<E> p_177322_, int p_177323_, int p_177324_, int p_177325_) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill
(EntityType<E> p_177330_, BlockPos p_177331_) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill
(EntityType<E> p_177327_, Vec3 p_177328_) -
Uses of Mob in net.minecraft.network.protocol.game
Modifier and TypeMethodDescriptionstatic void
DebugPackets.sendGoalSelector
(Level p_133700_, Mob p_133701_, GoalSelector p_133702_) static void
DebugPackets.sendPathFindingPacket
(Level p_133704_, Mob p_133705_, Path p_133706_, float p_133707_) -
Uses of Mob in net.minecraft.server.level
-
Uses of Mob in net.minecraft.util
Modifier and TypeMethodDescriptionSpawnUtil.trySpawnMob
(EntityType<T> p_216404_, MobSpawnType p_216405_, ServerLevel p_216406_, BlockPos p_216407_, int p_216408_, int p_216409_, int p_216410_, SpawnUtil.Strategy p_216411_) -
Uses of Mob in net.minecraft.world.entity
Modifier and TypeClassDescriptionclass
class
class
class
class
Modifier and TypeMethodDescription<T extends Mob>
TMob.convertTo
(EntityType<T> p_21407_, boolean p_21408_) private static <T extends Mob>
voidSpawnPlacements.register
(EntityType<T> p_21755_, SpawnPlacementType p_321847_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) Modifier and TypeMethodDescriptionprotected void
Mob.onOffspringSpawnedFromEgg
(Player p_21422_, Mob p_21423_) Modifier and TypeMethodDescriptionstatic boolean
Mob.checkMobSpawnRules
(EntityType<? extends Mob> p_217058_, LevelAccessor p_217059_, MobSpawnType p_217060_, BlockPos p_217061_, RandomSource p_217062_) -
Uses of Mob in net.minecraft.world.entity.ai.behavior
Modifier and TypeClassDescriptionclass
CrossbowAttack<E extends Mob & CrossbowAttackMob,
T extends LivingEntity> class
LongJumpToPreferredBlock<E extends Mob>
class
LongJumpToRandomPos<E extends Mob>
Modifier and TypeMethodDescriptionGoToTargetLocation.create
(MemoryModuleType<BlockPos> p_259938_, int p_259740_, float p_259957_) static <E extends Mob>
BehaviorControl<E> StartAttacking.create
(Function<E, Optional<? extends LivingEntity>> p_259868_) static <E extends Mob>
BehaviorControl<E> StartAttacking.create
(Predicate<E> p_259618_, Function<E, Optional<? extends LivingEntity>> p_259435_) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create()
static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create
(BiConsumer<E, LivingEntity> p_260165_) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create
(Predicate<LivingEntity> p_259762_) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create
(Predicate<LivingEntity> p_260357_, BiConsumer<E, LivingEntity> p_259568_, boolean p_260319_) static <E extends Mob>
booleanLongJumpToRandomPos.defaultAcceptableLandingSpot
(E p_251540_, BlockPos p_248879_) Modifier and TypeMethodDescriptionBackUpIfTooClose.create
(int p_259782_, float p_259071_) MeleeAttack.create
(int p_259758_) static BehaviorControl
<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create
(float p_259228_) static BehaviorControl
<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create
(Function<LivingEntity, Float> p_259507_) Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle
(Mob p_311799_, Vec3 p_312876_, float p_312407_, int p_311991_, boolean p_312784_) protected Vec3
LongJumpToRandomPos.calculateOptimalJumpVector
(Mob p_217304_, Vec3 p_217305_) protected boolean
JumpOnBed.canStillUse
(ServerLevel p_23383_, Mob p_23384_, long p_23385_) protected boolean
LongJumpMidJump.canStillUse
(ServerLevel p_147603_, Mob p_147604_, long p_147605_) protected boolean
LongJumpToRandomPos.canStillUse
(ServerLevel p_147653_, Mob p_147654_, long p_147655_) protected boolean
LookAtTargetSink.canStillUse
(ServerLevel p_23481_, Mob p_23482_, long p_23483_) protected boolean
MoveToTargetSink.canStillUse
(ServerLevel p_23586_, Mob p_23587_, long p_23588_) protected boolean
Swim.canStillUse
(ServerLevel p_24391_, Mob p_24392_, long p_24393_) protected boolean
JumpOnBed.checkExtraStartConditions
(ServerLevel p_23346_, Mob p_23347_) protected boolean
LongJumpToRandomPos.checkExtraStartConditions
(ServerLevel p_147650_, Mob p_147651_) protected boolean
MoveToTargetSink.checkExtraStartConditions
(ServerLevel p_23583_, Mob p_23584_) protected boolean
Swim.checkExtraStartConditions
(ServerLevel p_24388_, Mob p_24389_) static Path
AcquirePoi.findPathToPois
(Mob p_217098_, Set<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>> p_217099_) private static BlockPos
GoToTargetLocation.getNearbyPos
(Mob p_217251_, BlockPos p_217252_) JumpOnBed.getNearestBed
(Mob p_23360_) private static boolean
LongJumpUtil.isClearTransition
(Mob p_312910_, EntityDimensions p_312734_, Vec3 p_311995_, Vec3 p_312896_) private static boolean
MeleeAttack.isHoldingUsableProjectileWeapon
(Mob p_23528_) static boolean
BehaviorUtils.isWithinAttackRange
(Mob p_22633_, LivingEntity p_22634_, int p_22635_) private void
CrossbowAttack.lookAtTarget
(Mob p_22798_, LivingEntity p_22799_) private boolean
JumpOnBed.nearBed
(ServerLevel p_23369_, Mob p_23370_) private boolean
JumpOnBed.onBedSurface
(ServerLevel p_23391_, Mob p_23392_) private boolean
JumpOnBed.onOrOverBed
(ServerLevel p_23380_, Mob p_23381_) private boolean
MoveToTargetSink.reachedTarget
(Mob p_23590_, WalkTarget p_23591_) static boolean
Swim.shouldSwim
(Mob p_316787_) protected void
JumpOnBed.start
(ServerLevel p_23349_, Mob p_23350_, long p_23351_) protected void
LongJumpMidJump.start
(ServerLevel p_147611_, Mob p_147612_, long p_147613_) protected void
MoveToTargetSink.start
(ServerLevel p_23609_, Mob p_23610_, long p_23611_) protected void
RandomLookAround.start
(ServerLevel p_250941_, Mob p_248765_, long p_251801_) private void
JumpOnBed.startWalkingTowardsBed
(Mob p_23362_, BlockPos p_23363_) protected void
JumpOnBed.stop
(ServerLevel p_23372_, Mob p_23373_, long p_23374_) protected void
LongJumpMidJump.stop
(ServerLevel p_147619_, Mob p_147620_, long p_147621_) protected void
LookAtTargetSink.stop
(ServerLevel p_23492_, Mob p_23493_, long p_23494_) protected void
MoveToTargetSink.stop
(ServerLevel p_23601_, Mob p_23602_, long p_23603_) protected void
JumpOnBed.tick
(ServerLevel p_23394_, Mob p_23395_, long p_23396_) protected void
LookAtTargetSink.tick
(ServerLevel p_23503_, Mob p_23504_, long p_23505_) protected void
MoveToTargetSink.tick
(ServerLevel p_23617_, Mob p_23618_, long p_23619_) protected void
Swim.tick
(ServerLevel p_24399_, Mob p_24400_, long p_24401_) private boolean
JumpOnBed.tiredOfJumping
(ServerLevel p_23401_, Mob p_23402_) private boolean
JumpOnBed.tiredOfWalking
(ServerLevel p_23398_, Mob p_23399_) private boolean
MoveToTargetSink.tryComputePath
(Mob p_23593_, WalkTarget p_23594_, long p_23595_) -
Uses of Mob in net.minecraft.world.entity.ai.control
Modifier and TypeFieldDescriptionprivate final Mob
BodyRotationControl.mob
private final Mob
JumpControl.mob
protected final Mob
LookControl.mob
protected final Mob
MoveControl.mob
ModifierConstructorDescriptionBodyRotationControl
(Mob p_24879_) FlyingMoveControl
(Mob p_24893_, int p_24894_, boolean p_24895_) JumpControl
(Mob p_24900_) LookControl
(Mob p_24945_) MoveControl
(Mob p_24983_) SmoothSwimmingLookControl
(Mob p_148061_, int p_148062_) SmoothSwimmingMoveControl
(Mob p_148070_, int p_148071_, int p_148072_, float p_148073_, float p_148074_, boolean p_148075_) -
Uses of Mob in net.minecraft.world.entity.ai.goal
Modifier and TypeClassDescriptionclass
RangedBowAttackGoal<T extends Mob & RangedAttackMob>
class
RangedCrossbowAttackGoal<T extends Mob & CrossbowAttackMob>
class
UseItemGoal<T extends Mob>
Modifier and TypeFieldDescriptionprivate Mob
FollowMobGoal.followingMob
private final Mob
ClimbOnTopOfPowderSnowGoal.mob
protected Mob
DoorInteractGoal.mob
private final Mob
EatBlockGoal.mob
private final Mob
FloatGoal.mob
private final Mob
FollowMobGoal.mob
private final Mob
LeapAtTargetGoal.mob
protected final Mob
LookAtPlayerGoal.mob
private final Mob
OcelotAttackGoal.mob
private final Mob
RandomLookAroundGoal.mob
private final Mob
RangedAttackGoal.mob
private final T
RangedBowAttackGoal.mob
private final T
RangedCrossbowAttackGoal.mob
private final T
UseItemGoal.mob
private final Mob
RemoveBlockGoal.removerMob
ModifierConstructorDescriptionBreakDoorGoal
(Mob p_25087_, int p_25088_, Predicate<Difficulty> p_25089_) BreakDoorGoal
(Mob p_25091_, Predicate<Difficulty> p_25092_) ClimbOnTopOfPowderSnowGoal
(Mob p_204055_, Level p_204056_) DoorInteractGoal
(Mob p_25193_) EatBlockGoal
(Mob p_25207_) FollowMobGoal
(Mob p_25271_, double p_25272_, float p_25273_, float p_25274_) 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 p_25492_, float p_25493_) LookAtPlayerGoal
(Mob p_25520_, Class<? extends LivingEntity> p_25521_, float p_25522_) LookAtPlayerGoal
(Mob p_25524_, Class<? extends LivingEntity> p_25525_, float p_25526_, float p_25527_) LookAtPlayerGoal
(Mob p_148118_, Class<? extends LivingEntity> p_148119_, float p_148120_, float p_148121_, boolean p_148122_) OcelotAttackGoal
(Mob p_25658_) OpenDoorGoal
(Mob p_25678_, boolean p_25679_) RandomLookAroundGoal
(Mob p_25720_) -
Uses of Mob in net.minecraft.world.entity.ai.goal.target
Modifier and TypeFieldDescriptionprivate final T
ResetUniversalAngerTargetGoal.mob
protected final Mob
TargetGoal.mob
Modifier and TypeMethodDescriptionprotected void
HurtByTargetGoal.alertOther
(Mob p_26042_, LivingEntity p_26043_) ModifierConstructorDescriptionNearestAttackableTargetGoal
(Mob p_26060_, Class<T> p_26061_, boolean p_26062_) NearestAttackableTargetGoal
(Mob p_26064_, Class<T> p_26065_, boolean p_26066_, boolean p_26067_) NearestAttackableTargetGoal
(Mob p_199891_, Class<T> p_199892_, boolean p_199893_, Predicate<LivingEntity> p_199894_) NearestAttackableTargetGoal
(Mob p_26053_, Class<T> p_26054_, int p_26055_, boolean p_26056_, boolean p_26057_, Predicate<LivingEntity> p_26058_) TargetGoal
(Mob p_26140_, boolean p_26141_) TargetGoal
(Mob p_26143_, boolean p_26144_, boolean p_26145_) -
Uses of Mob in net.minecraft.world.entity.ai.memory
Modifier and TypeFieldDescriptionstatic final MemoryModuleType
<Mob> MemoryModuleType.NEAREST_VISIBLE_NEMESIS
-
Uses of Mob in net.minecraft.world.entity.ai.sensing
Modifier and TypeMethodDescriptionprotected void
NearestBedSensor.doTick
(ServerLevel p_26685_, Mob p_26686_) protected void
NearestItemSensor.doTick
(ServerLevel p_26697_, Mob p_26698_) -
Uses of Mob in net.minecraft.world.entity.ai.util
-
Uses of Mob in net.minecraft.world.entity.ambient
-
Uses of Mob in net.minecraft.world.entity.animal
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
Modifier and TypeMethodDescriptionprotected void
Bee.BeeHurtByOtherGoal.alertOther
(Mob p_28035_, LivingEntity p_28036_) protected void
Panda.PandaHurtByTargetGoal.alertOther
(Mob p_29295_, LivingEntity p_29296_) protected void
PolarBear.PolarBearHurtByTargetGoal.alertOther
(Mob p_29580_, LivingEntity p_29581_) static void
Bucketable.loadDefaultDataFromBucketTag
(Mob p_148826_, CompoundTag p_148827_) Deprecated.protected void
Fox.onOffspringSpawnedFromEgg
(Player p_28481_, Mob p_28482_) static void
Bucketable.saveDefaultDataToBucketTag
(Mob p_148823_, ItemStack p_148824_) Deprecated.private void
ModifierConstructorDescription(package private)
BeeLookControl
(Mob p_28059_) FoxLookAtPlayerGoal
(Mob p_28707_, Class<? extends LivingEntity> p_28708_, float p_28709_) -
Uses of Mob in net.minecraft.world.entity.animal.allay
-
Uses of Mob in net.minecraft.world.entity.animal.armadillo
-
Uses of Mob in net.minecraft.world.entity.animal.axolotl
-
Uses of Mob in net.minecraft.world.entity.animal.camel
-
Uses of Mob in net.minecraft.world.entity.animal.frog
Modifier and TypeMethodDescriptionprivate static <E extends Mob>
booleanFrogAi.isAcceptableLandingSpot
(E p_249699_, BlockPos p_250057_) -
Uses of Mob in net.minecraft.world.entity.animal.goat
-
Uses of Mob in net.minecraft.world.entity.animal.horse
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
-
Uses of Mob in net.minecraft.world.entity.animal.sniffer
-
Uses of Mob in net.minecraft.world.entity.boss.enderdragon
-
Uses of Mob in net.minecraft.world.entity.boss.wither
-
Uses of Mob in net.minecraft.world.entity.monster
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
Modifier and TypeMethodDescriptionvoid
private SpawnGroupData
Strider.spawnJockey
(ServerLevelAccessor p_33882_, DifficultyInstance p_33883_, Mob p_33884_, SpawnGroupData p_33885_) ModifierConstructorDescriptionPhantomBodyRotationControl
(Mob p_33216_) PhantomLookControl
(Mob p_33235_) PhantomMoveControl
(Mob p_33241_) ShulkerBodyRotationControl
(Mob p_149816_) ShulkerLookControl
(Mob p_149820_) VindicatorBreakDoorGoal
(Mob p_34112_) -
Uses of Mob in net.minecraft.world.entity.monster.breeze
Modifier and TypeMethodDescriptionprotected void
BreezeAi.SlideToTargetSink.start
(ServerLevel p_312732_, Mob p_312543_, long p_312612_) protected void
BreezeAi.SlideToTargetSink.stop
(ServerLevel p_312932_, Mob p_311871_, long p_312594_) -
Uses of Mob in net.minecraft.world.entity.monster.hoglin
-
Uses of Mob in net.minecraft.world.entity.monster.piglin
-
Uses of Mob in net.minecraft.world.entity.monster.warden
-
Uses of Mob in net.minecraft.world.entity.npc
Modifier and TypeMethodDescriptionstatic void
InventoryCarrier.pickUpItem
(Mob p_219612_, InventoryCarrier p_219613_, ItemEntity p_219614_) -
Uses of Mob in net.minecraft.world.entity.raid
-
Uses of Mob in net.minecraft.world.item
Modifier and TypeFieldDescriptionprivate static final Map
<EntityType<? extends Mob>, SpawnEggItem> SpawnEggItem.BY_ID
Modifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg
(Player p_43216_, Mob p_43217_, EntityType<? extends Mob> p_43218_, ServerLevel p_43219_, Vec3 p_43220_, ItemStack p_43221_) Modifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg
(Player p_43216_, Mob p_43217_, EntityType<? extends Mob> p_43218_, ServerLevel p_43219_, Vec3 p_43220_, ItemStack p_43221_) Modifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg
(Player p_43216_, Mob p_43217_, EntityType<? extends Mob> p_43218_, ServerLevel p_43219_, Vec3 p_43220_, ItemStack p_43221_) ModifierConstructorDescriptionSpawnEggItem
(EntityType<? extends Mob> p_43207_, int p_43208_, int p_43209_, Item.Properties p_43210_) Deprecated. -
Uses of Mob in net.minecraft.world.level
Modifier and TypeMethodDescriptionprivate static Mob
NaturalSpawner.getMobForSpawn
(ServerLevel p_46989_, EntityType<?> p_46990_) Modifier and TypeMethodDescriptionprivate void
NaturalSpawner.SpawnState.afterSpawn
(Mob p_47132_, ChunkAccess p_47133_) private static boolean
NaturalSpawner.isValidPositionForMob
(ServerLevel p_46992_, Mob p_46993_, double p_46994_) void
NaturalSpawner.AfterSpawnCallback.run
(Mob p_47101_, ChunkAccess p_47102_) -
Uses of Mob in net.minecraft.world.level.pathfinder
Modifier and TypeMethodDescriptionPathFinder.findPath
(PathNavigationRegion p_77428_, Mob p_77429_, Set<BlockPos> p_77430_, float p_77431_, int p_77432_, float p_77433_) NodeEvaluator.getPathType
(Mob p_331317_, BlockPos p_331263_) abstract PathType
NodeEvaluator.getPathTypeOfMob
(PathfindingContext p_330720_, int p_326783_, int p_326930_, int p_326884_, Mob p_326798_) SwimNodeEvaluator.getPathTypeOfMob
(PathfindingContext p_330584_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_) WalkNodeEvaluator.getPathTypeOfMob
(PathfindingContext p_330551_, int p_326939_, int p_326943_, int p_326876_, Mob p_326786_) static PathType
WalkNodeEvaluator.getPathTypeStatic
(Mob p_332010_, BlockPos p_330520_) FlyNodeEvaluator.iteratePathfindingStartNodeCandidatePositions
(Mob p_263108_) void
AmphibiousNodeEvaluator.prepare
(PathNavigationRegion p_164671_, Mob p_164672_) void
FlyNodeEvaluator.prepare
(PathNavigationRegion p_77261_, Mob p_77262_) void
NodeEvaluator.prepare
(PathNavigationRegion p_77347_, Mob p_77348_) void
SwimNodeEvaluator.prepare
(PathNavigationRegion p_192959_, Mob p_192960_) void
WalkNodeEvaluator.prepare
(PathNavigationRegion p_77620_, Mob p_77621_) -
Uses of Mob in net.neoforged.neoforge.common
Modifier and TypeFieldDescriptionprivate static final Map
<EntityType<? extends Mob>, DeferredSpawnEggItem> DeferredSpawnEggItem.TYPE_MAP
private final Supplier
<? extends EntityType<? extends Mob>> DeferredSpawnEggItem.typeSupplier
ModifierConstructorDescriptionDeferredSpawnEggItem
(Supplier<? extends EntityType<? extends Mob>> type, int backgroundColor, int highlightColor, Item.Properties props) -
Uses of Mob in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault @Nullable PathType
IBlockExtension.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 PathType
IBlockStateExtension.getAdjacentBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent block to a pathfinding entity.default @Nullable PathType
IFluidExtension.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 PathType
IFluidStateExtension.getAdjacentBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent fluid to a pathfinding entity.default @Nullable PathType
IBlockExtension.getBlockPathType
(BlockState state, BlockGetter level, BlockPos pos, @Nullable Mob mob) Gets the path type of this block when an entity is pathfinding.default @Nullable PathType
IBlockStateExtension.getBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob) Gets the path type of this block when an entity is pathfinding.default @Nullable PathType
IFluidExtension.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 PathType
IFluidStateExtension.getBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.default void
IItemExtension.onAnimalArmorTick
(ItemStack stack, Level level, Mob horse) Called every tick when this item is equipped as an armor item by a horse that can wear armor.default void
IItemStackExtension.onAnimalArmorTick
(Level level, Mob horse) Called every tick when this item is equipped as an armor item by a horse canWearBodyArmor() that can wear armor}. -
Uses of Mob in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic boolean
EventHooks.checkMobDespawn
(Mob mob) FiresMobDespawnEvent
and returns true if the default logic should be ignored.static boolean
EventHooks.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 boolean
EventHooks.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 theBaseSpawner
to the event.static @Nullable SpawnGroupData
EventHooks.finalizeMobSpawn
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData) Finalizes the spawn of a mob by firing theFinalizeSpawnEvent
and callingfinalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.SpawnGroupData)
with the result.static FinalizeSpawnEvent
EventHooks.finalizeMobSpawnSpawner
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData, IOwnedSpawner spawner, boolean def) Finalizes the spawn of a mob by firing theFinalizeSpawnEvent
and callingfinalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.SpawnGroupData)
with the result.static int
EventHooks.getMaxSpawnClusterSize
(Mob entity) FiresSpawnClusterSizeEvent
and returns the size as a result of the event.static MobSplitEvent
EventHooks.onMobSplit
(Mob parent, List<Mob> children) Fires the mob split event.Modifier and TypeMethodDescriptionstatic MobSplitEvent
EventHooks.onMobSplit
(Mob parent, List<Mob> children) Fires the mob split event. -
Uses of Mob in net.neoforged.neoforge.event.entity.living
Modifier and TypeFieldDescriptionprotected final Mob
MobSplitEvent.parent
private final Mob
BabyEntitySpawnEvent.parentA
private final Mob
BabyEntitySpawnEvent.parentB
Modifier and TypeMethodDescriptionMobSpawnEvent.getEntity()
SpawnClusterSizeEvent.getEntity()
MobSplitEvent.getParent()
Returns the parent mob, which is in the process of being removed.BabyEntitySpawnEvent.getParentA()
BabyEntitySpawnEvent.getParentB()
Modifier and TypeMethodDescriptionMobSplitEvent.getChildren()
Returns the mutable list of all children.ModifierConstructorDescriptionBabyEntitySpawnEvent
(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)
protected
MobSpawnEvent
(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) -
Uses of Mob in net.neoforged.neoforge.fluids
Modifier and TypeMethodDescription@Nullable PathType
FluidType.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 PathType
FluidType.getBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding. -
Uses of Mob in net.neoforged.neoforge.oldtest.entity
DeferredSpawnEggItem
instead for suppliers