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 TypeClassDescriptionclass
AbstractHoglinRenderer<T extends Mob & HoglinBase>
class
AgeableMobRenderer<T extends Mob,
S extends LivingEntityRenderState, M extends EntityModel<? super S>> Deprecated.class
HumanoidMobRenderer<T extends Mob,
S extends HumanoidRenderState, M extends HumanoidModel<S>> class
MobRenderer<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.spawnWithNoFreeWill
(EntityType<E> pType, float pX, float pY, float pZ) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill
(EntityType<E> pType, int pX, int pY, int pZ) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill
(EntityType<E> pType, BlockPos pPos) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill
(EntityType<E> pType, Vec3 pPos) 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 void
DebugPackets.sendGoalSelector
(Level pLevel, Mob pMob, GoalSelector pGoalSelector) static void
DebugPackets.sendPathFindingPacket
(Level pLevel, Mob pMob, Path pPath, float pMaxDistanceToWaypoint) -
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> pEntityType, EntitySpawnReason pSpawnReason, ServerLevel pLevel, BlockPos pPos, int pAttempts, int pRange, int pYOffset, SpawnUtil.Strategy pStrategy, boolean pCheckCollision) -
Uses of Mob in net.minecraft.world.entity
Classes in net.minecraft.world.entity with type parameters of type MobModifier and TypeInterfaceDescriptionstatic interface
ConversionParams.AfterConversion<T extends Mob>
Subclasses of Mob in net.minecraft.world.entityModifier and TypeClassDescriptionclass
class
class
class
Methods in net.minecraft.world.entity with type parameters of type MobModifier and TypeMethodDescription<T extends Mob>
TMob.convertTo
(EntityType<T> pEntityType, ConversionParams pConversionParams, ConversionParams.AfterConversion<T> pAfterConversion) <T extends Mob>
TMob.convertTo
(EntityType<T> pEntityType, ConversionParams pConversionParams, EntitySpawnReason pSpawnReason, ConversionParams.AfterConversion<T> pAfterConversion) private static <T extends Mob>
voidSpawnPlacements.register
(EntityType<T> pEntityType, SpawnPlacementType pSpawnPlacementType, Heightmap.Types pHeightmapType, SpawnPlacements.SpawnPredicate<T> pPredicate) Deprecated.Methods in net.minecraft.world.entity with parameters of type MobModifier and TypeMethodDescriptionprivate boolean
Entity.attemptToShearEquipment
(Player pPlayer, InteractionHand pHand, ItemStack pStack, Mob pMob) (package private) abstract void
ConversionType.convert
(Mob pOldMob, Mob pNewMob, ConversionParams pConversionParams) (package private) void
ConversionType.convertCommon
(Mob pOldMob, Mob pNewMob, ConversionParams pConversionParams) private static <T> void
ConversionType.copyComponent
(Mob pOldMob, Mob pNewMob, DataComponentType<T> pComponent) protected void
Mob.onOffspringSpawnedFromEgg
(Player pPlayer, Mob pChild) static ConversionParams
Method parameters in net.minecraft.world.entity with type arguments of type MobModifier and TypeMethodDescriptionstatic boolean
Mob.checkMobSpawnRules
(EntityType<? extends Mob> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) 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 TypeClassDescriptionclass
CrossbowAttack<E extends Mob & CrossbowAttackMob,
T extends LivingEntity> class
LongJumpToPreferredBlock<E extends Mob>
class
LongJumpToRandomPos<E extends Mob>
class
Methods in net.minecraft.world.entity.ai.behavior with type parameters of type MobModifier and TypeMethodDescriptionGoToTargetLocation.create
(MemoryModuleType<BlockPos> pLocationMemory, int pCloseEnoughDist, float pSpeedModifier) MeleeAttack.create
(int pAttackCooldown) static <E extends Mob>
BehaviorControl<E> StartAttacking.create
(StartAttacking.StartAttackingCondition<E> pCondition, StartAttacking.TargetFinder<E> pTargetFinder) static <E extends Mob>
BehaviorControl<E> StartAttacking.create
(StartAttacking.TargetFinder<E> pTargetFinder) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create()
static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create
(StopAttackingIfTargetInvalid.StopAttackCondition pCanStopAttacking) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create
(StopAttackingIfTargetInvalid.StopAttackCondition pCanStopAttacking, StopAttackingIfTargetInvalid.TargetErasedCallback<E> pOnStopAttacking, boolean pCanGrowTiredOfTryingToReachTarget) static <E extends Mob>
BehaviorControl<E> StopAttackingIfTargetInvalid.create
(StopAttackingIfTargetInvalid.TargetErasedCallback<E> pOnStopAttacking) static <E extends Mob>
booleanLongJumpToRandomPos.defaultAcceptableLandingSpot
(E p_251540_, BlockPos p_248879_) static <T extends Mob>
booleanSwim.shouldSwim
(T pMob) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type MobModifier and TypeMethodDescriptionBackUpIfTooClose.create
(int pTooCloseDistance, float pStrafeSpeed) static BehaviorControl
<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create
(float pSpeedModifier) static BehaviorControl
<Mob> SetWalkTargetFromAttackTargetIfTargetOutOfReach.create
(Function<LivingEntity, Float> pSpeedModifier) Methods in net.minecraft.world.entity.ai.behavior with parameters of type MobModifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle
(Mob pMob, Vec3 pTarget, float pMaxJumpVelocity, int pAngle, boolean pRequireClearTransition) protected Vec3
LongJumpToRandomPos.calculateOptimalJumpVector
(Mob pMob, Vec3 pTarget) protected boolean
JumpOnBed.canStillUse
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected boolean
LongJumpMidJump.canStillUse
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected boolean
LongJumpToRandomPos.canStillUse
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected boolean
LookAtTargetSink.canStillUse
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected boolean
MoveToTargetSink.canStillUse
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected boolean
Swim.canStillUse
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected boolean
JumpOnBed.checkExtraStartConditions
(ServerLevel pLevel, Mob pOwner) protected boolean
LongJumpToRandomPos.checkExtraStartConditions
(ServerLevel pLevel, Mob pOwner) protected boolean
MoveToTargetSink.checkExtraStartConditions
(ServerLevel pLevel, Mob pOwner) protected boolean
Swim.checkExtraStartConditions
(ServerLevel pLevel, Mob pOwner) static Path
AcquirePoi.findPathToPois
(Mob pMob, Set<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>> pPoiPositions) private static BlockPos
GoToTargetLocation.getNearbyPos
(Mob pMob, BlockPos pPos) JumpOnBed.getNearestBed
(Mob pMob) private static boolean
LongJumpUtil.isClearTransition
(Mob pMob, EntityDimensions pDimensions, Vec3 pStartPos, Vec3 pEndPos) private static boolean
MeleeAttack.isHoldingUsableProjectileWeapon
(Mob pMob) static boolean
BehaviorUtils.isWithinAttackRange
(Mob pMob, LivingEntity pTarget, int pCooldown) private void
CrossbowAttack.lookAtTarget
(Mob pShooter, LivingEntity pTarget) private boolean
JumpOnBed.nearBed
(ServerLevel pLevel, Mob pMob) private boolean
JumpOnBed.onBedSurface
(ServerLevel pLevel, Mob pMob) private boolean
JumpOnBed.onOrOverBed
(ServerLevel pLevel, Mob pMob) private boolean
MoveToTargetSink.reachedTarget
(Mob pMob, WalkTarget pTarget) protected void
JumpOnBed.start
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected void
LongJumpMidJump.start
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected void
MoveToTargetSink.start
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected void
RandomLookAround.start
(ServerLevel pLevel, Mob pEntity, long pGameTime) private void
JumpOnBed.startWalkingTowardsBed
(Mob pMob, BlockPos pPos) protected void
JumpOnBed.stop
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected void
LongJumpMidJump.stop
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected void
LookAtTargetSink.stop
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected void
MoveToTargetSink.stop
(ServerLevel pLevel, Mob pEntity, long pGameTime) protected void
JumpOnBed.tick
(ServerLevel pLevel, Mob pOwner, long pGameTime) protected void
LookAtTargetSink.tick
(ServerLevel pLevel, Mob pOwner, long pGameTime) protected void
MoveToTargetSink.tick
(ServerLevel pLevel, Mob pOwner, long pGameTime) protected void
Swim.tick
(ServerLevel pLevel, Mob pOwner, long pGameTime) private boolean
JumpOnBed.tiredOfJumping
(ServerLevel pLevel, Mob pMob) private boolean
JumpOnBed.tiredOfWalking
(ServerLevel pLevel, Mob pMob) private boolean
MoveToTargetSink.tryComputePath
(Mob pMob, WalkTarget pTarget, long pTime) -
Uses of Mob in net.minecraft.world.entity.ai.control
Fields in net.minecraft.world.entity.ai.control declared as MobModifier and TypeFieldDescriptionprivate final Mob
BodyRotationControl.mob
private final Mob
JumpControl.mob
protected final Mob
LookControl.mob
protected final Mob
MoveControl.mob
Constructors in net.minecraft.world.entity.ai.control with parameters of type MobModifierConstructorDescriptionBodyRotationControl
(Mob pMob) FlyingMoveControl
(Mob pMob, int pMaxTurn, boolean pHoversInPlace) JumpControl
(Mob pMob) LookControl
(Mob pMob) MoveControl
(Mob pMob) SmoothSwimmingLookControl
(Mob pMob, int pMaxYRotFromCenter) SmoothSwimmingMoveControl
(Mob pMob, int pMaxTurnX, int pMaxTurnY, float pInWaterSpeedModifier, float pOutsideWaterSpeedModifier, boolean pApplyGravity) -
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 TypeClassDescriptionclass
RangedBowAttackGoal<T extends Mob & RangedAttackMob>
class
RangedCrossbowAttackGoal<T extends Mob & CrossbowAttackMob>
class
UseItemGoal<T extends Mob>
Fields in net.minecraft.world.entity.ai.goal declared as MobModifier and TypeFieldDescriptionprivate Mob
FollowMobGoal.followingMob
private final Mob
ClimbOnTopOfPowderSnowGoal.mob
protected Mob
DoorInteractGoal.mob
private final Mob
EatBlockGoal.mob
The entity owner of this AITaskprivate 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
protected final Mob
TemptGoal.mob
private final T
UseItemGoal.mob
private final Mob
RemoveBlockGoal.removerMob
Fields 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 pMob, int pDoorBreakTime, Predicate<Difficulty> pValidDifficulties) BreakDoorGoal
(Mob pMob, Predicate<Difficulty> pValidDifficulties) ClimbOnTopOfPowderSnowGoal
(Mob pMob, Level pLevel) DoorInteractGoal
(Mob pMob) EatBlockGoal
(Mob pMob) FollowMobGoal
(Mob pMob, double pSpeedModifier, float pStopDistance, float pAreaSize) Constructs a goal allowing a mob to follow others.ForNonPathfinders
(Mob p_415602_, double p_416457_, Predicate<ItemStack> p_415698_, boolean p_416268_, double p_416020_) 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 pMob, float pYd) LookAtPlayerGoal
(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance) LookAtPlayerGoal
(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance, float pProbability) LookAtPlayerGoal
(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance, float pProbability, boolean pOnlyHorizontal) OcelotAttackGoal
(Mob pMob) OpenDoorGoal
(Mob pMob, boolean pCloseDoor) RandomLookAroundGoal
(Mob pMob) (package private)
TemptGoal
(Mob pMob, double pSpeedModifier, Predicate<ItemStack> pItems, boolean pCanScare, double pStopDistance) -
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 T
ResetUniversalAngerTargetGoal.mob
protected final Mob
TargetGoal.mob
The 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 void
HurtByTargetGoal.alertOther
(Mob pMob, LivingEntity pTarget) Constructors in net.minecraft.world.entity.ai.goal.target with parameters of type MobModifierConstructorDescriptionNearestAttackableTargetGoal
(Mob pMob, Class<T> pTargetType, boolean pMustSee) NearestAttackableTargetGoal
(Mob pMob, Class<T> pTargetType, boolean pMustSee, boolean pMustReach) NearestAttackableTargetGoal
(Mob pMob, Class<T> pTargetType, boolean pMustSee, TargetingConditions.Selector pSelector) NearestAttackableTargetGoal
(Mob pMob, Class<T> pTargetType, int pInterval, boolean pMustSee, boolean pMustReach, TargetingConditions.Selector pSelector) TargetGoal
(Mob pMob, boolean pMustSee) TargetGoal
(Mob pMob, boolean pMustSee, boolean pMustReach) -
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 void
NearestBedSensor.doTick
(ServerLevel pLevel, Mob pEntity) protected void
NearestItemSensor.doTick
(ServerLevel pLevel, Mob pEntity) 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 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
Fields 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 void
Bee.BeeHurtByOtherGoal.alertOther
(Mob pMob, LivingEntity pTarget) protected void
Panda.PandaHurtByTargetGoal.alertOther
(Mob pMob, LivingEntity pTarget) protected void
PolarBear.PolarBearHurtByTargetGoal.alertOther
(Mob pMob, LivingEntity pTarget) static void
Bucketable.loadDefaultDataFromBucketTag
(Mob pMob, CompoundTag pTag) Deprecated.protected void
Fox.onOffspringSpawnedFromEgg
(Player pPlayer, Mob pChild) static void
Bucketable.saveDefaultDataToBucketTag
(Mob pMob, ItemStack pBucket) Deprecated.private void
Pufferfish.touch
(ServerLevel pLevel, Mob pMob) Constructors in net.minecraft.world.entity.animal with parameters of type MobModifierConstructorDescription(package private)
BeeLookControl
(Mob pMob) FoxLookAtPlayerGoal
(Mob pMob, Class<? extends LivingEntity> pLookAtType, float pLookDistance) -
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 p_249699_, BlockPos p_250057_) 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 TypeClassDescriptionclass
class
class
class
class
class
class
class
class
-
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.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 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
Fields in net.minecraft.world.entity.monster declared as MobModifier and TypeFieldDescriptionprivate final Mob
Ghast.GhastLookGoal.ghast
private final Mob
Ghast.GhastMoveControl.ghast
private final Mob
Ghast.RandomFloatAroundGoal.ghast
Fields 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 Vec3
Ghast.RandomFloatAroundGoal.chooseRandomPositionWithRestriction
(Mob pMob, Vec3 pPos, RandomSource pRandom) static void
Ghast.faceMovementDirection
(Mob pMob) static Vec3
Ghast.RandomFloatAroundGoal.getSuitableFlyToPosition
(Mob pMob, int pDistanceToBlocks) void
private SpawnGroupData
Strider.spawnJockey
(ServerLevelAccessor pServerLevel, DifficultyInstance pDifficulty, Mob pJockey, SpawnGroupData pSpawnData) Constructors in net.minecraft.world.entity.monster with parameters of type MobModifierConstructorDescriptionGhastLookGoal
(Mob pGhast) GhastMoveControl
(Mob pGhast, boolean pCareful, BooleanSupplier pShouldBeStopped) PhantomLookControl
(Mob pMob) PhantomMoveControl
(Mob pMob) RandomFloatAroundGoal
(Mob pGhast) RandomFloatAroundGoal
(Mob pGhast, int pDistanceToBlocks) ShulkerLookControl
(Mob pMob) 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 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.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.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 void
InventoryCarrier.pickUpItem
(ServerLevel pLevel, Mob pMob, InventoryCarrier pCarrier, ItemEntity pItemEntity) -
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_ID
private final EntityType
<? extends Mob> MobBucketItem.type
Methods in net.minecraft.world.item that return types with arguments of type MobModifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg
(Player pPlayer, Mob pMob, EntityType<? extends Mob> pEntityType, ServerLevel pServerLevel, Vec3 pPos, ItemStack pStack) Methods in net.minecraft.world.item with parameters of type MobModifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg
(Player pPlayer, Mob pMob, EntityType<? extends Mob> pEntityType, ServerLevel pServerLevel, Vec3 pPos, ItemStack pStack) Method parameters in net.minecraft.world.item with type arguments of type MobModifier and TypeMethodDescriptionSpawnEggItem.spawnOffspringFromSpawnEgg
(Player pPlayer, Mob pMob, EntityType<? extends Mob> pEntityType, ServerLevel pServerLevel, Vec3 pPos, ItemStack pStack) Constructor parameters in net.minecraft.world.item with type arguments of type MobModifierConstructorDescriptionMobBucketItem
(EntityType<? extends Mob> pType, Fluid pContent, SoundEvent pEmptySound, Item.Properties pProperties) SpawnEggItem
(EntityType<? extends Mob> pDefaultType, Item.Properties pProperties) -
Uses of Mob in net.minecraft.world.level
Methods in net.minecraft.world.level that return MobModifier and TypeMethodDescriptionprivate static Mob
NaturalSpawner.getMobForSpawn
(ServerLevel pLevel, EntityType<?> pEntityType) Methods in net.minecraft.world.level with parameters of type MobModifier and TypeMethodDescriptionprivate void
NaturalSpawner.SpawnState.afterSpawn
(Mob pMob, ChunkAccess pChunk) private static boolean
NaturalSpawner.isValidPositionForMob
(ServerLevel pLevel, Mob pMob, double pDistance) void
NaturalSpawner.AfterSpawnCallback.run
(Mob pMob, ChunkAccess pChunk) -
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 pRegion, Mob pMob, Set<BlockPos> pTargetPositions, float pMaxRange, int pAccuracy, float pSearchDepthMultiplier) 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 pMob, BlockPos pPos) abstract PathType
NodeEvaluator.getPathTypeOfMob
(PathfindingContext pContext, int pX, int pY, int pZ, Mob pMob) SwimNodeEvaluator.getPathTypeOfMob
(PathfindingContext pContext, int pX, int pY, int pZ, Mob pMob) WalkNodeEvaluator.getPathTypeOfMob
(PathfindingContext pContext, int pX, int pY, int pZ, Mob pMob) static PathType
WalkNodeEvaluator.getPathTypeStatic
(Mob pMob, BlockPos pPos) FlyNodeEvaluator.iteratePathfindingStartNodeCandidatePositions
(Mob pMob) void
AmphibiousNodeEvaluator.prepare
(PathNavigationRegion pLevel, Mob pMob) void
FlyNodeEvaluator.prepare
(PathNavigationRegion pLevel, Mob pMob) void
NodeEvaluator.prepare
(PathNavigationRegion pLevel, Mob pMob) void
SwimNodeEvaluator.prepare
(PathNavigationRegion pLevel, Mob pMob) void
WalkNodeEvaluator.prepare
(PathNavigationRegion pLevel, Mob pMob) 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 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 an animal.default void
IItemStackExtension.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 boolean
EventHooks.checkMobDespawn
(Mob mob) FiresMobDespawnEvent
and returns true if the default logic should be ignored.static boolean
EventHooks.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 ofcheckSpawnRules(net.minecraft.world.level.LevelAccessor, net.minecraft.world.entity.EntitySpawnReason)
andcheckSpawnObstruction(net.minecraft.world.level.LevelReader)
.static boolean
EventHooks.checkSpawnPositionSpawner
(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType, SpawnData spawnData, BaseSpawner spawner) Specialized variant ofEventHooks.checkSpawnPosition(net.minecraft.world.entity.Mob, net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.entity.EntitySpawnReason)
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, EntitySpawnReason 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.EntitySpawnReason, net.minecraft.world.entity.SpawnGroupData)
with the result.static FinalizeSpawnEvent
EventHooks.finalizeMobSpawnSpawner
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason 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.EntitySpawnReason, 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.Method parameters in net.neoforged.neoforge.event with type arguments of type MobModifier 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
Fields in net.neoforged.neoforge.event.entity.living declared as MobModifier and TypeFieldDescriptionprotected final Mob
MobSplitEvent.parent
private final Mob
BabyEntitySpawnEvent.parentA
private final Mob
BabyEntitySpawnEvent.parentB
Fields 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)
protected
MobSpawnEvent
(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 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.
RegisterSpawnPlacementsEvent
instead.