Class Configuration

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

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Represents a configuration section which contains yields per crop.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode
    Whether the Fortune enchantment will be applied to crop yields.
    final @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode
    Whether using a hoe will damage it.
    final @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode
    Whether debug output should be enabled.
    final @NotNull dev.satyrn.papermc.api.configuration.v1.EnumNode<HandYields>
    The yield for crops which are harvested by hand.
    final @NotNull dev.satyrn.papermc.api.configuration.v2.EnumListNode<org.bukkit.Material>
    A list of materials which should count as hoes.
    final @NotNull dev.satyrn.papermc.api.configuration.v1.StringNode
    The locale to use.
    final @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode
    Whether plugin metrics should be enabled.
    final @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode
    Whether the plugin requires a player to be using a hoe to harvest items.
    final @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode
    Whether the player requires seeds of a matching crop type to be able to replant crops.
    Yield configuration per crop.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Configuration(@NotNull org.bukkit.plugin.Plugin plugin)
    Initializes 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, toString

    Methods inherited from class java.lang.Object

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

    • hoeItems

      @NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v2.EnumListNode<org.bukkit.Material> hoeItems
      A list of materials which should count as hoes.
      Since:
      0.0.0-SNAPSHOT
    • requireHoe

      @NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode requireHoe
      Whether the plugin requires a player to be using a hoe to harvest items.
      Since:
      0.0.0-SNAPSHOT
    • damageHoe

      @NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode damageHoe
      Whether using a hoe will damage it.
      Since:
      0.0.0-SNAPSHOT
    • applyFortune

      @NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode applyFortune
      Whether the Fortune enchantment will be applied to crop yields.
      Since:
      0.0.0-SNAPSHOT
    • requireSeedsToReplant

      @NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode requireSeedsToReplant
      Whether the player requires seeds of a matching crop type to be able to replant crops. This also counts dropped seeds if any.
      Since:
      0.0.0-SNAPSHOT
    • handYield

      @NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.EnumNode<HandYields> handYield
      The yield for crops which are harvested by hand.
      Since:
      0.0.0-SNAPSHOT
    • yields

      @NotNull public final transient @NotNull Configuration.YieldsConfig yields
      Yield configuration per crop.
      Since:
      0.0.0-SNAPSHOT
    • debug

      @NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode debug
      Whether debug output should be enabled.
      Since:
      0.0.0-SNAPSHOT
    • metrics

      @NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode metrics
      Whether plugin metrics should be enabled.
      Since:
      0.0.0-SNAPSHOT
    • locale

      @NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.StringNode locale
      The locale to use.
      Since:
      0.0.0-SNAPSHOT
  • Constructor Details

    • Configuration

      public Configuration(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
      Initializes a new instance of the plugin configuration.
      Parameters:
      plugin - The plugin instance.
      Since:
      0.0.0-SNAPSHOT