Class LargeBiomesGenerator

java.lang.Object
org.bukkit.generator.ChunkGenerator
ua.mcchickenstudio.opencreative.utils.world.generators.WorldGenerator
ua.mcchickenstudio.opencreative.utils.world.generators.LargeBiomesGenerator
All Implemented Interfaces:
ExtensionContent

public final class LargeBiomesGenerator extends WorldGenerator
  • Constructor Details

    • LargeBiomesGenerator

      public LargeBiomesGenerator()
  • Method Details

    • modifyWorldCreator

      public void modifyWorldCreator(@NotNull @NotNull org.bukkit.WorldCreator creator, @NotNull @NotNull String biome)
      Description copied from class: WorldGenerator
      Changes world creator before creating or loading world. Useful to set generator as itself, if it overrides generateSurface method.
      Specified by:
      modifyWorldCreator in class WorldGenerator
      Parameters:
      creator - creator to change.
      biome - selected biome.
    • getFixedSpawnLocation

      @NotNull public @NotNull org.bukkit.Location getFixedSpawnLocation(@NotNull @NotNull org.bukkit.World world, @NotNull @NotNull Random random)
      Overrides:
      getFixedSpawnLocation in class org.bukkit.generator.ChunkGenerator
    • canSpawn

      public boolean canSpawn(@NotNull @NotNull org.bukkit.World world, int x, int z)
      Overrides:
      canSpawn in class org.bukkit.generator.ChunkGenerator
    • shouldGenerateSurface

      public boolean shouldGenerateSurface()
      Overrides:
      shouldGenerateSurface in class org.bukkit.generator.ChunkGenerator
    • shouldGenerateStructures

      public boolean shouldGenerateStructures()
      Overrides:
      shouldGenerateStructures in class org.bukkit.generator.ChunkGenerator
    • shouldGenerateMobs

      public boolean shouldGenerateMobs()
      Overrides:
      shouldGenerateMobs in class org.bukkit.generator.ChunkGenerator
    • shouldGenerateDecorations

      public boolean shouldGenerateDecorations()
      Overrides:
      shouldGenerateDecorations in class org.bukkit.generator.ChunkGenerator
    • shouldGenerateNoise

      public boolean shouldGenerateNoise()
      Overrides:
      shouldGenerateNoise in class org.bukkit.generator.ChunkGenerator
    • shouldGenerateCaves

      public boolean shouldGenerateCaves()
      Overrides:
      shouldGenerateCaves in class org.bukkit.generator.ChunkGenerator
    • afterCreation

      public void afterCreation(@NotNull @NotNull org.bukkit.World world)
      Description copied from class: WorldGenerator
      Executes world operations, when it's created or loaded.
      Specified by:
      afterCreation in class WorldGenerator
      Parameters:
      world - world to execute code in it.
    • getExtensionId

      @NotNull public @NotNull String getExtensionId()
      Description copied from interface: ExtensionContent
      Returns lower-cased simple id of extension. Will be used to identify author of content.

      ID "default" is reserved for OpenCreative+ developers.

      Returns:
      id of extension.
    • getDescription

      @NotNull public @NotNull String getDescription()
      Description copied from interface: ExtensionContent
      Returns description of extension content. Describes purpose of new additional content.
      Returns:
      description of content.