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 IModInfo
The field for theaffectedMod
record component.private final @Nullable IModFile
The field for theaffectedModFile
record component.private final @Nullable Path
The field for theaffectedPath
record component.private final @Nullable Throwable
The field for thecause
record component.private final ModLoadingIssue.Severity
The field for theseverity
record component.The field for thetranslationArgs
record component.private final String
The field for thetranslationKey
record 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 aModLoadingIssue
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable IModInfo
Returns the value of theaffectedMod
record component.@Nullable IModFile
Returns the value of theaffectedModFile
record component.@Nullable Path
Returns the value of theaffectedPath
record component.@Nullable Throwable
cause()
Returns the value of thecause
record component.final boolean
Indicates whether some other object is "equal to" this one.static ModLoadingIssue
final int
hashCode()
Returns a hash code value for this object.severity()
Returns the value of theseverity
record component.toString()
Returns a string representation of this record class.Returns the value of thetranslationArgs
record component.Returns the value of thetranslationKey
record component.static ModLoadingIssue
withAffectedMod
(IModInfo affectedMod) withAffectedModFile
(IModFile affectedModFile) withAffectedPath
(Path affectedPath) withSeverity
(ModLoadingIssue.Severity severity)
-
Field Details
-
severity
The field for theseverity
record component. -
translationKey
The field for thetranslationKey
record component. -
translationArgs
The field for thetranslationArgs
record component. -
cause
The field for thecause
record component. -
affectedPath
The field for theaffectedPath
record component. -
affectedModFile
The field for theaffectedModFile
record component. -
affectedMod
The field for theaffectedMod
record 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 aModLoadingIssue
record class.- Parameters:
severity
- the value for theseverity
record componenttranslationKey
- the value for thetranslationKey
record componenttranslationArgs
- the value for thetranslationArgs
record componentcause
- the value for thecause
record componentaffectedPath
- the value for theaffectedPath
record componentaffectedModFile
- the value for theaffectedModFile
record componentaffectedMod
- the value for theaffectedMod
record 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 theseverity
record component.- Returns:
- the value of the
severity
record component
-
translationKey
Returns the value of thetranslationKey
record component.- Returns:
- the value of the
translationKey
record component
-
translationArgs
Returns the value of thetranslationArgs
record component.- Returns:
- the value of the
translationArgs
record component
-
cause
Returns the value of thecause
record component.- Returns:
- the value of the
cause
record component
-
affectedPath
Returns the value of theaffectedPath
record component.- Returns:
- the value of the
affectedPath
record component
-
affectedModFile
Returns the value of theaffectedModFile
record component.- Returns:
- the value of the
affectedModFile
record component
-
affectedMod
Returns the value of theaffectedMod
record component.- Returns:
- the value of the
affectedMod
record component
-