Package net.minecraft.data.report
Record Class DataPackStructureProvider.FakeRegistry
java.lang.Object
java.lang.Record
net.minecraft.data.report.DataPackStructureProvider.FakeRegistry
- Record Components:
format
-entry
-
- Enclosing class:
DataPackStructureProvider
private static record DataPackStructureProvider.FakeRegistry(DataPackStructureProvider.Format format, DataPackStructureProvider.Entry entry)
extends Record
- Mappings:
Namespace Name named net/minecraft/data/report/DataPackStructureProvider$FakeRegistry
intermediary net/minecraft/class_10107$class_10108
official mz$a
named format
intermediary comp_3069
official b
named entry
intermediary comp_3070
official c
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DataPackStructureProvider.FakeRegistry> private final DataPackStructureProvider.Entry
The field for theentry
record component.private final DataPackStructureProvider.Format
The field for theformat
record component. -
Constructor Summary
ConstructorDescriptionCreates an instance of aFakeRegistry
record class. -
Method Summary
Modifier and TypeMethodDescriptionentry()
Returns the value of theentry
record component.final boolean
Indicates whether some other object is "equal to" this one.format()
Returns the value of theformat
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
format
The field for theformat
record component. -
entry
The field for theentry
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/data/report/DataPackStructureProvider$FakeRegistry;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_53705
Lnet/minecraft/class_10107$class_10108;field_53705:Lcom/mojang/serialization/Codec;
official a
Lmz$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
FakeRegistry
FakeRegistry(DataPackStructureProvider.Format format, DataPackStructureProvider.Entry entry) Creates an instance of aFakeRegistry
record class.
-
-
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)
. -
format
Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
entry
Returns the value of theentry
record component.- Returns:
- the value of the
entry
record component
-