Package net.minecraft
Record Class ReportType
java.lang.Object
java.lang.Record
net.minecraft.ReportType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ReportType
static final ReportType
private final String
The field for theheader
record component.static final ReportType
The field for thenuggets
record component.static final ReportType
static final ReportType
-
Constructor Summary
ConstructorDescriptionReportType
(String header, List<String> nuggets) Creates an instance of aReportType
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendHeader
(StringBuilder p_344403_, List<String> p_343736_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.header()
Returns the value of theheader
record component.nuggets()
Returns the value of thenuggets
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
header
The field for theheader
record component. -
nuggets
The field for thenuggets
record component. -
CRASH
-
PROFILE
-
TEST
-
NETWORK_PROTOCOL_ERROR
-
CHUNK_IO_ERROR
-
-
Constructor Details
-
ReportType
Creates an instance of aReportType
record class.- Parameters:
header
- the value for theheader
record componentnuggets
- the value for thenuggets
record 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 theheader
record component.- Returns:
- the value of the
header
record component
-
nuggets
Returns the value of thenuggets
record component.- Returns:
- the value of the
nuggets
record component
-