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.Stringable
Options for
entity data management-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntities()Constructs a newDataOptions.Entitiesinstance with default values -
Method Summary
Modifier and TypeMethodDescription@NotNull DataOptions.EntitiesfileOptions(@NotNull 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.EntitiesDeprecated.PDC/YML storage has been replaced with SQL storage@NotNull DataOptions.EntitiesDeprecated.PDC/YML storage has been replaced with SQL storageMethods inherited from class xyz.srnyx.javautilities.parents.Stringable
toString, toString, toString, toString, toString
-
Field Details
-
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
Deprecated.PDC/YML storage has been replaced with SQL storageThe options for all entity data files -
section
Deprecated.PDC/YML storage has been replaced with SQL storageThe YML section/node where the entity data will be stored
-
-
Constructor Details
-
Entities
public Entities()Constructs a newDataOptions.Entitiesinstance with default values
-
-
Method Details
-
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
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 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
Deprecated.PDC/YML storage has been replaced with SQL storageSetssection- Parameters:
node- the new value- Returns:
- this
DataOptions.Entitiesinstance for chaining
-