Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CreatureEntity.canSpawn(IWorld worldIn,
SpawnReason spawnReasonIn) |
boolean |
MobEntity.canSpawn(IWorld worldIn,
SpawnReason spawnReasonIn) |
static boolean |
MobEntity.canSpawnOn(EntityType<? extends MobEntity> typeIn,
IWorld worldIn,
SpawnReason reason,
BlockPos pos,
java.util.Random randomIn) |
T |
EntityType.create(World worldIn,
CompoundNBT compound,
ITextComponent customName,
PlayerEntity playerIn,
BlockPos pos,
SpawnReason reason,
boolean p_220349_7_,
boolean p_220349_8_) |
static <T extends Entity> |
EntitySpawnPlacementRegistry.func_223515_a(EntityType<T> p_223515_0_,
IWorld p_223515_1_,
SpawnReason reason,
BlockPos p_223515_3_,
java.util.Random p_223515_4_) |
ILivingEntityData |
MobEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
AgeableEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
T |
EntityType.spawn(World worldIn,
CompoundNBT compound,
ITextComponent customName,
PlayerEntity playerIn,
BlockPos pos,
SpawnReason reason,
boolean p_220342_7_,
boolean p_220342_8_) |
Entity |
EntityType.spawn(World worldIn,
ItemStack stack,
PlayerEntity playerIn,
BlockPos pos,
SpawnReason reason,
boolean p_220331_6_,
boolean p_220331_7_) |
boolean |
EntitySpawnPlacementRegistry.IPlacementPredicate.test(EntityType<T> p_test_1_,
IWorld p_test_2_,
SpawnReason p_test_3_,
BlockPos p_test_4_,
java.util.Random p_test_5_) |
Modifier and Type | Method and Description |
---|---|
ILivingEntityData |
VillagerEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
AbstractVillagerEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
Modifier and Type | Method and Description |
---|---|
static boolean |
MonsterEntity.canMonsterSpawn(EntityType<? extends MonsterEntity> type,
IWorld worldIn,
SpawnReason reason,
BlockPos pos,
java.util.Random randomIn) |
static boolean |
MonsterEntity.canMonsterSpawnInLight(EntityType<? extends MonsterEntity> type,
IWorld worldIn,
SpawnReason reason,
BlockPos pos,
java.util.Random randomIn) |
static boolean |
StrayEntity.func_223327_b(EntityType<StrayEntity> p_223327_0_,
IWorld p_223327_1_,
SpawnReason reason,
BlockPos p_223327_3_,
java.util.Random p_223327_4_) |
static boolean |
EndermiteEntity.func_223328_b(EntityType<EndermiteEntity> p_223328_0_,
IWorld p_223328_1_,
SpawnReason reason,
BlockPos p_223328_3_,
java.util.Random p_223328_4_) |
static boolean |
GuardianEntity.func_223329_b(EntityType<? extends GuardianEntity> p_223329_0_,
IWorld p_223329_1_,
SpawnReason reason,
BlockPos p_223329_3_,
java.util.Random p_223329_4_) |
static boolean |
PatrollerEntity.func_223330_b(EntityType<? extends PatrollerEntity> patrollerType,
IWorld worldIn,
SpawnReason reason,
BlockPos p_223330_3_,
java.util.Random p_223330_4_) |
static boolean |
SilverfishEntity.func_223331_b(EntityType<SilverfishEntity> p_223331_0_,
IWorld p_223331_1_,
SpawnReason reason,
BlockPos p_223331_3_,
java.util.Random p_223331_4_) |
static boolean |
DrownedEntity.func_223332_b(EntityType<DrownedEntity> p_223332_0_,
IWorld p_223332_1_,
SpawnReason reason,
BlockPos p_223332_3_,
java.util.Random p_223332_4_) |
static boolean |
HuskEntity.func_223334_b(EntityType<HuskEntity> p_223334_0_,
IWorld p_223334_1_,
SpawnReason reason,
BlockPos p_223334_3_,
java.util.Random p_223334_4_) |
static boolean |
ZombiePigmanEntity.func_223337_b(EntityType<ZombiePigmanEntity> p_223337_0_,
IWorld p_223337_1_,
SpawnReason reason,
BlockPos p_223337_3_,
java.util.Random p_223337_4_) |
static boolean |
SlimeEntity.func_223366_c(EntityType<SlimeEntity> p_223366_0_,
IWorld p_223366_1_,
SpawnReason reason,
BlockPos p_223366_3_,
java.util.Random randomIn) |
static boolean |
MagmaCubeEntity.func_223367_b(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 |
GhastEntity.func_223368_b(EntityType<GhastEntity> p_223368_0_,
IWorld p_223368_1_,
SpawnReason reason,
BlockPos p_223368_3_,
java.util.Random p_223368_4_) |
ILivingEntityData |
IllusionerEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
ShulkerEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
PillagerEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
ZombieEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
WitherSkeletonEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
ZombieVillagerEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
SpiderEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
VindicatorEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
CaveSpiderEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
DrownedEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
PhantomEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
VexEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
AbstractSkeletonEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
SlimeEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
AbstractRaiderEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
PatrollerEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
Modifier and Type | Method and Description |
---|---|
static boolean |
AnimalEntity.canAnimalSpawn(EntityType<? extends AnimalEntity> animal,
IWorld worldIn,
SpawnReason reason,
BlockPos pos,
java.util.Random random) |
static boolean |
BatEntity.canSpawn(EntityType<BatEntity> batIn,
IWorld worldIn,
SpawnReason reason,
BlockPos pos,
java.util.Random randomIn) |
static boolean |
ParrotEntity.func_223317_c(EntityType<ParrotEntity> parrotIn,
IWorld worldIn,
SpawnReason reason,
BlockPos p_223317_3_,
java.util.Random random) |
static boolean |
MooshroomEntity.func_223318_c(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.func_223319_c(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 |
PolarBearEntity.func_223320_c(EntityType<PolarBearEntity> p_223320_0_,
IWorld p_223320_1_,
SpawnReason reason,
BlockPos p_223320_3_,
java.util.Random p_223320_4_) |
static boolean |
RabbitEntity.func_223321_c(EntityType<RabbitEntity> p_223321_0_,
IWorld p_223321_1_,
SpawnReason reason,
BlockPos p_223321_3_,
java.util.Random p_223321_4_) |
static boolean |
TurtleEntity.func_223322_c(EntityType<TurtleEntity> p_223322_0_,
IWorld p_223322_1_,
SpawnReason reason,
BlockPos p_223322_3_,
java.util.Random p_223322_4_) |
static boolean |
DolphinEntity.func_223364_b(EntityType<DolphinEntity> p_223364_0_,
IWorld p_223364_1_,
SpawnReason reason,
BlockPos p_223364_3_,
java.util.Random p_223364_4_) |
static boolean |
SquidEntity.func_223365_b(EntityType<SquidEntity> p_223365_0_,
IWorld p_223365_1_,
SpawnReason reason,
BlockPos p_223365_3_,
java.util.Random p_223365_4_) |
ILivingEntityData |
CatEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
SheepEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
FoxEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
DolphinEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
RabbitEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
PandaEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
ParrotEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
OcelotEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
PolarBearEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
TurtleEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
Modifier and Type | Method and Description |
---|---|
static boolean |
AbstractFishEntity.func_223363_b(EntityType<? extends AbstractFishEntity> type,
IWorld worldIn,
SpawnReason reason,
BlockPos p_223363_3_,
java.util.Random randomIn) |
ILivingEntityData |
AbstractGroupFishEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
TropicalFishEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
Modifier and Type | Method and Description |
---|---|
ILivingEntityData |
AbstractHorseEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
TraderLlamaEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
HorseEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
ILivingEntityData |
LlamaEntity.onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
Modifier and Type | Method and Description |
---|---|
static int |
ForgeHooks.canEntitySpawn(MobEntity entity,
IWorld world,
double x,
double y,
double z,
AbstractSpawner spawner,
SpawnReason spawnReason) |
Modifier and Type | Method and 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) |
Modifier and Type | Field and Description |
---|---|
private SpawnReason |
LivingSpawnEvent.CheckSpawn.spawnReason |
private SpawnReason |
LivingSpawnEvent.SpecialSpawn.spawnReason |
Modifier and Type | Method and Description |
---|---|
SpawnReason |
LivingSpawnEvent.CheckSpawn.getSpawnReason() |
SpawnReason |
LivingSpawnEvent.SpecialSpawn.getSpawnReason() |
Constructor and 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) |