public static class DataOptions.Entities
extends java.lang.Object
entity data management| Modifier and Type | Field and Description |
|---|---|
AnnoyingFile.Options<?> |
fileOptions
The options for all entity data files
|
@NotNull java.lang.String |
path
The path to the folder (inside
plugins/PLUGIN/data/) where the entity data files will be stored |
@NotNull java.lang.String |
section
The YML section/node where the entity data will be stored
|
| Constructor and Description |
|---|
Entities()
Constructs a new
DataOptions.Entities instance with default values |
| Modifier and Type | Method and Description |
|---|---|
@NotNull DataOptions.Entities |
fileOptions(AnnoyingFile.Options<?> fileOptions)
Sets
fileOptions |
@NotNull DataOptions.Entities |
fileOptions(@NotNull java.util.function.Consumer<AnnoyingFile.Options<?>> consumer)
Sets
fileOptions using the specified Consumer |
static @NotNull DataOptions.Entities |
load(@NotNull org.bukkit.configuration.ConfigurationSection section)
Loads the options from the specified
ConfigurationSection |
@NotNull DataOptions.Entities |
node(@NotNull java.lang.String node)
Sets
section |
@NotNull DataOptions.Entities |
path(@NotNull java.lang.String path)
Sets
path |
@NotNull public @NotNull java.lang.String path
plugins/PLUGIN/data/) where the entity data files will be stored@Nullable public AnnoyingFile.Options<?> fileOptions
@NotNull public @NotNull java.lang.String section
public Entities()
DataOptions.Entities instance with default values@NotNull public static @NotNull DataOptions.Entities load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
ConfigurationSectionsection - the section to load the options from@NotNull public @NotNull DataOptions.Entities path(@NotNull @NotNull java.lang.String path)
pathpath - the new valueDataOptions.Entities instance for chaining@NotNull public @NotNull DataOptions.Entities fileOptions(@Nullable AnnoyingFile.Options<?> fileOptions)
fileOptionsfileOptions - the new valueDataOptions.Entities instance for chaining@NotNull public @NotNull DataOptions.Entities fileOptions(@NotNull @NotNull java.util.function.Consumer<AnnoyingFile.Options<?>> consumer)
fileOptions using the specified Consumerconsumer - the Consumer to accept the new fileOptionsDataOptions.Entities instance for chaining@NotNull public @NotNull DataOptions.Entities node(@NotNull @NotNull java.lang.String node)
sectionnode - the new valueDataOptions.Entities instance for chaining