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 builder, List<String> extraComments) 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
-
CRASH
-
PROFILE
-
TEST
-
NETWORK_PROTOCOL_ERROR
-
CHUNK_IO_ERROR
-
-
Constructor Details
-
ReportType
-
-
Method Details
-
getErrorComment
-
appendHeader
-
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). -
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
nuggets
-