Record Class Environment
java.lang.Object
java.lang.Record
com.mojang.authlib.Environment
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thenamerecord component.private final StringThe field for theprofilesHostrecord component.private final StringThe field for theservicesHostrecord component.private final StringThe field for thesessionHostrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEnvironment(String sessionHost, String servicesHost, String profilesHost, String name) Creates an instance of aEnvironmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theprofilesHostrecord component.Returns the value of theservicesHostrecord component.Returns the value of thesessionHostrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sessionHost
The field for thesessionHostrecord component. -
servicesHost
The field for theservicesHostrecord component. -
profilesHost
The field for theprofilesHostrecord component. -
name
The field for thenamerecord component.
-
-
Constructor Details
-
Environment
Creates an instance of aEnvironmentrecord class.- Parameters:
sessionHost- the value for thesessionHostrecord componentservicesHost- the value for theservicesHostrecord componentprofilesHost- the value for theprofilesHostrecord componentname- the value for thenamerecord 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). -
sessionHost
Returns the value of thesessionHostrecord component.- Returns:
- the value of the
sessionHostrecord component
-
servicesHost
Returns the value of theservicesHostrecord component.- Returns:
- the value of the
servicesHostrecord component
-
profilesHost
Returns the value of theprofilesHostrecord component.- Returns:
- the value of the
profilesHostrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-