Index
All Classes and Interfaces|All Packages|Serialized Form
A
- asList() - Static method in interface me.croabeast.file.SectionMappable
-
Creates an empty
SectionMappable.Listinstance. - asList() - Static method in interface me.croabeast.file.UnitMappable
-
Creates an empty
UnitMappable.Listinstance. - asList(Map<Integer, List<ConfigurationSection>>) - Static method in interface me.croabeast.file.SectionMappable
-
Creates a
SectionMappable.Listinstance from the given map. - asList(Map<Integer, List<U>>) - Static method in interface me.croabeast.file.UnitMappable
-
Creates a new
UnitMappable.Listinstance from the given map. - asSectionMap(String) - Method in interface me.croabeast.file.Configurable
-
Converts a configuration section into a
SectionMappable.Set. - asSet() - Static method in interface me.croabeast.file.SectionMappable
-
Creates an empty
SectionMappable.Setinstance. - asSet() - Static method in interface me.croabeast.file.UnitMappable
-
Creates an empty
UnitMappable.Setinstance. - asSet(Map<Integer, Set<ConfigurationSection>>) - Static method in interface me.croabeast.file.SectionMappable
-
Creates a
SectionMappable.Setinstance from the given map. - asSet(Map<Integer, Set<U>>) - Static method in interface me.croabeast.file.UnitMappable
-
Creates a new
UnitMappable.Setinstance from the given map. - asUnitMap(String, Function<ConfigurationSection, U>) - Method in interface me.croabeast.file.Configurable
-
Converts a configuration section into a
UnitMappable.Setby applying a transformation function.
B
- BaseBuilder<B> - Interface in me.croabeast.common.builder
-
A foundational interface for builder patterns, ensuring a self-referential type.
C
- Configurable - Interface in me.croabeast.file
-
Represents an object that can manage and manipulate a
FileConfiguration. - ConfigurableFile - Class in me.croabeast.file
-
Represents a YAML file that supports configuration management by implementing the
Configurableinterface. - ConfigurableFile(T, String, String) - Constructor for class me.croabeast.file.ConfigurableFile
-
Constructs a new
ConfigurableFilewith the specified loader, folder, and name. - ConfigurableFile(T, String) - Constructor for class me.croabeast.file.ConfigurableFile
-
Constructs a new
ConfigurableFilewith the specified loader and name. - ConfigurableUnit - Interface in me.croabeast.file
-
Represents a configuration unit used for handling permissions, groups, and priorities in a configuration section.
- contains(String) - Method in interface me.croabeast.file.Configurable
-
Checks if the configuration contains a specific key, considering default values.
- contains(String, boolean) - Method in interface me.croabeast.file.Configurable
-
Checks if the configuration contains a specific key.
- copy() - Method in interface me.croabeast.common.Copyable
-
Creates and returns a copy of this object.
- copy() - Method in class me.croabeast.file.HashMappable
-
Creates a shallow copy of this
HashMappable. - Copyable<T> - Interface in me.croabeast.common
-
A generic interface that defines a method for creating a copy of an object.
E
- equals(Object) - Method in class me.croabeast.file.YAMLFile
-
Compares this YAMLFile to another object.
- equals(String, String) - Method in class me.croabeast.file.YAMLFile
-
Compares this YAMLFile to another YAMLFile based on folder and name.
F
- fileFrom(File, String...) - Method in class me.croabeast.file.ResourceUtils
-
Creates a
Fileobject by resolving the specified child file paths against the given parent directory. - filter(Predicate<T>) - Method in interface me.croabeast.file.Mappable
-
Filters the stored elements based on the given predicate, modifying the current instance.
G
- get(String, Class<T>) - Method in interface me.croabeast.file.Configurable
-
Retrieves a value from the configuration at the specified path and attempts to cast it to the given type.
- get(String, T) - Method in interface me.croabeast.file.Configurable
-
Retrieves a value from the configuration at the specified path, returning a default if the key does not exist.
- getConfiguration() - Method in interface me.croabeast.file.Configurable
-
Gets the primary configuration associated with this configurable instance.
- getConfiguration() - Method in class me.croabeast.file.YAMLFile
-
Gets the YAML configuration.
- getGroup() - Method in interface me.croabeast.file.ConfigurableUnit
-
Gets the group associated with this unit.
- getKeys(String) - Method in interface me.croabeast.file.Configurable
-
Retrieves all top-level keys within a specified configuration section.
- getKeys(String, boolean) - Method in interface me.croabeast.file.Configurable
-
Retrieves all keys within a specified configuration section.
- getName() - Method in interface me.croabeast.file.ConfigurableUnit
-
Gets the name of the configuration section.
- getPermission() - Method in interface me.croabeast.file.ConfigurableUnit
-
Gets the permission associated with this unit.
- getPriority() - Method in interface me.croabeast.file.ConfigurableUnit
-
Gets the priority associated with this unit.
- getResource() - Method in class me.croabeast.file.YAMLFile
-
Gets the input stream of the resource file.
- getSection() - Method in interface me.croabeast.file.ConfigurableUnit
-
Gets the configuration section associated with this unit.
- getSection(String) - Method in interface me.croabeast.file.Configurable
-
Retrieves a configuration section from the specified path.
- getSections(String) - Method in interface me.croabeast.file.Configurable
-
Retrieves all top-level subsections within a specified configuration section.
- getSections(String, boolean) - Method in interface me.croabeast.file.Configurable
-
Retrieves all subsections within a specified configuration section.
- getStoredValues() - Method in class me.croabeast.file.HashMappable
-
Retrieves all stored values across all keys combined into a single collection.
- getStoredValues() - Method in interface me.croabeast.file.Mappable.BaseList
-
Retrieves all stored values merged into a
List. - getStoredValues() - Method in interface me.croabeast.file.Mappable.BaseSet
-
Retrieves all stored values merged into a
Set. - getStoredValues() - Method in interface me.croabeast.file.Mappable
-
Retrieves all stored values merged into a single collection.
- getStoredValues(Supplier<V>) - Method in interface me.croabeast.file.Mappable
-
Retrieves all stored values merged into a single collection, using the provided supplier to create the collection.
- getUnit(Player) - Method in interface me.croabeast.file.UnitMappable
H
- hashCode() - Method in class me.croabeast.file.YAMLFile
-
Computes the hash code for this YAMLFile based on its folder and name.
- HashMappable<T,
C> - Class in me.croabeast.file - HashMappable(Supplier<C>) - Constructor for class me.croabeast.file.HashMappable
-
Constructs an empty
HashMappablewith the specified collection supplier. - HashMappable(Supplier<C>, Map<Integer, ? extends C>) - Constructor for class me.croabeast.file.HashMappable
-
Constructs a new
HashMappablewith the mappings copied from the provided map. - hasPerm(CommandSender) - Method in interface me.croabeast.file.ConfigurableUnit
-
Checks if the given command sender has the permission associated with this unit.
I
- instance() - Method in interface me.croabeast.common.builder.BaseBuilder
-
Provides an instance of the builder, ensuring fluent-style method chaining.
- instance() - Method in class me.croabeast.file.HashMappable
-
Returns this instance as a
HashMappable. - isInGroup(CommandSender) - Method in interface me.croabeast.file.ConfigurableUnit
-
Checks if the given command sender is in the group associated with this unit.
- isInGroupAsNull(CommandSender) - Method in interface me.croabeast.file.ConfigurableUnit
-
Checks if the group associated with this unit is blank or the given sender is in that group.
- isInGroupNonNull(CommandSender) - Method in interface me.croabeast.file.ConfigurableUnit
-
Checks if the group associated with this unit is not blank and the given sender is in that group.
- iterator() - Method in interface me.croabeast.file.Mappable
-
Returns an iterator over the map's entries.
M
- Mappable<T,
C, - Interface in me.croabeast.fileB> -
Represents a specialized mapping structure that associates integer keys with collections of elements.
- Mappable.BaseList<T,
B> - Interface in me.croabeast.file -
A sub-interface of
Mappablespecialized forListcollections. - Mappable.BaseSet<T,
B> - Interface in me.croabeast.file -
A sub-interface of
Mappablespecialized forSetcollections. - me.croabeast.common - package me.croabeast.common
- me.croabeast.common.builder - package me.croabeast.common.builder
- me.croabeast.file - package me.croabeast.file
- me.croabeast.file.plugin - package me.croabeast.file.plugin
O
- of(ConfigurableUnit) - Static method in interface me.croabeast.file.ConfigurableUnit
-
Creates a new
ConfigurableUnitinstance based on the providedConfigurableUnit. - of(ConfigurationSection) - Static method in interface me.croabeast.file.ConfigurableUnit
-
Creates a new
ConfigurableUnitinstance based on the provided configuration section. - of(FileConfiguration) - Static method in interface me.croabeast.file.Configurable
-
Creates a new
Configurableinstance from a givenFileConfiguration. - of(T, String, File, String...) - Static method in class me.croabeast.file.YAMLUpdater
-
Creates a new
YAMLUpdaterinstance with ignored keys provided as varargs. - of(T, String, File, List<String>) - Static method in class me.croabeast.file.YAMLUpdater
-
Creates a new
YAMLUpdaterinstance using the specified resource path and ignored keys. - order(boolean) - Method in interface me.croabeast.file.Mappable
-
Orders the keys in ascending or descending order.
- order(Comparator<Integer>) - Method in class me.croabeast.file.HashMappable
-
Orders the entries of this
HashMappableusing the provided comparator. - order(Comparator<Integer>) - Method in interface me.croabeast.file.Mappable
-
Orders the keys in the mapping based on the given comparator.
R
- reload() - Method in class me.croabeast.file.YAMLFile
-
Reloads the YAML configuration from the file.
- ResourceUtils - Class in me.croabeast.file
-
The
ResourceUtilsclass provides utility methods for handling file resources, such as saving resources to the file system and constructing file paths. - ResourceUtils() - Constructor for class me.croabeast.file.ResourceUtils
S
- save() - Method in class me.croabeast.file.YAMLFile
-
Saves the YAML configuration to the file (without debug logging).
- save(boolean) - Method in class me.croabeast.file.YAMLFile
-
Saves the YAML configuration to the file.
- saveDefaults() - Method in class me.croabeast.file.YAMLFile
-
Saves the default configuration if the file does not exist (without debug logging).
- saveDefaults(boolean) - Method in class me.croabeast.file.YAMLFile
-
Saves the default configuration if the file does not exist.
- saveResource(InputStream, File, String) - Method in class me.croabeast.file.ResourceUtils
-
Saves the specified resource to the given file path within the data folder.
- saveResource(InputStream, File, String, boolean) - Method in class me.croabeast.file.ResourceUtils
-
Saves the specified resource to the given file path within the data folder.
- SectionMappable<C,
S> - Interface in me.croabeast.file -
Represents a specialized
Mappablefor mapping integer keys to collections ofConfigurationSectionobjects. - SectionMappable.List - Interface in me.croabeast.file
-
Represents a
SectionMappableimplementation backed by aList. - SectionMappable.Set - Interface in me.croabeast.file
-
Represents a
SectionMappableimplementation backed by aSet. - set(String, T) - Method in interface me.croabeast.file.Configurable
-
Sets a value in the configuration at the specified path.
- setResourcePath(String) - Method in class me.croabeast.file.ConfigurableFile
-
Sets the resource path for this configuration file.
- setResourcePath(String) - Method in class me.croabeast.file.YAMLFile
-
Sets the resource path for this YAMLFile without debug logging.
- setResourcePath(String, boolean) - Method in class me.croabeast.file.YAMLFile
-
Sets the resource path for this YAMLFile.
- setUpdatable(boolean) - Method in class me.croabeast.file.ConfigurableFile
-
Sets whether this configuration file should be updatable.
T
- toList() - Method in interface me.croabeast.file.SectionMappable.Set
-
Converts this set-based mappable into a list-based mappable.
- toList() - Method in interface me.croabeast.file.UnitMappable.Set
-
Converts this set-based mappable into a list of configurable units.
- toSectionMap(ConfigurationSection, String) - Static method in interface me.croabeast.file.Configurable
-
Converts a configuration section into a
SectionMappable.Setinstance. - toSet() - Method in interface me.croabeast.file.SectionMappable.List
-
Converts this list-based mappable into a set-based mappable.
- toSet() - Method in interface me.croabeast.file.UnitMappable.List
-
Converts this list-based mappable into a set of configurable units.
- toString() - Method in class me.croabeast.file.YAMLFile
-
Returns a string representation of this YAMLFile.
- toStringList(String) - Method in interface me.croabeast.file.Configurable
-
Retrieves a list of strings from the configuration at the specified path.
- toStringList(ConfigurationSection, String) - Static method in interface me.croabeast.file.Configurable
-
Converts a configuration section's value into a list of strings.
- toStringList(ConfigurationSection, String, List<String>) - Static method in interface me.croabeast.file.Configurable
-
Converts a configuration section's value into a list of strings.
- toUnits(Function<ConfigurationSection, U>) - Method in interface me.croabeast.file.SectionMappable.List
-
Transforms the contained
ConfigurationSectionelements into aUnitMappable.Listby applying the provided function. - toUnits(Function<ConfigurationSection, U>) - Method in interface me.croabeast.file.SectionMappable.Set
-
Transforms the contained
ConfigurationSectionelements into aUnitMappable.Setby applying the provided function.
U
- UnitMappable<U,
C, - Interface in me.croabeast.fileUM> -
Represents a mappable collection of configurable units.
- UnitMappable.List<U> - Interface in me.croabeast.file
-
A sub-interface of
UnitMappablespecialized for list-backed collections. - UnitMappable.Set<U> - Interface in me.croabeast.file
-
A sub-interface of
UnitMappablespecialized for set-backed collections. - update() - Method in class me.croabeast.file.YAMLFile
-
Updates the YAML configuration (without debug logging).
- update() - Method in class me.croabeast.file.YAMLUpdater
-
Updates the YAML configuration file by merging missing keys while preserving comments and formatting.
- update(boolean) - Method in class me.croabeast.file.YAMLFile
-
Updates the YAML configuration.
Y
- YAMLFile - Class in me.croabeast.file
-
YAMLFile is a utility class for managing YAML configuration files in Bukkit plugins.
- YAMLFile(Object, String, String) - Constructor for class me.croabeast.file.YAMLFile
-
Constructs a YAMLFile with the specified loader, folder, and name.
- YAMLFile(Object, String) - Constructor for class me.croabeast.file.YAMLFile
-
Constructs a YAMLFile with the specified loader and name.
- YAMLPlugin - Class in me.croabeast.file.plugin
- YAMLPlugin() - Constructor for class me.croabeast.file.plugin.YAMLPlugin
- YAMLUpdater - Class in me.croabeast.file
-
A utility class for updating YAML configuration files while preserving comments and formatting.
All Classes and Interfaces|All Packages|Serialized Form