-
Methods in net.minecraft.entity with parameters of type SpawnReason
Modifier and Type |
Method |
Description |
static <T extends Entity> boolean |
SpawnRestriction.canSpawn(EntityType<T> type,
ServerWorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
T |
EntityType.create(ServerWorld world,
@Nullable NbtCompound itemNbt,
@Nullable Text name,
@Nullable PlayerEntity player,
BlockPos pos,
SpawnReason spawnReason,
boolean alignPosition,
boolean invertY) |
|
T |
EntityType.spawn(ServerWorld world,
@Nullable NbtCompound itemNbt,
@Nullable Text name,
@Nullable PlayerEntity player,
BlockPos pos,
SpawnReason spawnReason,
boolean alignPosition,
boolean invertY) |
|
@Nullable Entity |
EntityType.spawnFromItemStack(ServerWorld world,
@Nullable ItemStack stack,
@Nullable PlayerEntity player,
BlockPos pos,
SpawnReason spawnReason,
boolean alignPosition,
boolean invertY) |
|
boolean |
SpawnRestriction.SpawnPredicate.test(EntityType<T> type,
ServerWorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
-
Methods in net.minecraft.entity.mob with parameters of type SpawnReason
Modifier and Type |
Method |
Description |
static boolean |
MagmaCubeEntity.canMagmaCubeSpawn(EntityType<MagmaCubeEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
MobEntity.canMobSpawn(EntityType<? extends MobEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
DrownedEntity.canSpawn(EntityType<DrownedEntity> type,
ServerWorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
EndermiteEntity.canSpawn(EntityType<EndermiteEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
GhastEntity.canSpawn(EntityType<GhastEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
GuardianEntity.canSpawn(EntityType<? extends GuardianEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
HoglinEntity.canSpawn(EntityType<HoglinEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
HuskEntity.canSpawn(EntityType<HuskEntity> type,
ServerWorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
boolean |
MobEntity.canSpawn(WorldAccess world,
SpawnReason spawnReason) |
|
boolean |
PathAwareEntity.canSpawn(WorldAccess world,
SpawnReason spawnReason) |
static boolean |
PatrolEntity.canSpawn(EntityType<? extends PatrolEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
PiglinEntity.canSpawn(EntityType<PiglinEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
SilverfishEntity.canSpawn(EntityType<SilverfishEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
SlimeEntity.canSpawn(EntityType<SlimeEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
StrayEntity.canSpawn(EntityType<StrayEntity> type,
ServerWorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
ZombifiedPiglinEntity.canSpawn(EntityType<ZombifiedPiglinEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
HostileEntity.canSpawnIgnoreLightLevel(EntityType<? extends HostileEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
HostileEntity.canSpawnInDark(EntityType<? extends HostileEntity> type,
ServerWorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
WaterCreatureEntity.canSpawnUnderground(EntityType<? extends LivingEntity> entityType,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
@Nullable EntityData |
AbstractSkeletonEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
CaveSpiderEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
EntityData |
DrownedEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
HoglinEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
EntityData |
IllusionerEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
MobEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
|
@Nullable EntityData |
PatrolEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
EntityData |
PhantomEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
PiglinBruteEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
PiglinEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
PillagerEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
ShulkerEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
SlimeEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
SpiderEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
VexEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
VindicatorEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
WitherSkeletonEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
ZombieEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
ZombieVillagerEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
-
Methods in net.minecraft.entity.passive with parameters of type SpawnReason
Modifier and Type |
Method |
Description |
static boolean |
BatEntity.canSpawn(EntityType<BatEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
DolphinEntity.canSpawn(EntityType<DolphinEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
FishEntity.canSpawn(EntityType<? extends FishEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
MooshroomEntity.canSpawn(EntityType<MooshroomEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
OcelotEntity.canSpawn(EntityType<OcelotEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
ParrotEntity.canSpawn(EntityType<ParrotEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
PolarBearEntity.canSpawn(EntityType<PolarBearEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
RabbitEntity.canSpawn(EntityType<RabbitEntity> entity,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
SquidEntity.canSpawn(EntityType<SquidEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
StriderEntity.canSpawn(EntityType<StriderEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
static boolean |
TurtleEntity.canSpawn(EntityType<TurtleEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
EntityData |
AxolotlEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
CatEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
DolphinEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
FoxEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
EntityData |
GoatEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
HorseBaseEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
HorseEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
LlamaEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
EntityData |
MerchantEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
OcelotEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
PandaEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
ParrotEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
EntityData |
PassiveEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
EntityData |
PolarBearEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
RabbitEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
SchoolingFishEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
SheepEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
StriderEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
TraderLlamaEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
TropicalFishEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
TurtleEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
@Nullable EntityData |
VillagerEntity.initialize(ServerWorldAccess world,
LocalDifficulty difficulty,
SpawnReason spawnReason,
@Nullable EntityData entityData,
@Nullable NbtCompound entityNbt) |
static boolean |
AnimalEntity.isValidNaturalSpawn(EntityType<? extends AnimalEntity> type,
WorldAccess world,
SpawnReason spawnReason,
BlockPos pos,
Random random) |
|
-