Record Class RegistryInfo
java.lang.Object
java.lang.Record
net.neoforged.neoforge.server.jsonrpc.RegistryInfo
public record RegistryInfo(Identifier registryName, Optional<Boolean> synced, List<Identifier> entries)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RegistryInfo> private final List<Identifier> The field for theentriesrecord component.private final IdentifierThe field for theregistryNamerecord component.The field for thesyncedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRegistryInfo(Identifier registryName, Optional<Boolean> synced, List<Identifier> entries) Creates an instance of aRegistryInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theregistryNamerecord component.synced()Returns the value of thesyncedrecord component.final StringtoString()Returns a string representation of this record class.(package private) static RegistryInfowithEntries(HolderLookup.RegistryLookup<?> lookup)
-
Field Details
-
registryName
The field for theregistryNamerecord component. -
synced
-
entries
The field for theentriesrecord component. -
CODEC
-
-
Constructor Details
-
RegistryInfo
Creates an instance of aRegistryInforecord class.- Parameters:
registryName- the value for theregistryNamerecord componentsynced- the value for thesyncedrecord componententries- the value for theentriesrecord component
-
-
Method Details
-
withEntries
-
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). -
registryName
Returns the value of theregistryNamerecord component.- Returns:
- the value of the
registryNamerecord component
-
synced
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-