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> type, int x, int y, int z, EntitySpawnReason reason) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> type, Vec3 pos, @Nullable EntitySpawnReason reason) -
Uses of EntitySpawnReason in net.minecraft.util
Methods in net.minecraft.util with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionSpawnUtil.trySpawnMob(EntityType<T> entityType, EntitySpawnReason spawnReason, ServerLevel level, BlockPos pos, int attempts, int range, int yOffset, SpawnUtil.Strategy strategy, boolean checkCollision) -
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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) booleanMob.checkSpawnRules(LevelAccessor level, EntitySpawnReason spawnReason) booleanPathfinderMob.checkSpawnRules(LevelAccessor p_21686_, EntitySpawnReason p_361803_) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules(EntityType<T> entityType, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) <T extends Mob>
@Nullable TMob.convertTo(EntityType<T> entityType, ConversionParams conversionParams, EntitySpawnReason spawnReason, ConversionParams.AfterConversion<T> afterConversion) @Nullable TEntityType.create(ServerLevel level, @Nullable Consumer<T> consumer, BlockPos pos, EntitySpawnReason reason, boolean shouldOffsetY, boolean shouldOffsetYMore) EntityType.create(EntityType<?> entityType, ValueInput input, Level level, EntitySpawnReason spawnReason) @Nullable TEntityType.create(Level level, EntitySpawnReason spawnReason) EntityType.create(ValueInput input, Level level, EntitySpawnReason spawnReason) @Nullable SpawnGroupDataAgeableMob.finalizeSpawn(ServerLevelAccessor p_146746_, DifficultyInstance p_146747_, EntitySpawnReason p_363316_, @Nullable SpawnGroupData p_146749_) @Nullable SpawnGroupDataMob.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData spawnGroupData) Deprecated.Override-Only.static booleanEntitySpawnReason.ignoresLightRequirements(EntitySpawnReason reason) static booleanEntitySpawnReason.isSpawner(EntitySpawnReason reason) EntityType.loadEntitiesRecursive(ValueInput.ValueInputList input, Level level, EntitySpawnReason spawnReason) static @Nullable EntityEntityType.loadEntityRecursive(CompoundTag tag, Level level, EntitySpawnReason spawnReason, EntityProcessor processor) static @Nullable EntityEntityType.loadEntityRecursive(EntityType<?> entityType, CompoundTag tag, Level level, EntitySpawnReason spawnReason, EntityProcessor processor) static @Nullable EntityEntityType.loadEntityRecursive(EntityType<?> entityType, ValueInput valueInput, Level level, EntitySpawnReason spawnReason, EntityProcessor processor) static @Nullable EntityEntityType.loadEntityRecursive(ValueInput valueInput, Level level, EntitySpawnReason spawnReason, EntityProcessor processor) private static EntityEntityType.loadPassengersRecursive(Entity entity, ValueInput valueInput, Level level, EntitySpawnReason spawnReason, EntityProcessor processor) EntityType.loadStaticEntity(EntityType<?> entityType, ValueInput valueInput, Level level, EntitySpawnReason spawnReason) EntityType.loadStaticEntity(ValueInput input, Level level, EntitySpawnReason spawnReason) @Nullable TEntityType.spawn(ServerLevel level, @Nullable Consumer<T> consumer, BlockPos pos, EntitySpawnReason reason, boolean shouldOffsetY, boolean shouldOffsetYMore) @Nullable TEntityType.spawn(ServerLevel level, BlockPos pos, EntitySpawnReason reason) @Nullable TEntityType.spawn(ServerLevel level, @Nullable ItemStack spawnedFrom, @Nullable LivingEntity owner, BlockPos pos, EntitySpawnReason reason, boolean shouldOffsetY, boolean shouldOffsetYMore) booleanSpawnPlacements.SpawnPredicate.test(EntityType<T> entityType, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource randomSource) -
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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanAgeableWaterCreature.checkSurfaceAgeableWaterCreatureSpawnRules(EntityType<? extends AgeableWaterCreature> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
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> entityType, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) 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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) 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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) 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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanTropicalFish.checkTropicalFishSpawnRules(EntityType<TropicalFish> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) 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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) 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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) 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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) 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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanEndermite.checkEndermiteSpawnRules(EntityType<Endermite> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanGhast.checkGhastSpawnRules(EntityType<Ghast> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanGuardian.checkGuardianSpawnRules(EntityType<? extends Guardian> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanMagmaCube.checkMagmaCubeSpawnRules(EntityType<MagmaCube> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanMonster.checkMonsterSpawnRules(EntityType<? extends Mob> entityType, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanPatrollingMonster.checkPatrollingMonsterSpawnRules(EntityType<? extends PatrollingMonster> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource randomSource) static booleanSilverfish.checkSilverfishSpawnRules(EntityType<Silverfish> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanSlime.checkSlimeSpawnRules(EntityType<Slime> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanStrider.checkStriderSpawnRules(EntityType<Strider> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanMonster.checkSurfaceMonstersSpawnRules(EntityType<? extends Mob> entityType, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @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> entityType, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanZombifiedPiglin.checkZombifiedPiglinSpawnRules(EntityType<ZombifiedPiglin> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) 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 level, double x, double y, double z, EntityType<T> entityType, EntitySpawnReason spawnReason, ItemStack stack, @Nullable Player player) -
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.