Uses of Class
net.minecraft.entity.SpawnReason
-
-
Uses of SpawnReason in net.minecraft.entity
Methods in net.minecraft.entity that return SpawnReason Modifier and Type Method Description static SpawnReason
SpawnReason. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SpawnReason[]
SpawnReason. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in net.minecraft.entity with parameters of type SpawnReason Modifier and Type Method Description static boolean
MobEntity. checkMobSpawnRules(EntityType<? extends MobEntity> p_223315_0_, IWorld p_223315_1_, SpawnReason p_223315_2_, BlockPos p_223315_3_, java.util.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_, java.util.Random p_223515_4_)
boolean
MobEntity. checkSpawnRules(IWorld p_213380_1_, SpawnReason p_213380_2_)
T
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_)
ILivingEntityData
AgeableEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
MobEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
Entity
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_)
T
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_, java.util.Random p_test_5_)
-
Uses of SpawnReason in net.minecraft.entity.merchant.villager
Methods in net.minecraft.entity.merchant.villager with parameters of type SpawnReason Modifier and Type Method Description ILivingEntityData
AbstractVillagerEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
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
Methods in net.minecraft.entity.monster with parameters of type SpawnReason Modifier and Type Method Description static boolean
MonsterEntity. checkAnyLightMonsterSpawnRules(EntityType<? extends MonsterEntity> p_223324_0_, IWorld p_223324_1_, SpawnReason p_223324_2_, BlockPos p_223324_3_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.Random p_234351_4_)
ILivingEntityData
AbstractRaiderEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
AbstractSkeletonEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
CaveSpiderEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
DrownedEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
HoglinEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
IllusionerEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
PatrollerEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
PhantomEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
PillagerEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
SlimeEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
SpiderEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
VexEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
VindicatorEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
WitherSkeletonEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
ZombieEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
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
Methods in net.minecraft.entity.monster.piglin with parameters of type SpawnReason Modifier and Type Method Description static boolean
PiglinEntity. checkPiglinSpawnRules(EntityType<PiglinEntity> p_234418_0_, IWorld p_234418_1_, SpawnReason p_234418_2_, BlockPos p_234418_3_, java.util.Random p_234418_4_)
ILivingEntityData
PiglinBruteEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
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
Methods in net.minecraft.entity.passive with parameters of type SpawnReason Modifier and Type Method Description static boolean
AnimalEntity. checkAnimalSpawnRules(EntityType<? extends AnimalEntity> p_223316_0_, IWorld p_223316_1_, SpawnReason p_223316_2_, BlockPos p_223316_3_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.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_, java.util.Random p_223322_4_)
ILivingEntityData
CatEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
DolphinEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
FoxEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
OcelotEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
PandaEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
ParrotEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
PolarBearEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
RabbitEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
SheepEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
StriderEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
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
Methods in net.minecraft.entity.passive.fish with parameters of type SpawnReason Modifier and Type Method Description static boolean
AbstractFishEntity. checkFishSpawnRules(EntityType<? extends AbstractFishEntity> p_223363_0_, IWorld p_223363_1_, SpawnReason p_223363_2_, BlockPos p_223363_3_, java.util.Random p_223363_4_)
ILivingEntityData
AbstractGroupFishEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
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
Methods in net.minecraft.entity.passive.horse with parameters of type SpawnReason Modifier and Type Method Description ILivingEntityData
AbstractHorseEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
HorseEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
LlamaEntity. finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
ILivingEntityData
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
Methods in net.minecraftforge.common with parameters of type SpawnReason Modifier and Type Method Description static int
ForgeHooks. canEntitySpawn(MobEntity entity, IWorld world, double x, double y, double z, AbstractSpawner spawner, SpawnReason spawnReason)
-
Uses of SpawnReason in net.minecraftforge.event
Methods in net.minecraftforge.event with parameters of type SpawnReason Modifier and Type Method Description static 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
Fields in net.minecraftforge.event.entity.living declared as SpawnReason Modifier and Type Field Description private SpawnReason
LivingSpawnEvent.CheckSpawn. spawnReason
private SpawnReason
LivingSpawnEvent.SpecialSpawn. spawnReason
Methods in net.minecraftforge.event.entity.living that return SpawnReason Modifier and Type Method Description SpawnReason
LivingSpawnEvent.CheckSpawn. getSpawnReason()
SpawnReason
LivingSpawnEvent.SpecialSpawn. getSpawnReason()
Constructors in net.minecraftforge.event.entity.living with parameters of type SpawnReason Constructor Description CheckSpawn(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)
-