Record Class AbstractModProvider.DefaultModFileInfo
java.lang.Object
java.lang.Record
net.minecraftforge.fml.loading.moddiscovery.AbstractModProvider.DefaultModFileInfo
- All Implemented Interfaces:
- net.minecraftforge.forgespi.language.IConfigurable,- net.minecraftforge.forgespi.language.IModFileInfo
- Enclosing class:
- AbstractModProvider
private static record AbstractModProvider.DefaultModFileInfo(net.minecraftforge.forgespi.locating.IModFile mod, String license, net.minecraftforge.forgespi.language.IConfigurable configurable)
extends Record
implements net.minecraftforge.forgespi.language.IModFileInfo, net.minecraftforge.forgespi.language.IConfigurable
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraftforge.forgespi.language.IModFileInfonet.minecraftforge.forgespi.language.IModFileInfo.LanguageSpec
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final net.minecraftforge.forgespi.language.IConfigurableThe field for theconfigurablerecord component.private final StringThe field for thelicenserecord component.private final net.minecraftforge.forgespi.locating.IModFileThe field for themodrecord component.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateDefaultModFileInfo(net.minecraftforge.forgespi.locating.IModFile mod, String license, net.minecraftforge.forgespi.language.IConfigurable configurable) Creates an instance of aDefaultModFileInforecord class.
- 
Method SummaryModifier and TypeMethodDescriptionnet.minecraftforge.forgespi.language.IConfigurableReturns the value of theconfigurablerecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraftforge.forgespi.language.IConfigurable<T> Optional<T>getConfigElement(String... strings) List<? extends net.minecraftforge.forgespi.language.IConfigurable>getConfigList(String... strings) net.minecraftforge.forgespi.locating.IModFilegetFile()List<net.minecraftforge.forgespi.language.IModInfo>getMods()final inthashCode()Returns a hash code value for this object.license()Returns the value of thelicenserecord component.net.minecraftforge.forgespi.locating.IModFilemod()Returns the value of themodrecord component.List<net.minecraftforge.forgespi.language.IModFileInfo.LanguageSpec>booleantoString()Returns a string representation of this record class.
- 
Field Details- 
modprivate final net.minecraftforge.forgespi.locating.IModFile modThe field for themodrecord component.
- 
licenseThe field for thelicenserecord component.
- 
configurableprivate final net.minecraftforge.forgespi.language.IConfigurable configurableThe field for theconfigurablerecord component.
 
- 
- 
Constructor Details- 
DefaultModFileInfoprivate DefaultModFileInfo(net.minecraftforge.forgespi.locating.IModFile mod, String license, net.minecraftforge.forgespi.language.IConfigurable configurable) Creates an instance of aDefaultModFileInforecord class.- Parameters:
- mod- the value for the- modrecord component
- license- the value for the- licenserecord component
- configurable- the value for the- configurablerecord component
 
 
- 
- 
Method Details- 
getConfigElement- Specified by:
- getConfigElementin interface- net.minecraftforge.forgespi.language.IConfigurable
 
- 
getConfigListpublic List<? extends net.minecraftforge.forgespi.language.IConfigurable> getConfigList(String... strings) - Specified by:
- getConfigListin interface- net.minecraftforge.forgespi.language.IConfigurable
 
- 
getMods- Specified by:
- getModsin interface- net.minecraftforge.forgespi.language.IModFileInfo
 
- 
requiredLanguageLoaderspublic List<net.minecraftforge.forgespi.language.IModFileInfo.LanguageSpec> requiredLanguageLoaders()- Specified by:
- requiredLanguageLoadersin interface- net.minecraftforge.forgespi.language.IModFileInfo
 
- 
showAsResourcePackpublic boolean showAsResourcePack()- Specified by:
- showAsResourcePackin interface- net.minecraftforge.forgespi.language.IModFileInfo
 
- 
getFileProperties- Specified by:
- getFilePropertiesin interface- net.minecraftforge.forgespi.language.IModFileInfo
 
- 
getLicense- Specified by:
- getLicensein interface- net.minecraftforge.forgespi.language.IModFileInfo
 
- 
getFilepublic net.minecraftforge.forgespi.locating.IModFile getFile()- Specified by:
- getFilein interface- net.minecraftforge.forgespi.language.IModFileInfo
 
- 
getConfigpublic net.minecraftforge.forgespi.language.IConfigurable getConfig()- Specified by:
- getConfigin interface- net.minecraftforge.forgespi.language.IModFileInfo
 
- 
moduleName- Specified by:
- moduleNamein interface- net.minecraftforge.forgespi.language.IModFileInfo
 
- 
versionString- Specified by:
- versionStringin interface- net.minecraftforge.forgespi.language.IModFileInfo
 
- 
usesServices- Specified by:
- usesServicesin interface- net.minecraftforge.forgespi.language.IModFileInfo
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
modpublic net.minecraftforge.forgespi.locating.IModFile mod()Returns the value of themodrecord component.- Returns:
- the value of the modrecord component
 
- 
licenseReturns the value of thelicenserecord component.- Returns:
- the value of the licenserecord component
 
- 
configurablepublic net.minecraftforge.forgespi.language.IConfigurable configurable()Returns the value of theconfigurablerecord component.- Returns:
- the value of the configurablerecord component
 
 
-