Uses of Enum Class
net.minecraft.entity.SpawnReason
Package
Description
-
Uses of SpawnReason in net.minecraft.entity
Modifier and TypeMethodDescriptionstatic SpawnReason
Returns the enum constant of this class with the specified name.static SpawnReason[]
SpawnReason.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic boolean
MobEntity.checkMobSpawnRules
(EntityType<? extends MobEntity> p_223315_0_, IWorld p_223315_1_, SpawnReason p_223315_2_, BlockPos p_223315_3_, Random p_223315_4_) boolean
CreatureEntity.checkSpawnRules
(IWorld p_213380_1_, SpawnReason p_213380_2_) static <T extends Entity>
booleanEntitySpawnPlacementRegistry.checkSpawnRules
(EntityType<T> p_223515_0_, IServerWorld p_223515_1_, SpawnReason p_223515_2_, BlockPos p_223515_3_, Random p_223515_4_) boolean
MobEntity.checkSpawnRules
(IWorld p_213380_1_, SpawnReason p_213380_2_) EntityType.create
(ServerWorld p_220349_1_, CompoundNBT p_220349_2_, ITextComponent p_220349_3_, PlayerEntity p_220349_4_, BlockPos p_220349_5_, SpawnReason p_220349_6_, boolean p_220349_7_, boolean p_220349_8_) AgeableEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) MobEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) EntityType.spawn
(ServerWorld p_220331_1_, ItemStack p_220331_2_, PlayerEntity p_220331_3_, BlockPos p_220331_4_, SpawnReason p_220331_5_, boolean p_220331_6_, boolean p_220331_7_) EntityType.spawn
(ServerWorld p_220342_1_, CompoundNBT p_220342_2_, ITextComponent p_220342_3_, PlayerEntity p_220342_4_, BlockPos p_220342_5_, SpawnReason p_220342_6_, boolean p_220342_7_, boolean p_220342_8_) boolean
EntitySpawnPlacementRegistry.IPlacementPredicate.test
(EntityType<T> p_test_1_, IServerWorld p_test_2_, SpawnReason p_test_3_, BlockPos p_test_4_, Random p_test_5_) -
Uses of SpawnReason in net.minecraft.entity.merchant.villager
Modifier and TypeMethodDescriptionAbstractVillagerEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) VillagerEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) -
Uses of SpawnReason in net.minecraft.entity.monster
Modifier and TypeMethodDescriptionstatic boolean
MonsterEntity.checkAnyLightMonsterSpawnRules
(EntityType<? extends MonsterEntity> p_223324_0_, IWorld p_223324_1_, SpawnReason p_223324_2_, BlockPos p_223324_3_, Random p_223324_4_) static boolean
DrownedEntity.checkDrownedSpawnRules
(EntityType<DrownedEntity> p_223332_0_, IServerWorld p_223332_1_, SpawnReason p_223332_2_, BlockPos p_223332_3_, Random p_223332_4_) static boolean
EndermiteEntity.checkEndermiteSpawnRules
(EntityType<EndermiteEntity> p_223328_0_, IWorld p_223328_1_, SpawnReason p_223328_2_, BlockPos p_223328_3_, Random p_223328_4_) static boolean
GhastEntity.checkGhastSpawnRules
(EntityType<GhastEntity> p_223368_0_, IWorld p_223368_1_, SpawnReason p_223368_2_, BlockPos p_223368_3_, Random p_223368_4_) static boolean
GuardianEntity.checkGuardianSpawnRules
(EntityType<? extends GuardianEntity> p_223329_0_, IWorld p_223329_1_, SpawnReason p_223329_2_, BlockPos p_223329_3_, Random p_223329_4_) static boolean
HoglinEntity.checkHoglinSpawnRules
(EntityType<HoglinEntity> p_234361_0_, IWorld p_234361_1_, SpawnReason p_234361_2_, BlockPos p_234361_3_, Random p_234361_4_) static boolean
HuskEntity.checkHuskSpawnRules
(EntityType<HuskEntity> p_223334_0_, IServerWorld p_223334_1_, SpawnReason p_223334_2_, BlockPos p_223334_3_, Random p_223334_4_) static boolean
MagmaCubeEntity.checkMagmaCubeSpawnRules
(EntityType<MagmaCubeEntity> p_223367_0_, IWorld p_223367_1_, SpawnReason p_223367_2_, BlockPos p_223367_3_, Random p_223367_4_) static boolean
MonsterEntity.checkMonsterSpawnRules
(EntityType<? extends MonsterEntity> p_223325_0_, IServerWorld p_223325_1_, SpawnReason p_223325_2_, BlockPos p_223325_3_, Random p_223325_4_) static boolean
PatrollerEntity.checkPatrollingMonsterSpawnRules
(EntityType<? extends PatrollerEntity> p_223330_0_, IWorld p_223330_1_, SpawnReason p_223330_2_, BlockPos p_223330_3_, Random p_223330_4_) static boolean
SlimeEntity.checkSlimeSpawnRules
(EntityType<SlimeEntity> p_223366_0_, IWorld p_223366_1_, SpawnReason p_223366_2_, BlockPos p_223366_3_, Random p_223366_4_) static boolean
SilverfishEntity.checkSliverfishSpawnRules
(EntityType<SilverfishEntity> p_223331_0_, IWorld p_223331_1_, SpawnReason p_223331_2_, BlockPos p_223331_3_, Random p_223331_4_) static boolean
StrayEntity.checkStraySpawnRules
(EntityType<StrayEntity> p_223327_0_, IServerWorld p_223327_1_, SpawnReason p_223327_2_, BlockPos p_223327_3_, Random p_223327_4_) static boolean
ZombifiedPiglinEntity.checkZombifiedPiglinSpawnRules
(EntityType<ZombifiedPiglinEntity> p_234351_0_, IWorld p_234351_1_, SpawnReason p_234351_2_, BlockPos p_234351_3_, Random p_234351_4_) AbstractRaiderEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) AbstractSkeletonEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) CaveSpiderEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) DrownedEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) HoglinEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) IllusionerEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) PatrollerEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) PhantomEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) PillagerEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) SlimeEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) SpiderEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) VexEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) VindicatorEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) WitherSkeletonEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) ZombieEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) ZombieVillagerEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) -
Uses of SpawnReason in net.minecraft.entity.monster.piglin
Modifier and TypeMethodDescriptionstatic boolean
PiglinEntity.checkPiglinSpawnRules
(EntityType<PiglinEntity> p_234418_0_, IWorld p_234418_1_, SpawnReason p_234418_2_, BlockPos p_234418_3_, Random p_234418_4_) PiglinBruteEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) PiglinEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) -
Uses of SpawnReason in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionstatic boolean
AnimalEntity.checkAnimalSpawnRules
(EntityType<? extends AnimalEntity> p_223316_0_, IWorld p_223316_1_, SpawnReason p_223316_2_, BlockPos p_223316_3_, Random p_223316_4_) static boolean
BatEntity.checkBatSpawnRules
(EntityType<BatEntity> p_223369_0_, IWorld p_223369_1_, SpawnReason p_223369_2_, BlockPos p_223369_3_, Random p_223369_4_) static boolean
DolphinEntity.checkDolphinSpawnRules
(EntityType<DolphinEntity> p_223364_0_, IWorld p_223364_1_, SpawnReason p_223364_2_, BlockPos p_223364_3_, Random p_223364_4_) static boolean
MooshroomEntity.checkMushroomSpawnRules
(EntityType<MooshroomEntity> p_223318_0_, IWorld p_223318_1_, SpawnReason p_223318_2_, BlockPos p_223318_3_, Random p_223318_4_) static boolean
OcelotEntity.checkOcelotSpawnRules
(EntityType<OcelotEntity> p_223319_0_, IWorld p_223319_1_, SpawnReason p_223319_2_, BlockPos p_223319_3_, Random p_223319_4_) static boolean
ParrotEntity.checkParrotSpawnRules
(EntityType<ParrotEntity> p_223317_0_, IWorld p_223317_1_, SpawnReason p_223317_2_, BlockPos p_223317_3_, Random p_223317_4_) static boolean
PolarBearEntity.checkPolarBearSpawnRules
(EntityType<PolarBearEntity> p_223320_0_, IWorld p_223320_1_, SpawnReason p_223320_2_, BlockPos p_223320_3_, Random p_223320_4_) static boolean
RabbitEntity.checkRabbitSpawnRules
(EntityType<RabbitEntity> p_223321_0_, IWorld p_223321_1_, SpawnReason p_223321_2_, BlockPos p_223321_3_, Random p_223321_4_) static boolean
SquidEntity.checkSquidSpawnRules
(EntityType<SquidEntity> p_223365_0_, IWorld p_223365_1_, SpawnReason p_223365_2_, BlockPos p_223365_3_, Random p_223365_4_) static boolean
StriderEntity.checkStriderSpawnRules
(EntityType<StriderEntity> p_234314_0_, IWorld p_234314_1_, SpawnReason p_234314_2_, BlockPos p_234314_3_, Random p_234314_4_) static boolean
TurtleEntity.checkTurtleSpawnRules
(EntityType<TurtleEntity> p_223322_0_, IWorld p_223322_1_, SpawnReason p_223322_2_, BlockPos p_223322_3_, Random p_223322_4_) CatEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) DolphinEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) FoxEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) OcelotEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) PandaEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) ParrotEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) PolarBearEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) RabbitEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) SheepEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) StriderEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) TurtleEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) -
Uses of SpawnReason in net.minecraft.entity.passive.fish
Modifier and TypeMethodDescriptionstatic boolean
AbstractFishEntity.checkFishSpawnRules
(EntityType<? extends AbstractFishEntity> p_223363_0_, IWorld p_223363_1_, SpawnReason p_223363_2_, BlockPos p_223363_3_, Random p_223363_4_) AbstractGroupFishEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) TropicalFishEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) -
Uses of SpawnReason in net.minecraft.entity.passive.horse
Modifier and TypeMethodDescriptionAbstractHorseEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) HorseEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) LlamaEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) TraderLlamaEntity.finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) -
Uses of SpawnReason in net.minecraftforge.common
Modifier and TypeMethodDescriptionstatic int
ForgeHooks.canEntitySpawn
(MobEntity entity, IWorld world, double x, double y, double z, AbstractSpawner spawner, SpawnReason spawnReason) -
Uses of SpawnReason in net.minecraftforge.event
Modifier and TypeMethodDescriptionstatic net.minecraftforge.eventbus.api.Event.Result
ForgeEventFactory.canEntitySpawn
(MobEntity entity, IWorld world, double x, double y, double z, AbstractSpawner spawner, SpawnReason spawnReason) static boolean
ForgeEventFactory.doSpecialSpawn
(MobEntity entity, World world, float x, float y, float z, AbstractSpawner spawner, SpawnReason spawnReason) -
Uses of SpawnReason in net.minecraftforge.event.entity.living
Modifier and TypeFieldDescriptionprivate final SpawnReason
LivingSpawnEvent.CheckSpawn.spawnReason
private final SpawnReason
LivingSpawnEvent.SpecialSpawn.spawnReason
Modifier and TypeMethodDescriptionLivingSpawnEvent.CheckSpawn.getSpawnReason()
LivingSpawnEvent.SpecialSpawn.getSpawnReason()
ModifierConstructorDescriptionCheckSpawn
(MobEntity entity, IWorld world, double x, double y, double z, AbstractSpawner spawner, SpawnReason spawnReason) CheckSpawn is fired when an Entity is about to be spawned.SpecialSpawn
(MobEntity entity, World world, double x, double y, double z, AbstractSpawner spawner, SpawnReason spawnReason)