Record Class ModMeta
java.lang.Object
java.lang.Record
net.uku3lig.ukulib.utils.ModMeta
- Record Components:
id- The unique identifier of the modname- The fancy display name of the moddescription- The description of the modicon- An optional supplier to a stream, containing the icon of the mod
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Optional<net.minecraft.server.packs.resources.IoSupplier<@NotNull InputStream>> icon()Returns the value of theiconrecord component.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModMeta
public ModMeta(String id, String name, String description, Optional<net.minecraft.server.packs.resources.IoSupplier<@NotNull InputStream>> icon) Creates an instance of aModMetarecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenticon- the value for theiconrecord 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). -
id
-
name
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
icon
-