Class SurvivalGenerator

java.lang.Object
org.bukkit.generator.ChunkGenerator
ua.mcchickenstudio.opencreative.utils.world.generators.WorldGenerator
ua.mcchickenstudio.opencreative.utils.world.generators.SurvivalGenerator
All Implemented Interfaces:
ExtensionContent, BiomeChangeable, EnvironmentCapable, StructuresCapable

public final class SurvivalGenerator extends WorldGenerator implements EnvironmentCapable, StructuresCapable, BiomeChangeable
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.generator.ChunkGenerator

    org.bukkit.generator.ChunkGenerator.BiomeGrid, org.bukkit.generator.ChunkGenerator.ChunkData
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterCreation(@NotNull org.bukkit.World world)
    Executes world operations, when it's created or loaded.
    boolean
    canSpawn(@NotNull org.bukkit.World world, int x, int z)
     
    @NotNull Map<@NotNull String, @NotNull org.bukkit.Material>
    getBiomes(org.bukkit.World.Environment environment)
    Returns map of available lower cased biomes names and their icons.
    @NotNull String
    Returns description of extension content.
    @NotNull String
    Returns lower-cased simple id of extension.
    @NotNull org.bukkit.Location
    getFixedSpawnLocation(@NotNull org.bukkit.World world, @NotNull Random random)
     
    void
    modifyWorldCreator(@NotNull org.bukkit.WorldCreator creator, @NotNull String biome)
    Changes world creator before creating or loading world.
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     

    Methods inherited from class WorldGenerator

    getDisplayIcon, getID, getLocaleName, getName
    Modifier and Type
    Method
    Description
    org.bukkit.inventory.ItemStack
    Returns an icon that will be used in world generation menu.
    final @NotNull String
    Returns id of world generator, that will be used to find it in registry.
    @NotNull String
    Returns localized name for displaying.
    @NotNull String
    Returns name of world generator for displaying in registry by converting id.

    Methods inherited from class org.bukkit.generator.ChunkGenerator

    createChunkData, generateBedrock, generateCaves, generateChunkData, generateNoise, generateSurface, getBaseHeight, getDefaultBiomeProvider, getDefaultPopulators, isParallelCapable, shouldGenerateBedrock, shouldGenerateCaves, shouldGenerateDecorations, shouldGenerateMobs, shouldGenerateNoise, shouldGenerateStructures, shouldGenerateSurface

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SurvivalGenerator

      public SurvivalGenerator()
  • Method Details

    • 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
    • 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.
    • 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.
    • getBiomes

      @NotNull public @NotNull Map<@NotNull String, @NotNull org.bukkit.Material> getBiomes(@NotNull org.bukkit.World.Environment environment)
      Description copied from interface: BiomeChangeable
      Returns map of available lower cased biomes names and their icons.
      Specified by:
      getBiomes in interface BiomeChangeable
      Parameters:
      environment - selected environment.
      Returns:
      map of biomes names and icons.
    • 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.

      Specified by:
      getExtensionId in interface ExtensionContent
      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.
      Specified by:
      getDescription in interface ExtensionContent
      Returns:
      description of content.