Java Code Examples for net.minecraft.world.biome.Biome#SpawnListEntry

The following examples show how to use net.minecraft.world.biome.Biome#SpawnListEntry . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChunkGeneratorTorikki.java    From Wizardry with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Nonnull
@Override
public List<Biome.SpawnListEntry> getPossibleCreatures(@Nonnull EnumCreatureType creatureType, @Nonnull BlockPos pos) {
	ArrayList<Biome.SpawnListEntry> list = new ArrayList<>();
	list.add(new Biome.SpawnListEntry(EntityFairy.class, 1, 1, 3));
	return list;
}
 
Example 2
Source File: ChunkProviderTofu.java    From TofuCraftReload with MIT License 4 votes vote down vote up
@Override
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos) {
    Biome biome = this.world.getBiome(pos);

    return biome.getSpawnableList(creatureType);
}
 
Example 3
Source File: SpaceChunkGenerator.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
   public List<SpawnListEntry> getPossibleCreatures(EnumCreatureType creatureType, BlockPos pos) {
return new ArrayList<Biome.SpawnListEntry>();
   }
 
Example 4
Source File: NormalChunkGenerator.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
@Override
public List<Biome.SpawnListEntry> getPossibleCreatures(EnumCreatureType enumCreatureType, BlockPos blockPosition) {
    return generator.getPossibleCreatures(enumCreatureType, blockPosition);
}
 
Example 5
Source File: ChunkGeneratorUnderWorld.java    From Wizardry with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Nonnull
@Override
public List<Biome.SpawnListEntry> getPossibleCreatures(@Nonnull EnumCreatureType creatureType, @Nonnull BlockPos pos)
{
	return new ArrayList<>();
}