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
Modifier and TypeClassDescriptionstatic final class
Represents a configuration section which contains yields per crop. -
Field Summary
Modifier and TypeFieldDescriptionfinal @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.final @NotNull Configuration.YieldsConfig
Yield configuration per crop. -
Constructor Summary
ConstructorDescriptionConfiguration
(@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
-
Field Details
-
hoeItems
@NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v2.EnumListNode<org.bukkit.Material> hoeItemsA 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 requireHoeWhether 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 damageHoeWhether using a hoe will damage it.- Since:
- 0.0.0-SNAPSHOT
-
applyFortune
@NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode applyFortuneWhether 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 requireSeedsToReplantWhether 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> handYieldThe yield for crops which are harvested by hand.- Since:
- 0.0.0-SNAPSHOT
-
yields
Yield configuration per crop.- Since:
- 0.0.0-SNAPSHOT
-
debug
@NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode debugWhether debug output should be enabled.- Since:
- 0.0.0-SNAPSHOT
-
metrics
@NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.BooleanNode metricsWhether plugin metrics should be enabled.- Since:
- 0.0.0-SNAPSHOT
-
locale
@NotNull public final transient @NotNull dev.satyrn.papermc.api.configuration.v1.StringNode localeThe 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
-