Package net.minecraft.data.info
Record Class DatapackStructureReport.Report
java.lang.Object
java.lang.Record
net.minecraft.data.info.DatapackStructureReport.Report
- Enclosing class:
DatapackStructureReport
static record DatapackStructureReport.Report(Map<ResourceKey<? extends Registry<?>>,DatapackStructureReport.Entry> registries, Map<String,DatapackStructureReport.CustomPackEntry> others)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DatapackStructureReport.Report> private final Map
<String, DatapackStructureReport.CustomPackEntry> The field for theothers
record component.private final Map
<ResourceKey<? extends Registry<?>>, DatapackStructureReport.Entry> The field for theregistries
record component. -
Constructor Summary
ConstructorsConstructorDescriptionReport
(Map<ResourceKey<? extends Registry<?>>, DatapackStructureReport.Entry> registries, Map<String, DatapackStructureReport.CustomPackEntry> others) Creates an instance of aReport
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.others()
Returns the value of theothers
record component.Map
<ResourceKey<? extends Registry<?>>, DatapackStructureReport.Entry> Returns the value of theregistries
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
registries
The field for theregistries
record component. -
others
The field for theothers
record component. -
CODEC
-
-
Constructor Details
-
Report
Report(Map<ResourceKey<? extends Registry<?>>, DatapackStructureReport.Entry> registries, Map<String, DatapackStructureReport.CustomPackEntry> others) Creates an instance of aReport
record class.- Parameters:
registries
- the value for theregistries
record componentothers
- the value for theothers
record component
-
-
Method Details
-
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)
. -
registries
Returns the value of theregistries
record component.- Returns:
- the value of the
registries
record component
-
others
Returns the value of theothers
record component.- Returns:
- the value of the
others
record component
-