Package net.neoforged.fml.loading
Record Class FMLConfig.DependencyOverride
java.lang.Object
java.lang.Record
net.neoforged.fml.loading.FMLConfig.DependencyOverride
- Enclosing class:
FMLConfig
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDependencyOverride
(String modId, boolean remove) Creates an instance of aDependencyOverride
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.modId()
Returns the value of themodId
record component.boolean
remove()
Returns the value of theremove
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
modId
The field for themodId
record component. -
remove
private final boolean removeThe field for theremove
record component.
-
-
Constructor Details
-
DependencyOverride
Creates an instance of aDependencyOverride
record class.- Parameters:
modId
- the value for themodId
record componentremove
- the value for theremove
record component
-
-
Method Details
-
getMessage
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
modId
Returns the value of themodId
record component.- Returns:
- the value of the
modId
record component
-
remove
public boolean remove()Returns the value of theremove
record component.- Returns:
- the value of the
remove
record component
-