Contents
Class PluginIdentifier
java.lang.Object
com.hypixel.hytale.common.plugin.PluginIdentifier
Represents an identifier for a plugin, using the plugins group and name
The group represents a unique identifier for a project. (e.g. 'net.hypixel.plugins'), while the name represents the identifier for this specific artifact, which should be unique within the group. (e.g. 'ExamplePlugin')
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPluginIdentifier(PluginManifest manifest) Constructor for aPluginIdentifierinstance from a given manifestPluginIdentifier(String group, String name) Constructor for aPluginIdentifierinstance from a given group and name -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PluginIdentifierfromString(String str) Creates a plugin identifier instance by parsing the provided stringgetGroup()getName()inthashCode()static PluginIdentifiertoString()
-
Field Details
-
THIRD_PARTY_LOADER_NAME
- See Also:
-
-
Constructor Details
-
PluginIdentifier
Constructor for aPluginIdentifierinstance from a given group and name- Parameters:
group- Given group that the plugin is associated withname- Given name of the plugin
-
PluginIdentifier
Constructor for aPluginIdentifierinstance from a given manifest- Parameters:
manifest- The manifest to read the group and name from
-
-
Method Details
-
identifyThirdPartyPlugin
-
getGroup
- Returns:
- the group from this identifier
-
getName
- Returns:
- the name from this identifier
-
hashCode
-
equals
-
toString
-
fromString
Creates a plugin identifier instance by parsing the provided string- Parameters:
str- The string to be parsed- Returns:
- the parsed string as a
PluginIdentifierinstance
-