Package xyz.srnyx.annoyingapi.file
Class AnnoyingResource.Options
java.lang.Object
xyz.srnyx.javautilities.parents.Stringable
xyz.srnyx.annoyingapi.file.AnnoyingFile.Options<AnnoyingResource.Options>
xyz.srnyx.annoyingapi.file.AnnoyingResource.Options
- Enclosing class:
AnnoyingResource
Represents the options for the
Default options:
AnnoyingResource
Default options:
createDefaultFile=true- rest:
AnnoyingFile.Options
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether to create an up-to-date default file in thedefaultfolderFields inherited from class xyz.srnyx.annoyingapi.file.AnnoyingFile.Options
canBeEmpty, replace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDefaultFile(boolean createDefaultFile) SetscreateDefaultFilestatic AnnoyingResource.Optionsload(@NotNull org.bukkit.configuration.ConfigurationSection section) Loads theAnnoyingResource.Optionsfrom theConfigurationSection@NotNull StringtoString()Methods inherited from class xyz.srnyx.annoyingapi.file.AnnoyingFile.Options
canBeEmpty, load, replaceMethods inherited from class xyz.srnyx.javautilities.parents.Stringable
toString, toString, toString, toString
-
Field Details
-
createDefaultFile
public boolean createDefaultFileWhether to create an up-to-date default file in thedefaultfolder
-
-
Constructor Details
-
Options
public Options()Constructs a newAnnoyingResource.Optionswith the default values
-
-
Method Details
-
load
@NotNull public static AnnoyingResource.Options load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section) Loads theAnnoyingResource.Optionsfrom theConfigurationSection- Parameters:
section- the section to load from- Returns:
- the loaded
AnnoyingResource.Options
-
createDefaultFile
SetscreateDefaultFile- Parameters:
createDefaultFile- the new value- Returns:
- this
-
toString
- Overrides:
toStringin classxyz.srnyx.javautilities.parents.Stringable
-