Package xyz.srnyx.annoyingapi.utility
Class ConfigurationUtility
java.lang.Object
xyz.srnyx.annoyingapi.utility.ConfigurationUtility
Utility methods for relationships between
ConfigurationSections and Maps-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.configuration.MemoryConfigurationtoConfiguration(@NotNull Map<?, ?> map) Converts aMapto aMemoryConfigurationstatic @NotNull List<org.bukkit.configuration.MemoryConfiguration> toConfigurationList(@NotNull List<Map<?, ?>> maps) toMap(@NotNull org.bukkit.configuration.ConfigurationSection section) Converts aConfigurationSectionto aMap
-
Method Details
-
toConfiguration
@NotNull public static @NotNull org.bukkit.configuration.MemoryConfiguration toConfiguration(@NotNull @NotNull Map<?, ?> map) Converts aMapto aMemoryConfiguration- Parameters:
map- the map to convert- Returns:
- the converted configuration section
-
toConfigurationList
@NotNull public static @NotNull List<org.bukkit.configuration.MemoryConfiguration> toConfigurationList(@NotNull @NotNull List<Map<?, ?>> maps) - Parameters:
maps- the maps to convert- Returns:
- the converted configuration sections
-
toMap
@NotNull public static @NotNull Map<String,Object> toMap(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section) Converts aConfigurationSectionto aMap- Parameters:
section- the section to convert- Returns:
- the converted map
-
toMapList
@NotNull public static @NotNull List<Map<String,Object>> toMapList(@NotNull @NotNull List<org.bukkit.configuration.ConfigurationSection> sections) - Parameters:
sections- the sections to convert- Returns:
- the converted maps
-