Record Class CustomRegistryValueInfo
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.registry.CustomRegistryValueInfo
public record CustomRegistryValueInfo(String registryId, List<CustomRegistryValueInfo.ValueInfo> valueInfos)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, CustomRegistryValueInfo> -
Constructor Summary
ConstructorsConstructorDescriptionCustomRegistryValueInfo(String registryId, List<CustomRegistryValueInfo.ValueInfo> valueInfos) Creates an instance of aCustomRegistryValueInforecord 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 thevalueInfosrecord component.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, CustomRegistryValueInfo> STREAM_CODEC
-
-
Constructor Details
-
CustomRegistryValueInfo
public CustomRegistryValueInfo(String registryId, List<CustomRegistryValueInfo.ValueInfo> valueInfos) Creates an instance of aCustomRegistryValueInforecord class.- Parameters:
registryId- the value for theregistryIdrecord componentvalueInfos- the value for thevalueInfosrecord 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
-
valueInfos
Returns the value of thevalueInfosrecord component.- Returns:
- the value of the
valueInfosrecord component
-