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> entityType, int x, int y, int z, EntitySpawnReason entitySpawnReason) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> entityType, Vec3 pos, @Nullable EntitySpawnReason spawnReason) -
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 start, int spawnAttempts, int spawnRangeXZ, int spawnRangeY, SpawnUtil.Strategy strategy, boolean checkCollisions) -
Uses of EntitySpawnReason in net.minecraft.world.entity
Subclasses with type arguments of type EntitySpawnReason in net.minecraft.world.entityFields 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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) booleanMob.checkSpawnRules(LevelAccessor level, EntitySpawnReason spawnReason) booleanPathfinderMob.checkSpawnRules(LevelAccessor level, EntitySpawnReason spawnReason) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules(EntityType<T> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) <T extends Mob>
@Nullable TMob.convertTo(EntityType<T> entityType, ConversionParams params, EntitySpawnReason spawnReason, ConversionParams.AfterConversion<T> afterConversion) @Nullable TEntityType.create(ServerLevel level, @Nullable Consumer<T> postSpawnConfig, BlockPos spawnPos, EntitySpawnReason spawnReason, boolean tryMoveDown, boolean movedUp) EntityType.create(EntityType<?> type, ValueInput input, Level level, EntitySpawnReason reason) @Nullable TEntityType.create(Level level, EntitySpawnReason reason) EntityType.create(ValueInput input, Level level, EntitySpawnReason reason) @Nullable SpawnGroupDataAgeableMob.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataMob.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Deprecated.Override-Only.static booleanEntitySpawnReason.ignoresLightRequirements(EntitySpawnReason reason) static booleanEntitySpawnReason.isSpawner(EntitySpawnReason reason) EntityType.loadEntitiesRecursive(ValueInput.ValueInputList entities, Level level, EntitySpawnReason reason) static @Nullable EntityEntityType.loadEntityRecursive(CompoundTag tag, Level level, EntitySpawnReason reason, EntityProcessor postLoad) static @Nullable EntityEntityType.loadEntityRecursive(EntityType<?> type, CompoundTag tag, Level level, EntitySpawnReason reason, EntityProcessor postLoad) static @Nullable EntityEntityType.loadEntityRecursive(EntityType<?> type, ValueInput input, Level level, EntitySpawnReason reason, EntityProcessor postLoad) static @Nullable EntityEntityType.loadEntityRecursive(ValueInput input, Level level, EntitySpawnReason reason, EntityProcessor postLoad) private static EntityEntityType.loadPassengersRecursive(Entity entity, ValueInput input, Level level, EntitySpawnReason reason, EntityProcessor postLoad) EntityType.loadStaticEntity(EntityType<?> type, ValueInput input, Level level, EntitySpawnReason reason) EntityType.loadStaticEntity(ValueInput input, Level level, EntitySpawnReason reason) @Nullable TEntityType.spawn(ServerLevel level, @Nullable Consumer<T> postSpawnConfig, BlockPos spawnPos, EntitySpawnReason spawnReason, boolean tryMoveDown, boolean movedUp) @Nullable TEntityType.spawn(ServerLevel level, BlockPos spawnPos, EntitySpawnReason spawnReason) @Nullable TEntityType.spawn(ServerLevel level, @Nullable ItemStack itemStack, @Nullable LivingEntity user, BlockPos spawnPos, EntitySpawnReason spawnReason, boolean tryMoveDown, boolean movedUp) booleanSpawnPlacements.SpawnPredicate.test(EntityType<T> type, 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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanAgeableWaterCreature.checkSurfaceAgeableWaterCreatureSpawnRules(EntityType<? extends AgeableWaterCreature> type, 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> type, 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> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) Axolotl.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) Camel.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) Cow.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataAbstractHorse.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataHorse.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataLlama.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataTraderLlama.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataZombieHorse.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataCat.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataOcelot.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanTropicalFish.checkTropicalFishSpawnRules(EntityType<TropicalFish> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataAbstractSchoolingFish.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataSalmon.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataTropicalFish.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataFox.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) Frog.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) Goat.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) AbstractNautilus.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) ZombieNautilus.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataParrot.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) PolarBear.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataRabbit.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataSquid.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataTurtle.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataWolf.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanEndermite.checkEndermiteSpawnRules(EntityType<Endermite> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanGhast.checkGhastSpawnRules(EntityType<Ghast> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanGuardian.checkGuardianSpawnRules(EntityType<? extends Guardian> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanMagmaCube.checkMagmaCubeSpawnRules(EntityType<MagmaCube> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanMonster.checkMonsterSpawnRules(EntityType<? extends Mob> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanPatrollingMonster.checkPatrollingMonsterSpawnRules(EntityType<? extends PatrollingMonster> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanSilverfish.checkSilverfishSpawnRules(EntityType<Silverfish> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanSlime.checkSlimeSpawnRules(EntityType<Slime> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanStrider.checkStriderSpawnRules(EntityType<Strider> ignoredType, LevelAccessor level, EntitySpawnReason ignoredSpawnType, BlockPos pos, RandomSource ignoredRandom) static booleanMonster.checkSurfaceMonstersSpawnRules(EntityType<? extends Mob> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataPatrollingMonster.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataPhantom.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataShulker.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataSlime.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataStrider.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataVex.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataZoglin.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataHoglin.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataPillager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataVindicator.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataPiglin.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataPiglinBrute.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) @Nullable SpawnGroupDataAbstractSkeleton.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataWitherSkeleton.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataSpider.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster.zombie
Methods in net.minecraft.world.entity.monster.zombie with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic booleanDrowned.checkDrownedSpawnRules(EntityType<Drowned> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) static booleanZombifiedPiglin.checkZombifiedPiglinSpawnRules(EntityType<ZombifiedPiglin> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) Drowned.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataHusk.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataZombie.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataZombieVillager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) protected voidZombie.handleAttributes(float difficultyModifier, EntitySpawnReason spawnReason) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) @Nullable SpawnGroupDataVillager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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> type, EntitySpawnReason reason, ItemStack itemStack, @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) Internal, should only be called viaSpawnPlacements.checkSpawnRules(EntityType, ServerLevelAccessor, EntitySpawnReason, BlockPos, RandomSource).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(LevelAccessor, EntitySpawnReason)andMob.checkSpawnObstruction(LevelReader).static booleanEventHooks.checkSpawnPositionSpawner(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType, SpawnData spawnData, BaseSpawner spawner) Specialized variant ofEventHooks.checkSpawnPosition(Mob, ServerLevelAccessor, 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(ServerLevelAccessor, DifficultyInstance, EntitySpawnReason, 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(ServerLevelAccessor, DifficultyInstance, EntitySpawnReason, 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.