Package | Description |
---|---|
net.minecraft.entity | |
net.minecraft.world.spawner | |
net.minecraftforge.common.extensions |
Modifier and Type | Field and Description |
---|---|
private EntitySpawnPlacementRegistry.PlacementType |
EntitySpawnPlacementRegistry.Entry.placementType |
Modifier and Type | Method and Description |
---|---|
static EntitySpawnPlacementRegistry.PlacementType |
EntitySpawnPlacementRegistry.PlacementType.create(java.lang.String name,
TriPredicate<IWorldReader,BlockPos,EntityType<? extends MobEntity>> predicate) |
static EntitySpawnPlacementRegistry.PlacementType |
EntitySpawnPlacementRegistry.getPlacementType(EntityType<?> entityTypeIn) |
static EntitySpawnPlacementRegistry.PlacementType |
EntitySpawnPlacementRegistry.PlacementType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntitySpawnPlacementRegistry.PlacementType[] |
EntitySpawnPlacementRegistry.PlacementType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static <T extends MobEntity> |
EntitySpawnPlacementRegistry.register(EntityType<T> entityTypeIn,
EntitySpawnPlacementRegistry.PlacementType placementType,
Heightmap.Type heightMapType,
EntitySpawnPlacementRegistry.IPlacementPredicate<T> p_209343_3_) |
Constructor and Description |
---|
Entry(Heightmap.Type typeIn,
EntitySpawnPlacementRegistry.PlacementType placementTypeIn,
EntitySpawnPlacementRegistry.IPlacementPredicate<?> placementPredicateIn) |
Modifier and Type | Method and Description |
---|---|
static boolean |
WorldEntitySpawner.canCreatureTypeSpawnAtLocation(EntitySpawnPlacementRegistry.PlacementType placeType,
IWorldReader worldIn,
BlockPos pos,
EntityType<?> entityTypeIn) |
static boolean |
WorldEntitySpawner.canSpawnAtBody(EntitySpawnPlacementRegistry.PlacementType placeType,
IWorldReader worldIn,
BlockPos pos,
EntityType<?> entityTypeIn) |
Modifier and Type | Method and Description |
---|---|
default boolean |
IForgeBlock.canCreatureSpawn(BlockState state,
IBlockReader world,
BlockPos pos,
EntitySpawnPlacementRegistry.PlacementType type,
EntityType<?> entityType)
Determines if a specified mob type can spawn on this block, returning false will
prevent any mob from spawning on the block.
|
default boolean |
IForgeBlockState.canCreatureSpawn(IWorldReader world,
BlockPos pos,
EntitySpawnPlacementRegistry.PlacementType type,
EntityType<?> entityType)
Determines if a specified mob type can spawn on this block, returning false will
prevent any mob from spawning on the block.
|