Uses of Enum Class
net.minecraft.world.entity.EntitySpawnReason
Packages that use EntitySpawnReason
Package
Description
-
Uses of EntitySpawnReason in net.minecraft.util
Methods in net.minecraft.util with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionSpawnUtil.trySpawnMob
(EntityType<T> p_216404_, EntitySpawnReason p_364255_, ServerLevel p_216406_, BlockPos p_216407_, int p_216408_, int p_216409_, int p_216410_, SpawnUtil.Strategy p_216411_, boolean p_382971_) -
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 EntitySpawnReason
Mob.getSpawnType()
Returns the type of spawn that created this mob, if applicable.static EntitySpawnReason
Returns 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 boolean
GlowSquid.checkGlowSquidSpawnRules
(EntityType<? extends LivingEntity> p_217018_, ServerLevelAccessor p_217019_, EntitySpawnReason p_365182_, BlockPos p_217021_, RandomSource p_217022_) static boolean
Mob.checkMobSpawnRules
(EntityType<? extends Mob> p_217058_, LevelAccessor p_217059_, EntitySpawnReason p_365247_, BlockPos p_217061_, RandomSource p_217062_) boolean
Mob.checkSpawnRules
(LevelAccessor p_21431_, EntitySpawnReason p_360512_) boolean
PathfinderMob.checkSpawnRules
(LevelAccessor p_21686_, EntitySpawnReason p_361803_) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules
(EntityType<T> p_217075_, ServerLevelAccessor p_217076_, EntitySpawnReason p_361433_, BlockPos p_217078_, RandomSource p_217079_) <T extends Mob>
TMob.convertTo
(EntityType<T> p_21407_, ConversionParams p_371709_, EntitySpawnReason p_371281_, ConversionParams.AfterConversion<T> p_371266_) EntityType.create
(CompoundTag p_20643_, Level p_20644_, EntitySpawnReason p_360780_) EntityType.create
(ServerLevel p_262637_, Consumer<T> p_262629_, BlockPos p_262595_, EntitySpawnReason p_360546_, boolean p_262685_, boolean p_262588_) EntityType.create
(Level p_20616_, EntitySpawnReason p_363040_) AgeableMob.finalizeSpawn
(ServerLevelAccessor p_146746_, DifficultyInstance p_146747_, EntitySpawnReason p_363316_, SpawnGroupData p_146749_) Mob.finalizeSpawn
(ServerLevelAccessor p_21434_, DifficultyInstance p_21435_, EntitySpawnReason p_363352_, SpawnGroupData p_21437_) Deprecated.Override-Only.static boolean
EntitySpawnReason.ignoresLightRequirements
(EntitySpawnReason p_364180_) static boolean
EntitySpawnReason.isSpawner
(EntitySpawnReason p_362927_) EntityType.loadEntitiesRecursive
(List<? extends Tag> p_147046_, Level p_147047_, EntitySpawnReason p_360400_) static Entity
EntityType.loadEntityRecursive
(CompoundTag p_20646_, Level p_20647_, EntitySpawnReason p_361097_, Function<Entity, Entity> p_20648_) EntityType.loadStaticEntity
(CompoundTag p_20670_, Level p_20671_, EntitySpawnReason p_362818_) EntityType.spawn
(ServerLevel p_262634_, Consumer<T> p_365118_, BlockPos p_262707_, EntitySpawnReason p_362115_, boolean p_361504_, boolean p_362006_) EntityType.spawn
(ServerLevel p_262704_, BlockPos p_262672_, EntitySpawnReason p_363697_) EntityType.spawn
(ServerLevel p_20593_, ItemStack p_20594_, LivingEntity p_393729_, BlockPos p_20596_, EntitySpawnReason p_361023_, boolean p_20598_, boolean p_20599_) boolean
SpawnPlacements.SpawnPredicate.test
(EntityType<T> p_217081_, ServerLevelAccessor p_217082_, EntitySpawnReason p_363558_, BlockPos p_217084_, RandomSource p_217085_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.ambient
Methods in net.minecraft.world.entity.ambient with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic boolean
Bat.checkBatSpawnRules
(EntityType<Bat> p_218099_, LevelAccessor p_218100_, EntitySpawnReason p_362198_, BlockPos p_218102_, RandomSource p_218103_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic boolean
Animal.checkAnimalSpawnRules
(EntityType<? extends Animal> p_218105_, LevelAccessor p_218106_, EntitySpawnReason p_360742_, BlockPos p_218108_, RandomSource p_218109_) static boolean
Fox.checkFoxSpawnRules
(EntityType<Fox> p_218176_, LevelAccessor p_218177_, EntitySpawnReason p_365199_, BlockPos p_218179_, RandomSource p_218180_) static boolean
MushroomCow.checkMushroomSpawnRules
(EntityType<MushroomCow> p_218201_, LevelAccessor p_218202_, EntitySpawnReason p_360426_, BlockPos p_218204_, RandomSource p_218205_) static boolean
Ocelot.checkOcelotSpawnRules
(EntityType<Ocelot> p_218207_, LevelAccessor p_218208_, EntitySpawnReason p_364328_, BlockPos p_218210_, RandomSource p_218211_) static boolean
Parrot.checkParrotSpawnRules
(EntityType<Parrot> p_218242_, LevelAccessor p_218243_, EntitySpawnReason p_360625_, BlockPos p_218245_, RandomSource p_218246_) static boolean
PolarBear.checkPolarBearSpawnRules
(EntityType<PolarBear> p_218250_, LevelAccessor p_218251_, EntitySpawnReason p_361507_, BlockPos p_218253_, RandomSource p_218254_) static boolean
Rabbit.checkRabbitSpawnRules
(EntityType<Rabbit> p_218256_, LevelAccessor p_218257_, EntitySpawnReason p_365476_, BlockPos p_218259_, RandomSource p_218260_) static boolean
AgeableWaterCreature.checkSurfaceAgeableWaterCreatureSpawnRules
(EntityType<? extends AgeableWaterCreature> p_361277_, LevelAccessor p_360404_, EntitySpawnReason p_361898_, BlockPos p_362596_, RandomSource p_363955_) static boolean
WaterAnimal.checkSurfaceWaterAnimalSpawnRules
(EntityType<? extends WaterAnimal> p_218283_, LevelAccessor p_218284_, EntitySpawnReason p_362406_, BlockPos p_218286_, RandomSource p_218287_) static boolean
TropicalFish.checkTropicalFishSpawnRules
(EntityType<TropicalFish> p_218267_, LevelAccessor p_218268_, EntitySpawnReason p_362646_, BlockPos p_218270_, RandomSource p_218271_) static boolean
Turtle.checkTurtleSpawnRules
(EntityType<Turtle> p_218277_, LevelAccessor p_218278_, EntitySpawnReason p_362837_, BlockPos p_218280_, RandomSource p_218281_) AbstractSchoolingFish.finalizeSpawn
(ServerLevelAccessor p_27528_, DifficultyInstance p_27529_, EntitySpawnReason p_360900_, SpawnGroupData p_27531_) Cat.finalizeSpawn
(ServerLevelAccessor p_28134_, DifficultyInstance p_28135_, EntitySpawnReason p_362361_, SpawnGroupData p_28137_) Chicken.finalizeSpawn
(ServerLevelAccessor p_401793_, DifficultyInstance p_401843_, EntitySpawnReason p_401765_, SpawnGroupData p_401920_) Cow.finalizeSpawn
(ServerLevelAccessor p_401024_, DifficultyInstance p_401230_, EntitySpawnReason p_401413_, SpawnGroupData p_401109_) Dolphin.finalizeSpawn
(ServerLevelAccessor p_28332_, DifficultyInstance p_28333_, EntitySpawnReason p_364784_, SpawnGroupData p_28335_) Fox.finalizeSpawn
(ServerLevelAccessor p_28487_, DifficultyInstance p_28488_, EntitySpawnReason p_363726_, SpawnGroupData p_28490_) Ocelot.finalizeSpawn
(ServerLevelAccessor p_29007_, DifficultyInstance p_29008_, EntitySpawnReason p_362657_, SpawnGroupData p_29010_) Panda.finalizeSpawn
(ServerLevelAccessor p_29109_, DifficultyInstance p_29110_, EntitySpawnReason p_365266_, SpawnGroupData p_29112_) Parrot.finalizeSpawn
(ServerLevelAccessor p_29389_, DifficultyInstance p_29390_, EntitySpawnReason p_365194_, SpawnGroupData p_29392_) Pig.finalizeSpawn
(ServerLevelAccessor p_394599_, DifficultyInstance p_393951_, EntitySpawnReason p_393505_, SpawnGroupData p_394079_) PolarBear.finalizeSpawn
(ServerLevelAccessor p_29533_, DifficultyInstance p_29534_, EntitySpawnReason p_361358_, SpawnGroupData p_29536_) Rabbit.finalizeSpawn
(ServerLevelAccessor p_29678_, DifficultyInstance p_29679_, EntitySpawnReason p_362286_, SpawnGroupData p_29681_) Salmon.finalizeSpawn
(ServerLevelAccessor p_360331_, DifficultyInstance p_360341_, EntitySpawnReason p_362539_, SpawnGroupData p_361173_) Squid.finalizeSpawn
(ServerLevelAccessor p_363110_, DifficultyInstance p_360622_, EntitySpawnReason p_360451_, SpawnGroupData p_364007_) TropicalFish.finalizeSpawn
(ServerLevelAccessor p_30023_, DifficultyInstance p_30024_, EntitySpawnReason p_362528_, SpawnGroupData p_30026_) Turtle.finalizeSpawn
(ServerLevelAccessor p_30153_, DifficultyInstance p_30154_, EntitySpawnReason p_361581_, SpawnGroupData p_30156_) -
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 boolean
Armadillo.checkArmadilloSpawnRules
(EntityType<Armadillo> p_320958_, LevelAccessor p_320908_, EntitySpawnReason p_365317_, BlockPos p_320500_, RandomSource p_319883_) -
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 boolean
Axolotl.checkAxolotlSpawnRules
(EntityType<? extends LivingEntity> p_218438_, ServerLevelAccessor p_218439_, EntitySpawnReason p_360359_, BlockPos p_218441_, RandomSource p_218442_) Axolotl.finalizeSpawn
(ServerLevelAccessor p_149132_, DifficultyInstance p_149133_, EntitySpawnReason p_361790_, 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 boolean
Camel.checkCamelSpawnRules
(EntityType<Camel> p_404860_, LevelAccessor p_405773_, EntitySpawnReason p_405385_, BlockPos p_405008_, RandomSource p_405825_) Camel.finalizeSpawn
(ServerLevelAccessor p_249190_, DifficultyInstance p_251264_, EntitySpawnReason p_364651_, SpawnGroupData p_249259_) -
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 boolean
Frog.checkFrogSpawnRules
(EntityType<? extends Animal> p_218512_, LevelAccessor p_218513_, EntitySpawnReason p_365223_, BlockPos p_218515_, RandomSource p_218516_) Frog.finalizeSpawn
(ServerLevelAccessor p_218488_, DifficultyInstance p_218489_, EntitySpawnReason p_361013_, 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 boolean
Goat.checkGoatSpawnRules
(EntityType<? extends Animal> p_218753_, LevelAccessor p_218754_, EntitySpawnReason p_363232_, BlockPos p_218756_, RandomSource p_218757_) Goat.finalizeSpawn
(ServerLevelAccessor p_149365_, DifficultyInstance p_149366_, EntitySpawnReason p_360901_, SpawnGroupData p_149368_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic boolean
SkeletonHorse.checkSkeletonHorseSpawnRules
(EntityType<? extends Animal> p_312143_, LevelAccessor p_312574_, EntitySpawnReason p_364141_, BlockPos p_312362_, RandomSource p_312555_) static boolean
ZombieHorse.checkZombieHorseSpawnRules
(EntityType<? extends Animal> p_312450_, LevelAccessor p_312340_, EntitySpawnReason p_364610_, BlockPos p_311838_, RandomSource p_312514_) AbstractHorse.finalizeSpawn
(ServerLevelAccessor p_30555_, DifficultyInstance p_30556_, EntitySpawnReason p_363523_, SpawnGroupData p_30558_) Horse.finalizeSpawn
(ServerLevelAccessor p_30703_, DifficultyInstance p_30704_, EntitySpawnReason p_364884_, SpawnGroupData p_30706_) Llama.finalizeSpawn
(ServerLevelAccessor p_30774_, DifficultyInstance p_30775_, EntitySpawnReason p_364775_, SpawnGroupData p_30777_) TraderLlama.finalizeSpawn
(ServerLevelAccessor p_30942_, DifficultyInstance p_30943_, EntitySpawnReason p_364324_, SpawnGroupData p_30945_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionSheep.finalizeSpawn
(ServerLevelAccessor p_404937_, DifficultyInstance p_405503_, EntitySpawnReason p_405554_, SpawnGroupData p_405662_) -
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 boolean
Wolf.checkWolfSpawnRules
(EntityType<Wolf> p_406300_, LevelAccessor p_406219_, EntitySpawnReason p_406228_, BlockPos p_406222_, RandomSource p_406373_) Wolf.finalizeSpawn
(ServerLevelAccessor p_406251_, DifficultyInstance p_406357_, EntitySpawnReason p_406333_, 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 boolean
Monster.checkAnyLightMonsterSpawnRules
(EntityType<? extends Monster> p_219020_, LevelAccessor p_219021_, EntitySpawnReason p_361640_, BlockPos p_219023_, RandomSource p_219024_) static boolean
Drowned.checkDrownedSpawnRules
(EntityType<Drowned> p_218956_, ServerLevelAccessor p_218957_, EntitySpawnReason p_360945_, BlockPos p_218959_, RandomSource p_218960_) static boolean
Endermite.checkEndermiteSpawnRules
(EntityType<Endermite> p_218969_, LevelAccessor p_218970_, EntitySpawnReason p_363979_, BlockPos p_218972_, RandomSource p_218973_) static boolean
Ghast.checkGhastSpawnRules
(EntityType<Ghast> p_218985_, LevelAccessor p_218986_, EntitySpawnReason p_360741_, BlockPos p_218988_, RandomSource p_218989_) static boolean
Guardian.checkGuardianSpawnRules
(EntityType<? extends Guardian> p_218991_, LevelAccessor p_218992_, EntitySpawnReason p_363756_, BlockPos p_218994_, RandomSource p_218995_) static boolean
Husk.checkHuskSpawnRules
(EntityType<Husk> p_218997_, ServerLevelAccessor p_218998_, EntitySpawnReason p_363377_, BlockPos p_219000_, RandomSource p_219001_) static boolean
MagmaCube.checkMagmaCubeSpawnRules
(EntityType<MagmaCube> p_219003_, LevelAccessor p_219004_, EntitySpawnReason p_361982_, BlockPos p_219006_, RandomSource p_219007_) static boolean
Monster.checkMonsterSpawnRules
(EntityType<? extends Monster> p_219014_, ServerLevelAccessor p_219015_, EntitySpawnReason p_361180_, BlockPos p_219017_, RandomSource p_219018_) static boolean
PatrollingMonster.checkPatrollingMonsterSpawnRules
(EntityType<? extends PatrollingMonster> p_219026_, LevelAccessor p_219027_, EntitySpawnReason p_361513_, BlockPos p_219029_, RandomSource p_219030_) static boolean
Silverfish.checkSilverfishSpawnRules
(EntityType<Silverfish> p_219077_, LevelAccessor p_219078_, EntitySpawnReason p_362159_, BlockPos p_219080_, RandomSource p_219081_) static boolean
Slime.checkSlimeSpawnRules
(EntityType<Slime> p_219113_, LevelAccessor p_219114_, EntitySpawnReason p_363569_, BlockPos p_219116_, RandomSource p_219117_) static boolean
Stray.checkStraySpawnRules
(EntityType<Stray> p_219121_, ServerLevelAccessor p_219122_, EntitySpawnReason p_360760_, BlockPos p_219124_, RandomSource p_219125_) static boolean
Strider.checkStriderSpawnRules
(EntityType<Strider> p_219129_, LevelAccessor p_219130_, EntitySpawnReason p_365524_, BlockPos p_219132_, RandomSource p_219133_) static boolean
ZombifiedPiglin.checkZombifiedPiglinSpawnRules
(EntityType<ZombifiedPiglin> p_219174_, LevelAccessor p_219175_, EntitySpawnReason p_365119_, BlockPos p_219177_, RandomSource p_219178_) AbstractSkeleton.finalizeSpawn
(ServerLevelAccessor p_32146_, DifficultyInstance p_32147_, EntitySpawnReason p_362962_, SpawnGroupData p_32149_) CaveSpider.finalizeSpawn
(ServerLevelAccessor p_32259_, DifficultyInstance p_32260_, EntitySpawnReason p_363852_, SpawnGroupData p_32262_) Drowned.finalizeSpawn
(ServerLevelAccessor p_32372_, DifficultyInstance p_32373_, EntitySpawnReason p_365099_, SpawnGroupData p_32375_) Illusioner.finalizeSpawn
(ServerLevelAccessor p_32921_, DifficultyInstance p_32922_, EntitySpawnReason p_365326_, SpawnGroupData p_32924_) PatrollingMonster.finalizeSpawn
(ServerLevelAccessor p_33049_, DifficultyInstance p_33050_, EntitySpawnReason p_364305_, SpawnGroupData p_33052_) Phantom.finalizeSpawn
(ServerLevelAccessor p_33126_, DifficultyInstance p_33127_, EntitySpawnReason p_364084_, SpawnGroupData p_33129_) Pillager.finalizeSpawn
(ServerLevelAccessor p_33282_, DifficultyInstance p_33283_, EntitySpawnReason p_363547_, SpawnGroupData p_33285_) Shulker.finalizeSpawn
(ServerLevelAccessor p_149780_, DifficultyInstance p_149781_, EntitySpawnReason p_363202_, SpawnGroupData p_149783_) Slime.finalizeSpawn
(ServerLevelAccessor p_33601_, DifficultyInstance p_33602_, EntitySpawnReason p_361992_, SpawnGroupData p_33604_) Spider.finalizeSpawn
(ServerLevelAccessor p_33790_, DifficultyInstance p_33791_, EntitySpawnReason p_362727_, SpawnGroupData p_33793_) Strider.finalizeSpawn
(ServerLevelAccessor p_33887_, DifficultyInstance p_33888_, EntitySpawnReason p_360626_, SpawnGroupData p_33890_) Vex.finalizeSpawn
(ServerLevelAccessor p_34002_, DifficultyInstance p_34003_, EntitySpawnReason p_364407_, SpawnGroupData p_34005_) Vindicator.finalizeSpawn
(ServerLevelAccessor p_34088_, DifficultyInstance p_34089_, EntitySpawnReason p_362629_, SpawnGroupData p_34091_) WitherSkeleton.finalizeSpawn
(ServerLevelAccessor p_34178_, DifficultyInstance p_34179_, EntitySpawnReason p_364674_, SpawnGroupData p_34181_) Zoglin.finalizeSpawn
(ServerLevelAccessor p_362960_, DifficultyInstance p_365250_, EntitySpawnReason p_363042_, SpawnGroupData p_360432_) Zombie.finalizeSpawn
(ServerLevelAccessor p_34297_, DifficultyInstance p_34298_, EntitySpawnReason p_362602_, SpawnGroupData p_34300_) ZombieVillager.finalizeSpawn
(ServerLevelAccessor p_34378_, DifficultyInstance p_34379_, EntitySpawnReason p_362634_, SpawnGroupData p_34381_) -
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 boolean
Hoglin.checkHoglinSpawnRules
(EntityType<Hoglin> p_219182_, LevelAccessor p_219183_, EntitySpawnReason p_364885_, BlockPos p_219185_, RandomSource p_219186_) Hoglin.finalizeSpawn
(ServerLevelAccessor p_34508_, DifficultyInstance p_34509_, EntitySpawnReason p_364113_, SpawnGroupData p_34511_) -
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 boolean
Piglin.checkPiglinSpawnRules
(EntityType<Piglin> p_219198_, LevelAccessor p_219199_, EntitySpawnReason p_364762_, BlockPos p_219201_, RandomSource p_219202_) Piglin.finalizeSpawn
(ServerLevelAccessor p_34717_, DifficultyInstance p_34718_, EntitySpawnReason p_361787_, SpawnGroupData p_34720_) PiglinBrute.finalizeSpawn
(ServerLevelAccessor p_35058_, DifficultyInstance p_35059_, EntitySpawnReason p_364915_, SpawnGroupData p_35061_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionWarden.finalizeSpawn
(ServerLevelAccessor p_219400_, DifficultyInstance p_219401_, EntitySpawnReason p_360351_, SpawnGroupData p_219403_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionAbstractVillager.finalizeSpawn
(ServerLevelAccessor p_35282_, DifficultyInstance p_35283_, EntitySpawnReason p_361694_, SpawnGroupData p_35285_) Villager.finalizeSpawn
(ServerLevelAccessor p_35439_, DifficultyInstance p_35440_, EntitySpawnReason p_363222_, SpawnGroupData p_35442_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionRaider.finalizeSpawn
(ServerLevelAccessor p_37856_, DifficultyInstance p_37857_, EntitySpawnReason p_362502_, SpawnGroupData p_37859_) -
Uses of EntitySpawnReason in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic <T extends AbstractMinecart>
TAbstractMinecart.createMinecart
(Level p_366408_, double p_38121_, double p_38122_, double p_38123_, EntityType<T> p_374583_, EntitySpawnReason p_374412_, ItemStack p_305892_, Player p_306203_) -
Uses of EntitySpawnReason in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type EntitySpawnReasonModifier and TypeMethodDescriptionstatic boolean
EventHooks.checkSpawnPlacements
(EntityType<?> entityType, ServerLevelAccessor level, EntitySpawnReason spawnType, BlockPos pos, RandomSource random, boolean defaultResult) static boolean
EventHooks.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 boolean
EventHooks.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 theBaseSpawner
to the event.static @Nullable SpawnGroupData
EventHooks.finalizeMobSpawn
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData) Finalizes the spawn of a mob by firing theFinalizeSpawnEvent
and 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 FinalizeSpawnEvent
EventHooks.finalizeMobSpawnSpawner
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, IOwnedSpawner spawner, boolean def) Finalizes the spawn of a mob by firing theFinalizeSpawnEvent
and 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 EntitySpawnReason
FinalizeSpawnEvent.spawnType
private final EntitySpawnReason
MobSpawnEvent.PositionCheck.spawnType
private final EntitySpawnReason
MobSpawnEvent.SpawnPlacementCheck.spawnType
Methods 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.