Package net.minecraft.registry.entry
Record Class RegistryEntryInfo
java.lang.Object
java.lang.Record
net.minecraft.registry.entry.RegistryEntryInfo
- Record Components:
knownPackInfo-lifecycle-
public record RegistryEntryInfo(Optional<VersionedIdentifier> knownPackInfo, com.mojang.serialization.Lifecycle lifecycle)
extends Record
- Mappings:
Namespace Name official izintermediary net/minecraft/class_9248named net/minecraft/registry/entry/RegistryEntryInfoofficial bintermediary comp_2354named knownPackInfoofficial cintermediary comp_2355named lifecycle
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryEntryInfoprivate final Optional<VersionedIdentifier> The field for theknownPackInforecord component.private final com.mojang.serialization.LifecycleThe field for thelifecyclerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRegistryEntryInfo(Optional<VersionedIdentifier> optional, com.mojang.serialization.Lifecycle lifecycle) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theknownPackInforecord component.com.mojang.serialization.LifecycleReturns the value of thelifecyclerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
knownPackInfo
The field for theknownPackInforecord component. -
lifecycle
private final com.mojang.serialization.Lifecycle lifecycleThe field for thelifecyclerecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector official aLiz;a:Liz;intermediary field_49136Lnet/minecraft/class_9248;field_49136:Lnet/minecraft/class_9248;named DEFAULTLnet/minecraft/registry/entry/RegistryEntryInfo;DEFAULT:Lnet/minecraft/registry/entry/RegistryEntryInfo;
-
-
Constructor Details
-
RegistryEntryInfo
public RegistryEntryInfo(Optional<VersionedIdentifier> optional, com.mojang.serialization.Lifecycle lifecycle)
-
-
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). -
knownPackInfo
Returns the value of theknownPackInforecord component.- Returns:
- the value of the
knownPackInforecord component
-
lifecycle
public com.mojang.serialization.Lifecycle lifecycle()Returns the value of thelifecyclerecord component.- Returns:
- the value of the
lifecyclerecord component
-