Package net.neoforged.fml
Record Class ModLoadingIssue
java.lang.Object
java.lang.Record
net.neoforged.fml.ModLoadingIssue
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable IModInfoThe field for theaffectedModrecord component.private final @Nullable IModFileThe field for theaffectedModFilerecord component.private final @Nullable PathThe field for theaffectedPathrecord component.private final @Nullable ThrowableThe field for thecauserecord component.private final ModLoadingIssue.SeverityThe field for theseverityrecord component.The field for thetranslationArgsrecord component.private final StringThe field for thetranslationKeyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModLoadingIssue(ModLoadingIssue.Severity severity, String translationKey, List<Object> translationArgs) ModLoadingIssue(ModLoadingIssue.Severity severity, String translationKey, List<Object> translationArgs, @Nullable Throwable cause, @Nullable Path affectedPath, @Nullable IModFile affectedModFile, @Nullable IModInfo affectedMod) Creates an instance of aModLoadingIssuerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable IModInfoReturns the value of theaffectedModrecord component.@Nullable IModFileReturns the value of theaffectedModFilerecord component.@Nullable PathReturns the value of theaffectedPathrecord component.@Nullable Throwablecause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.static ModLoadingIssuefinal inthashCode()Returns a hash code value for this object.severity()Returns the value of theseverityrecord component.toString()Returns a string representation of this record class.Returns the value of thetranslationArgsrecord component.Returns the value of thetranslationKeyrecord component.static ModLoadingIssuewithAffectedMod(IModInfo affectedMod) withAffectedModFile(IModFile affectedModFile) withAffectedPath(Path affectedPath) withSeverity(ModLoadingIssue.Severity severity)
-
Field Details
-
severity
The field for theseverityrecord component. -
translationKey
The field for thetranslationKeyrecord component. -
translationArgs
The field for thetranslationArgsrecord component. -
cause
The field for thecauserecord component. -
affectedPath
The field for theaffectedPathrecord component. -
affectedModFile
The field for theaffectedModFilerecord component. -
affectedMod
The field for theaffectedModrecord component.
-
-
Constructor Details
-
ModLoadingIssue
public ModLoadingIssue(ModLoadingIssue.Severity severity, String translationKey, List<Object> translationArgs) -
ModLoadingIssue
public ModLoadingIssue(ModLoadingIssue.Severity severity, String translationKey, List<Object> translationArgs, @Nullable @Nullable Throwable cause, @Nullable @Nullable Path affectedPath, @Nullable @Nullable IModFile affectedModFile, @Nullable @Nullable IModInfo affectedMod) Creates an instance of aModLoadingIssuerecord class.- Parameters:
severity- the value for theseverityrecord componenttranslationKey- the value for thetranslationKeyrecord componenttranslationArgs- the value for thetranslationArgsrecord componentcause- the value for thecauserecord componentaffectedPath- the value for theaffectedPathrecord componentaffectedModFile- the value for theaffectedModFilerecord componentaffectedMod- the value for theaffectedModrecord component
-
-
Method Details
-
error
-
warning
-
withAffectedPath
-
withAffectedModFile
-
withAffectedMod
-
withCause
-
withSeverity
-
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). -
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
translationKey
Returns the value of thetranslationKeyrecord component.- Returns:
- the value of the
translationKeyrecord component
-
translationArgs
Returns the value of thetranslationArgsrecord component.- Returns:
- the value of the
translationArgsrecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-
affectedPath
Returns the value of theaffectedPathrecord component.- Returns:
- the value of the
affectedPathrecord component
-
affectedModFile
Returns the value of theaffectedModFilerecord component.- Returns:
- the value of the
affectedModFilerecord component
-
affectedMod
Returns the value of theaffectedModrecord component.- Returns:
- the value of the
affectedModrecord component
-