Uses of Enum Class
net.minecraft.world.entity.EntitySpawnReason
Packages that use EntitySpawnReason
Package
Description
-
Uses of EntitySpawnReason in net.minecraft.util
Methods in net.minecraft.util with parameters of type EntitySpawnReasonModifier 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 EntitySpawnReason in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as EntitySpawnReasonMethods in net.minecraft.world.entity that return EntitySpawnReasonModifier and TypeMethodDescriptionfinal EntitySpawnReasonMob.getSpawnType()Returns the type of spawn that created this mob, if applicable.static EntitySpawnReasonReturns the enum constant of this class with the specified name.static EntitySpawnReason[]EntitySpawnReason.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.minecraft.world.entity with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanGlowSquid.checkGlowSquidSpawnRules(EntityType<? extends LivingEntity> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanMob.checkMobSpawnRules(EntityType<? extends Mob> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) booleanMob.checkSpawnRules(LevelAccessor pLevel, EntitySpawnReason pSpawnReason) booleanPathfinderMob.checkSpawnRules(LevelAccessor pLevel, EntitySpawnReason pSpawnReason) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules(EntityType<T> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) <T extends Mob>
TMob.convertTo(EntityType<T> pEntityType, ConversionParams pConversionParams, EntitySpawnReason pSpawnReason, ConversionParams.AfterConversion<T> pAfterConversion) EntityType.create(ServerLevel pLevel, Consumer<T> pConsumer, BlockPos pPos, EntitySpawnReason pReason, boolean pShouldOffsetY, boolean pShouldOffsetYMore) EntityType.create(Level pLevel, EntitySpawnReason pSpawnReason) EntityType.create(ValueInput pInput, Level pLevel, EntitySpawnReason pSpawnReason) AgeableMob.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Mob.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Deprecated.Override-Only.static booleanEntitySpawnReason.ignoresLightRequirements(EntitySpawnReason pReason) static booleanEntitySpawnReason.isSpawner(EntitySpawnReason pReason) EntityType.loadEntitiesRecursive(ValueInput.ValueInputList pInput, Level pLevel, EntitySpawnReason pSpawnReason) static EntityEntityType.loadEntityRecursive(CompoundTag pEntityTag, Level pLevel, EntitySpawnReason pSpawnReason, Function<Entity, Entity> pAdapter) static EntityEntityType.loadEntityRecursive(ValueInput pInput, Level pLevel, EntitySpawnReason pSpawnReason, Function<Entity, Entity> pAdapter) EntityType.loadStaticEntity(ValueInput pInput, Level pLevel, EntitySpawnReason pSpawnReason) EntityType.spawn(ServerLevel pLevel, Consumer<T> pConsumer, BlockPos pPos, EntitySpawnReason pReason, boolean pShouldOffsetY, boolean pShouldOffsetYMore) EntityType.spawn(ServerLevel pLevel, BlockPos pPos, EntitySpawnReason pReason) EntityType.spawn(ServerLevel pLevel, ItemStack pSpawnedFrom, LivingEntity pOwner, BlockPos pPos, EntitySpawnReason pReason, boolean pShouldOffsetY, boolean pShouldOffsetYMore) booleanSpawnPlacements.SpawnPredicate.test(EntityType<T> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) -
Uses of EntitySpawnReason in net.minecraft.world.entity.ambient
Methods in net.minecraft.world.entity.ambient with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanBat.checkBatSpawnRules(EntityType<Bat> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandomSource) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanAnimal.checkAnimalSpawnRules(EntityType<? extends Animal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanFox.checkFoxSpawnRules(EntityType<Fox> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanMushroomCow.checkMushroomSpawnRules(EntityType<MushroomCow> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanOcelot.checkOcelotSpawnRules(EntityType<Ocelot> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanParrot.checkParrotSpawnRules(EntityType<Parrot> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanPolarBear.checkPolarBearSpawnRules(EntityType<PolarBear> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanRabbit.checkRabbitSpawnRules(EntityType<Rabbit> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanAgeableWaterCreature.checkSurfaceAgeableWaterCreatureSpawnRules(EntityType<? extends AgeableWaterCreature> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanWaterAnimal.checkSurfaceWaterAnimalSpawnRules(EntityType<? extends WaterAnimal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanTropicalFish.checkTropicalFishSpawnRules(EntityType<TropicalFish> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanTurtle.checkTurtleSpawnRules(EntityType<Turtle> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) AbstractSchoolingFish.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Cat.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Chicken.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Cow.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Dolphin.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Fox.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Ocelot.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Panda.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Parrot.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Pig.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) PolarBear.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Rabbit.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Salmon.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Squid.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) TropicalFish.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Turtle.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanArmadillo.checkArmadilloSpawnRules(EntityType<Armadillo> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanAxolotl.checkAxolotlSpawnRules(EntityType<? extends LivingEntity> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Axolotl.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanCamel.checkCamelSpawnRules(EntityType<Camel> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Camel.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanFrog.checkFrogSpawnRules(EntityType<? extends Animal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Frog.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanGoat.checkGoatSpawnRules(EntityType<? extends Animal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Goat.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanSkeletonHorse.checkSkeletonHorseSpawnRules(EntityType<? extends Animal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanZombieHorse.checkZombieHorseSpawnRules(EntityType<? extends Animal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) AbstractHorse.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Horse.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Llama.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) TraderLlama.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionSheep.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanWolf.checkWolfSpawnRules(EntityType<Wolf> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Wolf.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanMonster.checkAnyLightMonsterSpawnRules(EntityType<? extends Monster> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanDrowned.checkDrownedSpawnRules(EntityType<Drowned> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanEndermite.checkEndermiteSpawnRules(EntityType<Endermite> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanGhast.checkGhastSpawnRules(EntityType<Ghast> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanGuardian.checkGuardianSpawnRules(EntityType<? extends Guardian> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanHusk.checkHuskSpawnRules(EntityType<Husk> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanMagmaCube.checkMagmaCubeSpawnRules(EntityType<MagmaCube> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanMonster.checkMonsterSpawnRules(EntityType<? extends Monster> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanPatrollingMonster.checkPatrollingMonsterSpawnRules(EntityType<? extends PatrollingMonster> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandomSource) static booleanSilverfish.checkSilverfishSpawnRules(EntityType<Silverfish> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanSlime.checkSlimeSpawnRules(EntityType<Slime> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanStray.checkStraySpawnRules(EntityType<Stray> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanStrider.checkStriderSpawnRules(EntityType<Strider> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanZombifiedPiglin.checkZombifiedPiglinSpawnRules(EntityType<ZombifiedPiglin> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) AbstractSkeleton.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) CaveSpider.finalizeSpawn(ServerLevelAccessor p_32259_, DifficultyInstance p_32260_, EntitySpawnReason p_363852_, SpawnGroupData p_32262_) Drowned.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Illusioner.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) PatrollingMonster.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Phantom.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Pillager.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Shulker.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Slime.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Spider.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Strider.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Vex.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Vindicator.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) WitherSkeleton.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Zoglin.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Zombie.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) ZombieVillager.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanHoglin.checkHoglinSpawnRules(EntityType<Hoglin> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Hoglin.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanPiglin.checkPiglinSpawnRules(EntityType<Piglin> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Piglin.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) PiglinBrute.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionWarden.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionAbstractVillager.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Villager.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionRaider.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic <T extends AbstractMinecart>
TAbstractMinecart.createMinecart(Level pLevel, double pX, double pY, double pZ, EntityType<T> pType, EntitySpawnReason pSpawnReason, ItemStack pSpawnedFrom, Player pPlayer) -
Uses of EntitySpawnReason in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanEventHooks.checkSpawnPlacements(EntityType<?> entityType, ServerLevelAccessor level, EntitySpawnReason spawnType, BlockPos pos, RandomSource random, boolean defaultResult) static booleanEventHooks.checkSpawnPosition(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType) Checks if the current position of the passed mob is valid for spawning, by firingMobSpawnEvent.PositionCheck.
The default check is to perform the logical and ofMob.checkSpawnRules(net.minecraft.world.level.LevelAccessor, net.minecraft.world.entity.EntitySpawnReason)andMob.checkSpawnObstruction(net.minecraft.world.level.LevelReader).static booleanEventHooks.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 theBaseSpawnerto the event.static @Nullable SpawnGroupDataEventHooks.finalizeMobSpawn(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData) Finalizes the spawn of a mob by firing theFinalizeSpawnEventand callingMob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.EntitySpawnReason, net.minecraft.world.entity.SpawnGroupData)with the result.static FinalizeSpawnEventEventHooks.finalizeMobSpawnSpawner(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, IOwnedSpawner spawner, boolean def) Finalizes the spawn of a mob by firing theFinalizeSpawnEventand callingMob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.EntitySpawnReason, net.minecraft.world.entity.SpawnGroupData)with the result. -
Uses of EntitySpawnReason in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as EntitySpawnReasonModifier and TypeFieldDescriptionprivate final EntitySpawnReasonFinalizeSpawnEvent.spawnTypeprivate final EntitySpawnReasonMobSpawnEvent.PositionCheck.spawnTypeprivate final EntitySpawnReasonMobSpawnEvent.SpawnPlacementCheck.spawnTypeMethods in net.neoforged.neoforge.event.entity.living that return EntitySpawnReasonModifier and TypeMethodDescriptionFinalizeSpawnEvent.getSpawnType()Retrieves the type of mob spawn that happened (the event that caused the spawn).MobSpawnEvent.PositionCheck.getSpawnType()Retrieves the type of mob spawn that is happening.MobSpawnEvent.SpawnPlacementCheck.getSpawnType()Retrieves the type of mob spawn that is happening.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type EntitySpawnReasonModifierConstructorDescriptionFinalizeSpawnEvent(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) PositionCheck(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType, @Nullable BaseSpawner spawner) SpawnPlacementCheck(EntityType<?> entityType, ServerLevelAccessor level, EntitySpawnReason spawnType, BlockPos pos, RandomSource random, boolean defaultResult) Internal.