Package net.thenextlvl.worlds.api.view
Interface GeneratorView
@NullMarked
public interface GeneratorView
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasBiomeProvider(Class<? extends org.bukkit.plugin.Plugin> clazz) Checks if the specified plugin class has a declared method for providing a default biome provider.booleanhasChunkGenerator(Class<? extends org.bukkit.plugin.Plugin> clazz) Checks if the specified plugin class has a declared method for generating custom chunk data.booleanhasGenerator(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
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
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
-