Record Class RegistrationInfo
java.lang.Object
java.lang.Record
net.minecraft.core.RegistrationInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistrationInfoThe field for theknownPackInforecord component.private final com.mojang.serialization.LifecycleThe field for thelifecyclerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRegistrationInfo(Optional<KnownPack> knownPackInfo, com.mojang.serialization.Lifecycle lifecycle) Creates an instance of aRegistrationInforecord class. -
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
-
lifecycle
private final com.mojang.serialization.Lifecycle lifecycleThe field for thelifecyclerecord component. -
BUILT_IN
-
-
Constructor Details
-
RegistrationInfo
-
-
Method Details
-
toString
-
hashCode
-
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
-
lifecycle
public com.mojang.serialization.Lifecycle lifecycle()Returns the value of thelifecyclerecord component.- Returns:
- the value of the
lifecyclerecord component
-