Record Class ProtocolVersionMetadata
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.screen.impl.protocol.ProtocolVersionMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionProtocolVersionMetadata(@Nullable String title, LocalDate releaseDate, net.minecraft.resources.Identifier icon) Creates an instance of aProtocolVersionMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.network.chat.Componentfinal inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifiericon()Returns the value of theiconrecord component.static net.minecraft.resources.Identifiericon(@Nullable com.viaversion.viaversion.api.protocol.version.ProtocolVersion version) static @Nullable ProtocolVersionMetadataof(com.viaversion.viaversion.api.protocol.version.ProtocolVersion version) Returns the value of thereleaseDaterecord component.@Nullable Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProtocolVersionMetadata
public ProtocolVersionMetadata(@Nullable @Nullable String title, LocalDate releaseDate, net.minecraft.resources.Identifier icon) Creates an instance of aProtocolVersionMetadatarecord class.- Parameters:
title- the value for thetitlerecord componentreleaseDate- the value for thereleaseDaterecord componenticon- the value for theiconrecord component
-
-
Method Details
-
of
@Nullable public static @Nullable ProtocolVersionMetadata of(com.viaversion.viaversion.api.protocol.version.ProtocolVersion version) -
icon
public static net.minecraft.resources.Identifier icon(@Nullable @Nullable com.viaversion.viaversion.api.protocol.version.ProtocolVersion version) -
formattedReleaseDate
public net.minecraft.network.chat.Component formattedReleaseDate() -
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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
releaseDate
Returns the value of thereleaseDaterecord component.- Returns:
- the value of the
releaseDaterecord component
-
icon
public net.minecraft.resources.Identifier icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-