Package net.minecraft
Record Class ReportType
java.lang.Object
java.lang.Record
net.minecraft.ReportType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReportTypestatic final ReportTypeprivate final StringThe field for theheaderrecord component.static final ReportTypeThe field for thenuggetsrecord component.static final ReportTypestatic final ReportType -
Constructor Summary
ConstructorsConstructorDescriptionReportType(String header, List<String> nuggets) Creates an instance of aReportTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHeader(StringBuilder p_344403_, List<String> p_343736_) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.nuggets()Returns the value of thenuggetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
header
The field for theheaderrecord component. -
nuggets
The field for thenuggetsrecord component. -
CRASH
-
PROFILE
-
TEST
-
NETWORK_PROTOCOL_ERROR
-
CHUNK_IO_ERROR
-
-
Constructor Details
-
ReportType
Creates an instance of aReportTyperecord class.- Parameters:
header- the value for theheaderrecord componentnuggets- the value for thenuggetsrecord component
-
-
Method Details
-
getErrorComment
-
appendHeader
-
toString
Returns 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. -
hashCode
public 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. -
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). -
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
nuggets
Returns the value of thenuggetsrecord component.- Returns:
- the value of the
nuggetsrecord component
-