Record Class MCResponse
java.lang.Object
java.lang.Record
com.zenith.feature.queue.mcping.data.MCResponse
-
Constructor Summary
ConstructorsConstructorDescriptionMCResponse(Players players, Version version, String favicon, String description, net.kyori.adventure.text.Component descriptionComponent) Creates an instance of aMCResponserecord class.MCResponse(Players players, Version version, String favicon, net.kyori.adventure.text.Component descriptionComponent) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.net.kyori.adventure.text.ComponentReturns the value of thedescriptionComponentrecord component.final booleanIndicates whether some other object is "equal to" this one.favicon()Returns the value of thefaviconrecord component.final inthashCode()Returns a hash code value for this object.players()Returns the value of theplayersrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
MCResponse
-
MCResponse
public MCResponse(Players players, Version version, String favicon, String description, net.kyori.adventure.text.Component descriptionComponent) Creates an instance of aMCResponserecord class.- Parameters:
players- the value for theplayersrecord componentversion- the value for theversionrecord componentfavicon- the value for thefaviconrecord componentdescription- the value for thedescriptionrecord componentdescriptionComponent- the value for thedescriptionComponentrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
players
Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
favicon
Returns the value of thefaviconrecord component.- Returns:
- the value of the
faviconrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
descriptionComponent
public net.kyori.adventure.text.Component descriptionComponent()Returns the value of thedescriptionComponentrecord component.- Returns:
- the value of the
descriptionComponentrecord component
-