Class Configuration

java.lang.Object
dev.satyrn.papermc.api.configuration.v1.ConfigurationNode<Void>
dev.satyrn.papermc.api.configuration.v1.ConfigurationContainer
dev.satyrn.deepcavespiders.configuration.Configuration

public final class Configuration extends dev.satyrn.papermc.api.configuration.v1.ConfigurationContainer
Represents the configuration for the plugin.
Since:
1.0-SNAPSHOT
Author:
Isabel Maskrey
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Container with difficulty-based spawning chances.
    static class 
    Container with spawning options.
    static class 
    Container with spawning height range options.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final dev.satyrn.papermc.api.configuration.v2.EnumListNode<org.bukkit.block.Biome>
    List of biomes in which cave spiders should be allowed to spawn.
    final @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode
    Whether to enable debug logging.
    final dev.satyrn.papermc.api.configuration.v2.EnumListNode<org.bukkit.World.Environment>
    List of environments in which cave spiders should be allowed to spawn.
    final dev.satyrn.papermc.api.configuration.v1.StringNode
    The locale to use for internationalization.
    final @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode
    Whether to enable plugin metrics.
    final dev.satyrn.papermc.api.configuration.v2.EnumListNode<org.bukkit.entity.EntityType>
    List of entity types which may be replaced by cave spiders.
    The spawning options.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Configuration(org.bukkit.plugin.Plugin plugin)
    Creates a new instance of the plugin configuration.
  • Method Summary

    Methods inherited from class dev.satyrn.papermc.api.configuration.v1.ConfigurationContainer

    defaultValue, value

    Methods inherited from class dev.satyrn.papermc.api.configuration.v1.ConfigurationNode

    getConfig, getName, getPath, getPath, getPlugin, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • locale

      public final transient dev.satyrn.papermc.api.configuration.v1.StringNode locale
      The locale to use for internationalization.
    • spawnOptions

      public final transient Configuration.SpawnOptionsContainer spawnOptions
      The spawning options.
    • biomes

      public final transient dev.satyrn.papermc.api.configuration.v2.EnumListNode<org.bukkit.block.Biome> biomes
      List of biomes in which cave spiders should be allowed to spawn.
    • environments

      public final transient dev.satyrn.papermc.api.configuration.v2.EnumListNode<org.bukkit.World.Environment> environments
      List of environments in which cave spiders should be allowed to spawn.
    • replaceEntities

      public final dev.satyrn.papermc.api.configuration.v2.EnumListNode<org.bukkit.entity.EntityType> replaceEntities
      List of entity types which may be replaced by cave spiders.
    • debug

      @NotNull public final @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode debug
      Whether to enable debug logging.
    • metrics

      @NotNull public final @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode metrics
      Whether to enable plugin metrics.
  • Constructor Details

    • Configuration

      public Configuration(org.bukkit.plugin.Plugin plugin)
      Creates a new instance of the plugin configuration.
      Parameters:
      plugin - The plugin.