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
StrayClothingLayer<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_) Modifier and TypeMethodDescription -
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_) static <T extends Mob>
voidSpawnPlacements.register
(EntityType<T> p_21755_, SpawnPlacements.Type p_21756_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) Deprecated.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_) static SpawnPlacements.Type
SpawnPlacements.Type.create
(String name, TriPredicate<LevelReader, BlockPos, EntityType<? extends Mob>> predicate) -
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 TypeMethodDescriptionprivate Vec3
LongJumpToRandomPos.calculateJumpVectorForAngle
(Mob p_217307_, Vec3 p_217308_, int p_217309_) 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 boolean
LongJumpToRandomPos.isClearTransition
(Mob p_249070_, EntityDimensions p_250156_, Vec3 p_251660_, Vec3 p_250101_) 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_) 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
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
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.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
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.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_) FlyNodeEvaluator.getBlockPathType
(BlockGetter p_265753_, int p_265243_, int p_265376_, int p_265253_, Mob p_265367_) abstract BlockPathTypes
NodeEvaluator.getBlockPathType
(BlockGetter p_77337_, int p_77338_, int p_77339_, int p_77340_, Mob p_77341_) SwimNodeEvaluator.getBlockPathType
(BlockGetter p_77472_, int p_77473_, int p_77474_, int p_77475_, Mob p_77476_) protected BlockPathTypes
WalkNodeEvaluator.getBlockPathType
(Mob p_77573_, BlockPos p_77574_) WalkNodeEvaluator.getBlockPathType
(BlockGetter p_265141_, int p_265661_, int p_265757_, int p_265716_, Mob p_265398_) protected BlockPathTypes
WalkNodeEvaluator.getCachedBlockType
(Mob p_77568_, int p_77569_, int p_77570_, int p_77571_) 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.minecraftforge.common
Modifier and TypeFieldDescriptionprivate static final Map<EntityType<? extends Mob>,
ForgeSpawnEggItem> ForgeSpawnEggItem.TYPE_MAP
private final Supplier<? extends EntityType<? extends Mob>>
ForgeSpawnEggItem.typeSupplier
ModifierConstructorDescriptionForgeSpawnEggItem
(Supplier<? extends EntityType<? extends Mob>> type, int backgroundColor, int highlightColor, Item.Properties props) -
Uses of Mob in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault @Nullable BlockPathTypes
IForgeBlock.getAdjacentBlockPathType
(BlockState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, BlockPathTypes originalType) Gets the path type of the adjacent block to a pathfinding entity.default @Nullable BlockPathTypes
IForgeBlockState.getAdjacentBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob, BlockPathTypes originalType) Gets the path type of the adjacent block to a pathfinding entity.default @Nullable BlockPathTypes
IForgeFluid.getAdjacentBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, BlockPathTypes originalType) Gets the path type of the adjacent fluid to a pathfinding entity.default @Nullable BlockPathTypes
IForgeFluidState.getAdjacentBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob, BlockPathTypes originalType) Gets the path type of the adjacent fluid to a pathfinding entity.default @Nullable BlockPathTypes
IForgeBlock.getBlockPathType
(BlockState state, BlockGetter level, BlockPos pos, @Nullable Mob mob) Gets the path type of this block when an entity is pathfinding.default @Nullable BlockPathTypes
IForgeBlockState.getBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob) Gets the path type of this block when an entity is pathfinding.default @Nullable BlockPathTypes
IForgeFluid.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 BlockPathTypes
IForgeFluidState.getBlockPathType
(BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.default void
IForgeItem.onHorseArmorTick
(ItemStack stack, Level level, Mob horse) Called every tick fromHorse#playGallopSound(SoundEvent)
on the item in the armor slot.default void
IForgeItemStack.onHorseArmorTick
(Level level, Mob horse) Called every tick fromHorse#playGallopSound(SoundEvent)
on the item in the armor slot. -
Uses of Mob in net.minecraftforge.event
Modifier and TypeMethodDescriptionstatic net.minecraftforge.eventbus.api.Event.Result
ForgeEventFactory.canEntityDespawn
(Mob entity, ServerLevelAccessor level) static boolean
ForgeEventFactory.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
ForgeEventFactory.checkSpawnPositionSpawner
(Mob mob, ServerLevelAccessor level, MobSpawnType spawnType, SpawnData spawnData, BaseSpawner spawner) Specialized variant ofForgeEventFactory.checkSpawnPosition(net.minecraft.world.entity.Mob, net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.entity.MobSpawnType)
for spawners, as they have slightly different checks.static int
ForgeEventFactory.getMaxSpawnPackSize
(Mob entity) static @Nullable SpawnGroupData
ForgeEventFactory.onFinalizeSpawn
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData, @Nullable CompoundTag spawnTag) Vanilla calls tofinalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.SpawnGroupData, net.minecraft.nbt.CompoundTag)
are replaced with calls to this method via coremod.
Mods should call this method in place of callingfinalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.SpawnGroupData, net.minecraft.nbt.CompoundTag)
.static MobSpawnEvent.FinalizeSpawn
ForgeEventFactory.onFinalizeSpawnSpawner
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, @Nullable SpawnGroupData spawnData, @Nullable CompoundTag spawnTag, BaseSpawner spawner) Returns the FinalizeSpawn event instance, or null if it was canceled.
This is separate since mob spawners perform special finalizeSpawn handling when NBT data is present, but we still want to fire the event.
This overload is also the only way to pass through aBaseSpawner
instance. -
Uses of Mob in net.minecraftforge.event.entity.living
Modifier and TypeFieldDescriptionprivate final Mob
BabyEntitySpawnEvent.parentA
private final Mob
BabyEntitySpawnEvent.parentB
Modifier and TypeMethodDescriptionMobSpawnEvent.getEntity()
BabyEntitySpawnEvent.getParentA()
BabyEntitySpawnEvent.getParentB()
ModifierConstructorDescriptionAllowDespawn
(Mob mob, ServerLevelAccessor level) BabyEntitySpawnEvent
(Mob parentA, Mob parentB, @Nullable AgeableMob proposedChild) FinalizeSpawn
(Mob entity, ServerLevelAccessor level, double x, double y, double z, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData, @Nullable CompoundTag spawnTag, @Nullable BaseSpawner spawner) LivingPackSizeEvent
(Mob entity) protected
MobSpawnEvent
(Mob mob, ServerLevelAccessor level, double x, double y, double z) PositionCheck
(Mob mob, ServerLevelAccessor level, MobSpawnType spawnType, @Nullable BaseSpawner spawner) -
Uses of Mob in net.minecraftforge.fluids
Modifier and TypeMethodDescription@Nullable BlockPathTypes
FluidType.getAdjacentBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, BlockPathTypes originalType) Gets the path type of the adjacent fluid to a pathfinding entity.@Nullable BlockPathTypes
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.
ForgeSpawnEggItem
instead for suppliers