Interface GeneratorView


@NullMarked public interface GeneratorView
Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasBiomeProvider(Class<? extends org.bukkit.plugin.Plugin> clazz)
    Checks if the specified plugin class has a declared method for providing a default biome provider.
    boolean
    hasChunkGenerator(Class<? extends org.bukkit.plugin.Plugin> clazz)
    Checks if the specified plugin class has a declared method for generating custom chunk data.
    boolean
    hasGenerator(org.bukkit.plugin.Plugin plugin)
    Checks whether the given plugin has an associated generator.
  • Method Details

    • hasGenerator

      @Contract(pure=true) boolean hasGenerator(org.bukkit.plugin.Plugin plugin)
      Checks whether the given plugin has an associated generator.
      Parameters:
      plugin - the plugin to check for an associated generator
      Returns:
      true if the plugin has a generator, otherwise false
    • hasChunkGenerator

      @Contract(pure=true) boolean hasChunkGenerator(Class<? extends org.bukkit.plugin.Plugin> clazz)
      Checks if the specified plugin class has a declared method for generating custom chunk data.
      Parameters:
      clazz - the class of the plugin to check
      Returns:
      true if the plugin class overrides the method for providing a ChunkGenerator, otherwise false
    • hasBiomeProvider

      @Contract(pure=true) boolean hasBiomeProvider(Class<? extends org.bukkit.plugin.Plugin> clazz)
      Checks if the specified plugin class has a declared method for providing a default biome provider.
      Parameters:
      clazz - the class of the plugin to check
      Returns:
      true if the plugin class overrides the method to provide a default biome provider, otherwise false