Uses of Enum Class
net.minecraft.world.entity.EntitySpawnReason
Packages that use EntitySpawnReason
Package
Description
-
Uses of EntitySpawnReason in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type EntitySpawnReasonModifier and TypeMethodDescription<E extends Mob>
EGameTestHelper.spawn(EntityType<E> pType, int pX, int pY, int pZ, EntitySpawnReason pReason) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> pType, Vec3 pPos, @Nullable EntitySpawnReason pReason) -
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 @Nullable 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 booleanMob.checkMobSpawnRules(EntityType<? extends Mob> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) booleanMob.checkSpawnRules(LevelAccessor pLevel, EntitySpawnReason pSpawnReason) booleanPathfinderMob.checkSpawnRules(LevelAccessor p_21686_, EntitySpawnReason p_361803_) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules(EntityType<T> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) <T extends Mob>
@Nullable TMob.convertTo(EntityType<T> pEntityType, ConversionParams pConversionParams, EntitySpawnReason pSpawnReason, ConversionParams.AfterConversion<T> pAfterConversion) @Nullable TEntityType.create(ServerLevel pLevel, @Nullable Consumer<T> pConsumer, BlockPos pPos, EntitySpawnReason pReason, boolean pShouldOffsetY, boolean pShouldOffsetYMore) EntityType.create(EntityType<?> pEntityType, ValueInput pInput, Level pLevel, EntitySpawnReason pSpawnReason) @Nullable TEntityType.create(Level pLevel, EntitySpawnReason pSpawnReason) EntityType.create(ValueInput pInput, Level pLevel, EntitySpawnReason pSpawnReason) @Nullable SpawnGroupDataAgeableMob.finalizeSpawn(ServerLevelAccessor p_146746_, DifficultyInstance p_146747_, EntitySpawnReason p_363316_, @Nullable SpawnGroupData p_146749_) @Nullable SpawnGroupDataMob.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, @Nullable 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 @Nullable EntityEntityType.loadEntityRecursive(CompoundTag pTag, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) static @Nullable EntityEntityType.loadEntityRecursive(EntityType<?> pEntityType, CompoundTag pTag, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) static @Nullable EntityEntityType.loadEntityRecursive(EntityType<?> pEntityType, ValueInput pValueInput, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) static @Nullable EntityEntityType.loadEntityRecursive(ValueInput pValueInput, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) private static EntityEntityType.loadPassengersRecursive(Entity pEntity, ValueInput pValueInput, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) EntityType.loadStaticEntity(EntityType<?> pEntityType, ValueInput pValueInput, Level pLevel, EntitySpawnReason pSpawnReason) EntityType.loadStaticEntity(ValueInput pInput, Level pLevel, EntitySpawnReason pSpawnReason) @Nullable TEntityType.spawn(ServerLevel pLevel, @Nullable Consumer<T> pConsumer, BlockPos pPos, EntitySpawnReason pReason, boolean pShouldOffsetY, boolean pShouldOffsetYMore) @Nullable TEntityType.spawn(ServerLevel pLevel, BlockPos pPos, EntitySpawnReason pReason) @Nullable TEntityType.spawn(ServerLevel pLevel, @Nullable ItemStack pSpawnedFrom, @Nullable 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 booleanAgeableWaterCreature.checkSurfaceAgeableWaterCreatureSpawnRules(EntityType<? extends AgeableWaterCreature> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) -
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 p_149132_, DifficultyInstance p_149133_, EntitySpawnReason p_361790_, @Nullable SpawnGroupData p_149135_) -
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 p_249190_, DifficultyInstance p_251264_, EntitySpawnReason p_364651_, @Nullable SpawnGroupData p_249259_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.chicken
Methods in net.minecraft.world.entity.animal.chicken with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionChicken.finalizeSpawn(ServerLevelAccessor p_479246_, DifficultyInstance p_479546_, EntitySpawnReason p_478295_, @Nullable SpawnGroupData p_481650_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.cow
Methods in net.minecraft.world.entity.animal.cow with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanMushroomCow.checkMushroomSpawnRules(EntityType<MushroomCow> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Cow.finalizeSpawn(ServerLevelAccessor p_479111_, DifficultyInstance p_480094_, EntitySpawnReason p_481877_, @Nullable SpawnGroupData p_481471_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.dolphin
Methods in net.minecraft.world.entity.animal.dolphin with parameters of type EntitySpawnReasonModifier and TypeMethodDescription@Nullable SpawnGroupDataDolphin.finalizeSpawn(ServerLevelAccessor p_479150_, DifficultyInstance p_481882_, EntitySpawnReason p_478942_, @Nullable SpawnGroupData p_481012_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.equine
Methods in net.minecraft.world.entity.animal.equine with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanSkeletonHorse.checkSkeletonHorseSpawnRules(EntityType<? extends Animal> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataAbstractHorse.finalizeSpawn(ServerLevelAccessor p_481728_, DifficultyInstance p_480010_, EntitySpawnReason p_481245_, @Nullable SpawnGroupData p_478762_) @Nullable SpawnGroupDataHorse.finalizeSpawn(ServerLevelAccessor p_479107_, DifficultyInstance p_479178_, EntitySpawnReason p_479054_, @Nullable SpawnGroupData p_479757_) @Nullable SpawnGroupDataLlama.finalizeSpawn(ServerLevelAccessor p_481498_, DifficultyInstance p_481989_, EntitySpawnReason p_480269_, @Nullable SpawnGroupData p_480615_) @Nullable SpawnGroupDataTraderLlama.finalizeSpawn(ServerLevelAccessor p_480785_, DifficultyInstance p_478024_, EntitySpawnReason p_481276_, @Nullable SpawnGroupData p_480982_) @Nullable SpawnGroupDataZombieHorse.finalizeSpawn(ServerLevelAccessor p_479493_, DifficultyInstance p_481210_, EntitySpawnReason p_482098_, @Nullable SpawnGroupData p_481475_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.feline
Methods in net.minecraft.world.entity.animal.feline with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanOcelot.checkOcelotSpawnRules(EntityType<Ocelot> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataCat.finalizeSpawn(ServerLevelAccessor p_479018_, DifficultyInstance p_478283_, EntitySpawnReason p_481509_, @Nullable SpawnGroupData p_480915_) @Nullable SpawnGroupDataOcelot.finalizeSpawn(ServerLevelAccessor p_477941_, DifficultyInstance p_479506_, EntitySpawnReason p_481225_, @Nullable SpawnGroupData p_481908_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.fish
Methods in net.minecraft.world.entity.animal.fish with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic 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) @Nullable SpawnGroupDataAbstractSchoolingFish.finalizeSpawn(ServerLevelAccessor p_478891_, DifficultyInstance p_479199_, EntitySpawnReason p_480856_, @Nullable SpawnGroupData p_481772_) @Nullable SpawnGroupDataSalmon.finalizeSpawn(ServerLevelAccessor p_479696_, DifficultyInstance p_479293_, EntitySpawnReason p_478583_, @Nullable SpawnGroupData p_481140_) @Nullable SpawnGroupDataTropicalFish.finalizeSpawn(ServerLevelAccessor p_480327_, DifficultyInstance p_479255_, EntitySpawnReason p_481359_, @Nullable SpawnGroupData p_481706_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.fox
Methods in net.minecraft.world.entity.animal.fox with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanFox.checkFoxSpawnRules(EntityType<Fox> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataFox.finalizeSpawn(ServerLevelAccessor p_478921_, DifficultyInstance p_477940_, EntitySpawnReason p_480579_, @Nullable SpawnGroupData p_479774_) -
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 p_218488_, DifficultyInstance p_218489_, EntitySpawnReason p_361013_, @Nullable SpawnGroupData p_218491_) -
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 p_149365_, DifficultyInstance p_149366_, EntitySpawnReason p_360901_, @Nullable SpawnGroupData p_149368_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.golem
Methods in net.minecraft.world.entity.animal.golem with parameters of type EntitySpawnReasonModifier and TypeMethodDescription@Nullable SpawnGroupDataCopperGolem.finalizeSpawn(ServerLevelAccessor p_480601_, DifficultyInstance p_477985_, EntitySpawnReason p_479087_, @Nullable SpawnGroupData p_478229_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanAbstractNautilus.checkNautilusSpawnRules(EntityType<? extends AbstractNautilus> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) AbstractNautilus.finalizeSpawn(ServerLevelAccessor p_456241_, DifficultyInstance p_455836_, EntitySpawnReason p_456131_, @Nullable SpawnGroupData p_455985_) ZombieNautilus.finalizeSpawn(ServerLevelAccessor p_467810_, DifficultyInstance p_469369_, EntitySpawnReason p_469505_, @Nullable SpawnGroupData p_467165_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.panda
Methods in net.minecraft.world.entity.animal.panda with parameters of type EntitySpawnReasonModifier and TypeMethodDescription@Nullable SpawnGroupDataPanda.finalizeSpawn(ServerLevelAccessor p_482023_, DifficultyInstance p_480729_, EntitySpawnReason p_477927_, @Nullable SpawnGroupData p_478134_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.parrot
Methods in net.minecraft.world.entity.animal.parrot with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanParrot.checkParrotSpawnRules(EntityType<Parrot> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataParrot.finalizeSpawn(ServerLevelAccessor p_480706_, DifficultyInstance p_481783_, EntitySpawnReason p_479894_, @Nullable SpawnGroupData p_480556_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.pig
Methods in net.minecraft.world.entity.animal.pig with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionPig.finalizeSpawn(ServerLevelAccessor p_478479_, DifficultyInstance p_481884_, EntitySpawnReason p_480771_, @Nullable SpawnGroupData p_478284_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.polarbear
Methods in net.minecraft.world.entity.animal.polarbear with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanPolarBear.checkPolarBearSpawnRules(EntityType<PolarBear> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) PolarBear.finalizeSpawn(ServerLevelAccessor p_478339_, DifficultyInstance p_478045_, EntitySpawnReason p_479664_, @Nullable SpawnGroupData p_480338_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.rabbit
Methods in net.minecraft.world.entity.animal.rabbit with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanRabbit.checkRabbitSpawnRules(EntityType<Rabbit> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataRabbit.finalizeSpawn(ServerLevelAccessor p_480653_, DifficultyInstance p_482053_, EntitySpawnReason p_480307_, @Nullable SpawnGroupData p_481416_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type EntitySpawnReasonModifier and TypeMethodDescription@Nullable SpawnGroupDataSheep.finalizeSpawn(ServerLevelAccessor p_404937_, DifficultyInstance p_405503_, EntitySpawnReason p_405554_, @Nullable SpawnGroupData p_405662_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.squid
Methods in net.minecraft.world.entity.animal.squid with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanGlowSquid.checkGlowSquidSpawnRules(EntityType<? extends LivingEntity> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataSquid.finalizeSpawn(ServerLevelAccessor p_478346_, DifficultyInstance p_480811_, EntitySpawnReason p_481727_, @Nullable SpawnGroupData p_480347_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.turtle
Methods in net.minecraft.world.entity.animal.turtle with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanTurtle.checkTurtleSpawnRules(EntityType<Turtle> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataTurtle.finalizeSpawn(ServerLevelAccessor p_477950_, DifficultyInstance p_481603_, EntitySpawnReason p_479654_, @Nullable SpawnGroupData p_481163_) -
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) @Nullable SpawnGroupDataWolf.finalizeSpawn(ServerLevelAccessor p_406251_, DifficultyInstance p_406357_, EntitySpawnReason p_406333_, @Nullable SpawnGroupData p_406273_) -
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 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 booleanMagmaCube.checkMagmaCubeSpawnRules(EntityType<MagmaCube> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanMonster.checkMonsterSpawnRules(EntityType<? extends Mob> 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 booleanStrider.checkStriderSpawnRules(EntityType<Strider> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanMonster.checkSurfaceMonstersSpawnRules(EntityType<? extends Mob> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataPatrollingMonster.finalizeSpawn(ServerLevelAccessor p_33049_, DifficultyInstance p_33050_, EntitySpawnReason p_364305_, @Nullable SpawnGroupData p_33052_) Phantom.finalizeSpawn(ServerLevelAccessor p_33126_, DifficultyInstance p_33127_, EntitySpawnReason p_364084_, @Nullable SpawnGroupData p_33129_) @Nullable SpawnGroupDataShulker.finalizeSpawn(ServerLevelAccessor p_149780_, DifficultyInstance p_149781_, EntitySpawnReason p_363202_, @Nullable SpawnGroupData p_149783_) @Nullable SpawnGroupDataSlime.finalizeSpawn(ServerLevelAccessor p_33601_, DifficultyInstance p_33602_, EntitySpawnReason p_361992_, @Nullable SpawnGroupData p_33604_) @Nullable SpawnGroupDataStrider.finalizeSpawn(ServerLevelAccessor p_33887_, DifficultyInstance p_33888_, EntitySpawnReason p_360626_, @Nullable SpawnGroupData p_33890_) @Nullable SpawnGroupDataVex.finalizeSpawn(ServerLevelAccessor p_34002_, DifficultyInstance p_34003_, EntitySpawnReason p_364407_, @Nullable SpawnGroupData p_34005_) @Nullable SpawnGroupDataZoglin.finalizeSpawn(ServerLevelAccessor p_362960_, DifficultyInstance p_365250_, EntitySpawnReason p_363042_, @Nullable SpawnGroupData p_360432_) -
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) @Nullable SpawnGroupDataHoglin.finalizeSpawn(ServerLevelAccessor p_34508_, DifficultyInstance p_34509_, EntitySpawnReason p_364113_, @Nullable SpawnGroupData p_34511_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster.illager
Methods in net.minecraft.world.entity.monster.illager with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionIllusioner.finalizeSpawn(ServerLevelAccessor p_480751_, DifficultyInstance p_481479_, EntitySpawnReason p_478167_, @Nullable SpawnGroupData p_481045_) @Nullable SpawnGroupDataPillager.finalizeSpawn(ServerLevelAccessor p_481053_, DifficultyInstance p_482114_, EntitySpawnReason p_481428_, @Nullable SpawnGroupData p_478218_) @Nullable SpawnGroupDataVindicator.finalizeSpawn(ServerLevelAccessor p_479899_, DifficultyInstance p_479154_, EntitySpawnReason p_480414_, @Nullable SpawnGroupData p_481963_) -
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) @Nullable SpawnGroupDataPiglin.finalizeSpawn(ServerLevelAccessor p_34717_, DifficultyInstance p_34718_, EntitySpawnReason p_361787_, @Nullable SpawnGroupData p_34720_) @Nullable SpawnGroupDataPiglinBrute.finalizeSpawn(ServerLevelAccessor p_35058_, DifficultyInstance p_35059_, EntitySpawnReason p_364915_, @Nullable SpawnGroupData p_35061_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster.skeleton
Methods in net.minecraft.world.entity.monster.skeleton with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanStray.checkStraySpawnRules(EntityType<Stray> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) @Nullable SpawnGroupDataAbstractSkeleton.finalizeSpawn(ServerLevelAccessor p_480580_, DifficultyInstance p_480574_, EntitySpawnReason p_481793_, @Nullable SpawnGroupData p_478585_) @Nullable SpawnGroupDataWitherSkeleton.finalizeSpawn(ServerLevelAccessor p_479867_, DifficultyInstance p_478360_, EntitySpawnReason p_481272_, @Nullable SpawnGroupData p_481025_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster.spider
Methods in net.minecraft.world.entity.monster.spider with parameters of type EntitySpawnReasonModifier and TypeMethodDescription@Nullable SpawnGroupDataCaveSpider.finalizeSpawn(ServerLevelAccessor p_481241_, DifficultyInstance p_479489_, EntitySpawnReason p_479465_, @Nullable SpawnGroupData p_482086_) @Nullable SpawnGroupDataSpider.finalizeSpawn(ServerLevelAccessor p_478692_, DifficultyInstance p_479487_, EntitySpawnReason p_481376_, @Nullable SpawnGroupData p_480575_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type EntitySpawnReasonModifier and TypeMethodDescription@Nullable SpawnGroupDataWarden.finalizeSpawn(ServerLevelAccessor p_219400_, DifficultyInstance p_219401_, EntitySpawnReason p_360351_, @Nullable SpawnGroupData p_219403_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster.zombie
Fields in net.minecraft.world.entity.monster.zombie with type parameters of type EntitySpawnReasonModifier and TypeFieldDescriptionprivate static final Set<EntitySpawnReason> ZombieVillager.REASONS_NOT_TO_SET_TYPEMethods in net.minecraft.world.entity.monster.zombie with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanDrowned.checkDrownedSpawnRules(EntityType<Drowned> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) static booleanZombifiedPiglin.checkZombifiedPiglinSpawnRules(EntityType<ZombifiedPiglin> pEntityType, LevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) Drowned.finalizeSpawn(ServerLevelAccessor p_479591_, DifficultyInstance p_479303_, EntitySpawnReason p_481609_, @Nullable SpawnGroupData p_481694_) @Nullable SpawnGroupDataHusk.finalizeSpawn(ServerLevelAccessor p_481590_, DifficultyInstance p_480270_, EntitySpawnReason p_478215_, @Nullable SpawnGroupData p_480515_) @Nullable SpawnGroupDataZombie.finalizeSpawn(ServerLevelAccessor p_478549_, DifficultyInstance p_481659_, EntitySpawnReason p_478522_, @Nullable SpawnGroupData p_479167_) @Nullable SpawnGroupDataZombieVillager.finalizeSpawn(ServerLevelAccessor p_482360_, DifficultyInstance p_482357_, EntitySpawnReason p_482369_, @Nullable SpawnGroupData p_482358_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.npc.villager
Methods in net.minecraft.world.entity.npc.villager with parameters of type EntitySpawnReasonModifier and TypeMethodDescription@Nullable SpawnGroupDataAbstractVillager.finalizeSpawn(ServerLevelAccessor p_480749_, DifficultyInstance p_481930_, EntitySpawnReason p_477981_, @Nullable SpawnGroupData p_481717_) @Nullable SpawnGroupDataVillager.finalizeSpawn(ServerLevelAccessor p_479460_, DifficultyInstance p_481788_, EntitySpawnReason p_480000_, @Nullable SpawnGroupData p_481743_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid with parameters of type EntitySpawnReasonModifier and TypeMethodDescription@Nullable SpawnGroupDataRaider.finalizeSpawn(ServerLevelAccessor p_37856_, DifficultyInstance p_37857_, EntitySpawnReason p_362502_, @Nullable SpawnGroupData p_37859_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.vehicle.minecart
Methods in net.minecraft.world.entity.vehicle.minecart with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic <T extends AbstractMinecart>
@Nullable TAbstractMinecart.createMinecart(Level pLevel, double pX, double pY, double pZ, EntityType<T> pEntityType, EntitySpawnReason pSpawnReason, ItemStack pStack, @Nullable 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.