Class CustomChunkPopulator
java.lang.Object
com.github.imdabigboss.easydatapack.api.dimentions.CustomChunkPopulator
A custom chunk populator, used to generate the world.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.bukkit.generator.BiomeProviderprotected @Nullable CustomChunkPopulator.LocationDatagetRandomSurfaceXYZ(@NonNull org.bukkit.generator.WorldInfo worldInfo, @NonNull Random random, int chunkX, int chunkZ, @NonNull org.bukkit.generator.LimitedRegion limitedRegion)abstract booleanisSurface(@NonNull org.bukkit.Material cover, @NonNull org.bukkit.Material ground, @NonNull org.bukkit.block.Biome biome)Gets if a material is what can be found at the surface of the world.abstract voidpopulate(@NonNull org.bukkit.generator.WorldInfo worldInfo, @NonNull Random random, int chunkX, int chunkZ, @NonNull org.bukkit.generator.LimitedRegion limitedRegion)Generates the world.voidsetBiomeProvider(@NonNull org.bukkit.generator.BiomeProvider biomeProvider)Sets the biome provider.
-
Constructor Details
-
CustomChunkPopulator
public CustomChunkPopulator()
-
-
Method Details
-
getBiomeProvider
protected org.bukkit.generator.BiomeProvider getBiomeProvider() -
setBiomeProvider
public void setBiomeProvider(@NonNull org.bukkit.generator.BiomeProvider biomeProvider)Sets the biome provider.- Parameters:
biomeProvider- the biome provider
-
populate
public abstract void populate(@NonNull org.bukkit.generator.WorldInfo worldInfo, @NonNull Random random, int chunkX, int chunkZ, @NonNull org.bukkit.generator.LimitedRegion limitedRegion)Generates the world.- Parameters:
worldInfo- the world inforandom- the seeded random number generatorchunkX- the chunk xchunkZ- the chunk zlimitedRegion- the limited region
-
isSurface
public abstract boolean isSurface(@NonNull org.bukkit.Material cover, @NonNull org.bukkit.Material ground, @NonNull org.bukkit.block.Biome biome)Gets if a material is what can be found at the surface of the world.- Parameters:
cover- the cover material to check, grass for exampleground- the ground material to check, dirt or grass block for examplebiome- the biome to check- Returns:
- if the material is what can be found at the surface of the world
-
getRandomSurfaceXYZ
@Nullable protected @Nullable CustomChunkPopulator.LocationData getRandomSurfaceXYZ(@NonNull org.bukkit.generator.WorldInfo worldInfo, @NonNull Random random, int chunkX, int chunkZ, @NonNull org.bukkit.generator.LimitedRegion limitedRegion)
-