Package xyz.srnyx.annoyingapi.options
Class DataOptions.Entities
- java.lang.Object
-
- xyz.srnyx.javautilities.parents.Stringable
-
- xyz.srnyx.annoyingapi.options.DataOptions.Entities
-
- Enclosing class:
- DataOptions
public static class DataOptions.Entities extends xyz.srnyx.javautilities.parents.StringableOptions forentity data management
-
-
Field Summary
Fields Modifier and Type Field Description AnnoyingFile.Options<?>fileOptionsDeprecated.PDC/YML storage has been replaced with SQL storage@NotNull java.lang.StringpathDeprecated.PDC/YML storage has been replaced with SQL storage@NotNull java.lang.StringsectionDeprecated.PDC/YML storage has been replaced with SQL storage
-
Constructor Summary
Constructors Constructor Description Entities()Constructs a newDataOptions.Entitiesinstance with default values
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull DataOptions.EntitiesfileOptions(@NotNull java.util.function.Consumer<AnnoyingFile.Options<?>> consumer)Deprecated.PDC/YML storage has been replaced with SQL storage@NotNull DataOptions.EntitiesfileOptions(AnnoyingFile.Options<?> fileOptions)Deprecated.PDC/YML storage has been replaced with SQL storagestatic @NotNull DataOptions.Entitiesload(@NotNull org.bukkit.configuration.ConfigurationSection section)Loads the options from the specifiedConfigurationSection@NotNull DataOptions.Entitiesnode(@NotNull java.lang.String node)Deprecated.PDC/YML storage has been replaced with SQL storage@NotNull DataOptions.Entitiespath(@NotNull java.lang.String path)Deprecated.PDC/YML storage has been replaced with SQL storage
-
-
-
Field Detail
-
path
@NotNull @Deprecated public @NotNull java.lang.String path
Deprecated.PDC/YML storage has been replaced with SQL storageThe path to the folder (insideplugins/PLUGIN/data/) where the entity data files will be stored
-
fileOptions
@Nullable @Deprecated public AnnoyingFile.Options<?> fileOptions
Deprecated.PDC/YML storage has been replaced with SQL storageThe options for all entity data files
-
section
@NotNull @Deprecated public @NotNull java.lang.String section
Deprecated.PDC/YML storage has been replaced with SQL storageThe YML section/node where the entity data will be stored
-
-
Constructor Detail
-
Entities
public Entities()
Constructs a newDataOptions.Entitiesinstance with default values
-
-
Method Detail
-
load
@NotNull public static @NotNull DataOptions.Entities load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
Loads the options from the specifiedConfigurationSection- Parameters:
section- the section to load the options from- Returns:
- the loaded options
-
path
@NotNull @Deprecated public @NotNull DataOptions.Entities path(@NotNull @NotNull java.lang.String path)
Deprecated.PDC/YML storage has been replaced with SQL storageSetspath- Parameters:
path- the new value- Returns:
- this
DataOptions.Entitiesinstance for chaining
-
fileOptions
@NotNull @Deprecated public @NotNull DataOptions.Entities fileOptions(@Nullable AnnoyingFile.Options<?> fileOptions)
Deprecated.PDC/YML storage has been replaced with SQL storageSetsfileOptions- Parameters:
fileOptions- the new value- Returns:
- this
DataOptions.Entitiesinstance for chaining
-
fileOptions
@NotNull @Deprecated public @NotNull DataOptions.Entities fileOptions(@NotNull @NotNull java.util.function.Consumer<AnnoyingFile.Options<?>> consumer)
Deprecated.PDC/YML storage has been replaced with SQL storageSetsfileOptionsusing the specifiedConsumer- Parameters:
consumer- theConsumerto accept the newfileOptions- Returns:
- this
DataOptions.Entitiesinstance for chaining
-
node
@NotNull @Deprecated public @NotNull DataOptions.Entities node(@NotNull @NotNull java.lang.String node)
Deprecated.PDC/YML storage has been replaced with SQL storageSetssection- Parameters:
node- the new value- Returns:
- this
DataOptions.Entitiesinstance for chaining
-
-