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$FakeRegistryintermediary net/minecraft/class_10107$class_10108official mz$anamed formatintermediary comp_3069official bnamed entryintermediary comp_3070official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DataPackStructureProvider.FakeRegistry> private final DataPackStructureProvider.EntryThe field for theentryrecord component.private final DataPackStructureProvider.FormatThe field for theformatrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aFakeRegistryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
format
The field for theformatrecord component. -
entry
The field for theentryrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/data/report/DataPackStructureProvider$FakeRegistry;CODEC:Lcom/mojang/serialization/Codec;intermediary field_53705Lnet/minecraft/class_10107$class_10108;field_53705:Lcom/mojang/serialization/Codec;official aLmz$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
FakeRegistry
FakeRegistry(DataPackStructureProvider.Format format, DataPackStructureProvider.Entry entry) Creates an instance of aFakeRegistryrecord 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 theformatrecord component.- Returns:
- the value of the
formatrecord component
-
entry
Returns the value of theentryrecord component.- Returns:
- the value of the
entryrecord component
-