Package net.minecraftforge.client
Record Class ExtendedServerListData
java.lang.Object
java.lang.Record
net.minecraftforge.client.ExtendedServerListData
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for theextraReasonrecord component.private final booleanThe field for theisCompatiblerecord component.private final intThe field for thenumberOfModsrecord component.private final booleanThe field for thetruncatedrecord component.private final StringThe field for thetyperecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionExtendedServerListData(String type, boolean isCompatible, int numberOfMods, String extraReason) ExtendedServerListData(String type, boolean isCompatible, int numberOfMods, String extraReason, boolean truncated) Creates an instance of aExtendedServerListDatarecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theextraReasonrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisCompatiblerecord component.intReturns the value of thenumberOfModsrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.type()Returns the value of thetyperecord component.
- 
Field Details- 
typeThe field for thetyperecord component.
- 
isCompatibleprivate final boolean isCompatibleThe field for theisCompatiblerecord component.
- 
numberOfModsprivate final int numberOfModsThe field for thenumberOfModsrecord component.
- 
extraReasonThe field for theextraReasonrecord component.
- 
truncatedprivate final boolean truncatedThe field for thetruncatedrecord component.
 
- 
- 
Constructor Details- 
ExtendedServerListData
- 
ExtendedServerListDatapublic ExtendedServerListData(String type, boolean isCompatible, int numberOfMods, String extraReason, boolean truncated) Creates an instance of aExtendedServerListDatarecord class.- Parameters:
- type- the value for the- typerecord component
- isCompatible- the value for the- isCompatiblerecord component
- numberOfMods- the value for the- numberOfModsrecord component
- extraReason- the value for the- extraReasonrecord component
- truncated- the value for the- truncatedrecord component
 
 
- 
- 
Method Details- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
isCompatiblepublic boolean isCompatible()Returns the value of theisCompatiblerecord component.- Returns:
- the value of the isCompatiblerecord component
 
- 
numberOfModspublic int numberOfMods()Returns the value of thenumberOfModsrecord component.- Returns:
- the value of the numberOfModsrecord component
 
- 
extraReasonReturns the value of theextraReasonrecord component.- Returns:
- the value of the extraReasonrecord component
 
- 
truncatedpublic boolean truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the truncatedrecord component
 
 
-