Record Class MinecraftVersionMeta.Library
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.minecraft.MinecraftVersionMeta.Library
- Enclosing class:
- MinecraftVersionMeta
public static record MinecraftVersionMeta.Library(MinecraftVersionMeta.Downloads downloads, String name, Map<String,String> natives, List<MinecraftVersionMeta.Rule> rules, Object extract)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLibrary(MinecraftVersionMeta.Downloads downloads, String name, Map<String,String> natives, List<MinecraftVersionMeta.Rule> rules, Object extract)Creates an instance of aLibraryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionartifact()Returns the value of thedownloadsrecord component.booleanIndicates whether some other object is "equal to" this one.extract()Returns the value of theextractrecord component.inthashCode()Returns a hash code value for this object.booleanbooleanbooleanname()Returns the value of thenamerecord component.natives()Returns the value of thenativesrecord component.rules()Returns the value of therulesrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Library
public Library(MinecraftVersionMeta.Downloads downloads, String name, Map<String,String> natives, List<MinecraftVersionMeta.Rule> rules, Object extract)Creates an instance of aLibraryrecord class.- Parameters:
downloads- the value for thedownloadsrecord componentname- the value for thenamerecord componentnatives- the value for thenativesrecord componentrules- the value for therulesrecord componentextract- the value for theextractrecord component
-
-
Method Details
-
isValidForOS
public boolean isValidForOS() -
hasNatives
public boolean hasNatives() -
hasNativesForOS
public boolean hasNativesForOS() -
classifierForOS
-
artifact
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
downloads
Returns the value of thedownloadsrecord component.- Returns:
- the value of the
downloadsrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
natives
Returns the value of thenativesrecord component.- Returns:
- the value of the
nativesrecord component
-
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-
extract
Returns the value of theextractrecord component.- Returns:
- the value of the
extractrecord component
-