Class QueryResponse.PluginInformation
java.lang.Object
com.velocitypowered.api.proxy.server.QueryResponse.PluginInformation
- Enclosing class:
QueryResponse
Represents a plugin in the query response.
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Gets the name of the plugin.Gets the version of the plugin, if available.inthashCode()Creates a newQueryResponse.PluginInformationinstance with the given name and version.toString()
-
Method Details
-
getName
Gets the name of the plugin.- Returns:
- the plugin name
-
getVersion
Gets the version of the plugin, if available.- Returns:
- an
Optionalcontaining the version if present
-
of
Creates a newQueryResponse.PluginInformationinstance with the given name and version.- Parameters:
name- the name of the pluginversion- the version of the plugin (nullable)- Returns:
- a new
QueryResponse.PluginInformationinstance
-
toString
-
equals
-
hashCode
public int hashCode()
-