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 named net/minecraft/registry/entry/RegistryEntryInfointermediary net/minecraft/class_9248official jynamed knownPackInfointermediary comp_2354official bnamed lifecycleintermediary comp_2355official c
-
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 named DEFAULTLnet/minecraft/registry/entry/RegistryEntryInfo;DEFAULT:Lnet/minecraft/registry/entry/RegistryEntryInfo;intermediary field_49136Lnet/minecraft/class_9248;field_49136:Lnet/minecraft/class_9248;official aLjy;a:Ljy;
-
-
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
-