Class CustomChunkPopulator

java.lang.Object
com.github.imdabigboss.easydatapack.api.dimentions.CustomChunkPopulator

public abstract class CustomChunkPopulator extends Object
A custom chunk populator, used to generate the world.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.bukkit.generator.BiomeProvider
     
    getRandomSurfaceXYZ​(@NonNull org.bukkit.generator.WorldInfo worldInfo, @NonNull Random random, int chunkX, int chunkZ, @NonNull org.bukkit.generator.LimitedRegion limitedRegion)
     
    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.
    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.
    void
    setBiomeProvider​(@NonNull org.bukkit.generator.BiomeProvider biomeProvider)
    Sets the biome provider.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 info
      random - the seeded random number generator
      chunkX - the chunk x
      chunkZ - the chunk z
      limitedRegion - 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 example
      ground - the ground material to check, dirt or grass block for example
      biome - 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)