Class FlatWorld

Direct Known Subclasses:
Enceladus, Europa

public abstract class FlatWorld extends AlienWorld
An AlienWorld that is... flat. Earth is definitely not a subclass of this
See Also:
  • Constructor Details

  • Method Details

    • getLayers

      @Nonnull protected abstract it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap<org.bukkit.Material> getLayers()
      Gets the layers of this world. The returned value is a sorted map of ints and Material, with each int being the top bound (inclusive) of the material's generation. See the Europa implementation for an example. Or, if you need one in Javadoc,
          protected Int2ObjectSortedMap getLayers() {
              return new Int2ObjectLinkedOpenHashMapinvalid input: '<'>() {{
                  put(30, MaterialCompat.safe(XMaterial.PACKED_ICE));
                  put(60, MaterialCompat.safe(XMaterial.ICE));
              }};
          }
      
      Returns:
      the layers of this world
    • getBiome

      @Nonnull protected abstract org.bukkit.block.Biome getBiome()
      Gets the biome of this flat world
      Returns:
      the biome of this world
    • generateChunk

      protected final void generateChunk(@Nonnull org.bukkit.generator.ChunkGenerator.ChunkData chunk, @Nonnull Random random, @Nonnull org.bukkit.generator.WorldInfo world, int chunkX, int chunkZ)
      Description copied from class: AlienWorld
      Generate a chunk
      Specified by:
      generateChunk in class AlienWorld
    • generateSurface

      protected final void generateSurface(@Nonnull org.bukkit.generator.ChunkGenerator.ChunkData chunk, @Nonnull Random random, @Nonnull org.bukkit.generator.WorldInfo world, int chunkX, int chunkZ)
      Description copied from class: AlienWorld
      Optionally, generate the surface step of the world
      Overrides:
      generateSurface in class AlienWorld
    • getBiomeProvider

      @Nonnull protected final org.bukkit.generator.BiomeProvider getBiomeProvider(@Nonnull org.bukkit.generator.WorldInfo info)
      Description copied from class: AlienWorld
      Get the BiomeProvider for this world
      Overrides:
      getBiomeProvider in class AlienWorld
      Returns:
      the BiomeProvider for this world, or null for vanilla biomes