Record Class CustomRegistryMetaInfo
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.registry.CustomRegistryMetaInfo
public record CustomRegistryMetaInfo(String registryId, List<CustomRegistryMetaInfo.TypeInfo> typeInfos)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, CustomRegistryMetaInfo> -
Constructor Summary
ConstructorsConstructorDescriptionCustomRegistryMetaInfo(String registryId, List<CustomRegistryMetaInfo.TypeInfo> typeInfos) Creates an instance of aCustomRegistryMetaInforecord 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 theregistryIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeInfosrecord component.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, CustomRegistryMetaInfo> STREAM_CODEC
-
-
Constructor Details
-
CustomRegistryMetaInfo
Creates an instance of aCustomRegistryMetaInforecord class.- Parameters:
registryId- the value for theregistryIdrecord componenttypeInfos- the value for thetypeInfosrecord component
-
-
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). -
registryId
Returns the value of theregistryIdrecord component.- Returns:
- the value of the
registryIdrecord component
-
typeInfos
Returns the value of thetypeInfosrecord component.- Returns:
- the value of the
typeInfosrecord component
-