Enum Class IncompatibleFileReporting
java.lang.Object
java.lang.Enum<IncompatibleFileReporting>
net.neoforged.neoforgespi.locating.IncompatibleFileReporting
- All Implemented Interfaces:
Serializable
,Comparable<IncompatibleFileReporting>
,Constable
Defines how files that are not handled are reported.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdd aModLoadingIssue
of severityModLoadingIssue.Severity.ERROR
if the file is not determined to be a compatible mod or explicit library.Do nothing if the file is not detected as compatible.Add aModLoadingIssue
of severityModLoadingIssue.Severity.WARNING
if the file is not determined to be a compatible mod or explicit library.Add aModLoadingIssue
of severityModLoadingIssue.Severity.WARNING
if the file is not determined to be a compatible mod or explicit library, and the file triggers the built-in detection for incompatible modding systems (IncompatibleModReason
). -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ModLoadingIssue.Severity
private final org.slf4j.event.Level
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
IncompatibleFileReporting
(org.slf4j.event.Level logLevel, ModLoadingIssue.Severity issueSeverity) -
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.event.Level
static IncompatibleFileReporting
Returns the enum constant of this class with the specified name.static IncompatibleFileReporting[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
Add aModLoadingIssue
of severityModLoadingIssue.Severity.ERROR
if the file is not determined to be a compatible mod or explicit library. -
WARN_ALWAYS
Add aModLoadingIssue
of severityModLoadingIssue.Severity.WARNING
if the file is not determined to be a compatible mod or explicit library. -
WARN_ON_KNOWN_INCOMPATIBILITY
Add aModLoadingIssue
of severityModLoadingIssue.Severity.WARNING
if the file is not determined to be a compatible mod or explicit library, and the file triggers the built-in detection for incompatible modding systems (IncompatibleModReason
). -
IGNORE
Do nothing if the file is not detected as compatible.
-
-
Field Details
-
logLevel
private final org.slf4j.event.Level logLevel -
issueSeverity
-
-
Constructor Details
-
IncompatibleFileReporting
private IncompatibleFileReporting(org.slf4j.event.Level logLevel, ModLoadingIssue.Severity issueSeverity)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getLogLevel
public org.slf4j.event.Level getLogLevel() -
getIssueSeverity
-