public static class PluginPlatform.Multi
extends xyz.srnyx.javautilities.parents.Stringable
PluginPlatforms| Modifier and Type | Field and Description |
|---|---|
@NotNull java.util.Set<PluginPlatform> |
pluginPlatforms
The
PluginPlatforms in this Multi |
| Constructor and Description |
|---|
Multi()
Creates a new empty
PluginPlatform.Multi |
Multi(@NotNull java.util.Collection<PluginPlatform> pluginPlatforms)
Creates a new
PluginPlatform.Multi with the given PluginPlatforms |
Multi(PluginPlatform... pluginPlatforms)
Creates a new
PluginPlatform.Multi with the given PluginPlatforms |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(PluginPlatform... pluginPlatforms)
Adds the given
plugin platforms to this PluginPlatform.Multi |
boolean |
addIfAbsent(PluginPlatform... pluginPlatforms)
Adds the given
plugin platforms to this PluginPlatform.Multi if they don't already exist |
@Nullable PluginPlatform |
get(@NotNull PluginPlatform.Platform platform)
Gets the
PluginPlatform for the given PluginPlatform.Platform |
@Nullable java.lang.String |
getIdentifier(@NotNull PluginPlatform.Platform platform)
Gets the
PluginPlatform.identifier for the given PluginPlatform.Platform |
static @NotNull PluginPlatform.Multi |
load(@NotNull org.bukkit.configuration.ConfigurationSection section,
@NotNull java.lang.String key)
Loads a
PluginPlatform.Multi from the given ConfigurationSection |
boolean |
remove(PluginPlatform.Platform... platforms)
Removes the
plugin platforms for the given platforms |
@NotNull java.lang.String |
toString() |
@NotNull public final @NotNull java.util.Set<PluginPlatform> pluginPlatforms
PluginPlatforms in this Multipublic Multi()
PluginPlatform.Multipublic Multi(@NotNull
@NotNull java.util.Collection<PluginPlatform> pluginPlatforms)
PluginPlatform.Multi with the given PluginPlatformspluginPlatforms - pluginPlatformspublic Multi(@NotNull
PluginPlatform... pluginPlatforms)
PluginPlatform.Multi with the given PluginPlatformspluginPlatforms - pluginPlatforms@NotNull public static @NotNull PluginPlatform.Multi load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section, @NotNull @NotNull java.lang.String key)
PluginPlatform.Multi from the given ConfigurationSectionsection - the ConfigurationSection to load fromkey - the key to load fromPluginPlatform.Multi@Nullable public @Nullable PluginPlatform get(@NotNull @NotNull PluginPlatform.Platform platform)
PluginPlatform for the given PluginPlatform.Platformplatform - the PluginPlatform.Platform to get the PluginPlatform forPluginPlatform for the given PluginPlatform.Platform@Nullable
public @Nullable java.lang.String getIdentifier(@NotNull
@NotNull PluginPlatform.Platform platform)
PluginPlatform.identifier for the given PluginPlatform.Platformplatform - the PluginPlatform.Platform to get the PluginPlatform.identifier forPluginPlatform.identifier for the given PluginPlatform.Platformpublic boolean add(@NotNull
PluginPlatform... pluginPlatforms)
plugin platforms to this PluginPlatform.MultipluginPlatforms - the plugin platforms to addplugin platform was addedpublic boolean addIfAbsent(@NotNull
PluginPlatform... pluginPlatforms)
plugin platforms to this PluginPlatform.Multi if they don't already existpluginPlatforms - the plugin platforms to addplugin platform was addedpublic boolean remove(@NotNull
PluginPlatform.Platform... platforms)
plugin platforms for the given platformsplatforms - the platforms to remove the plugin platforms forplugin platform was removed@NotNull public @NotNull java.lang.String toString()
toString in class xyz.srnyx.javautilities.parents.Stringable