Package net.minecraftforge.event
Record Class ModMismatchEvent.MismatchResolutionResult
java.lang.Object
java.lang.Record
net.minecraftforge.event.ModMismatchEvent.MismatchResolutionResult
- Enclosing class:
ModMismatchEvent
public static record ModMismatchEvent.MismatchResolutionResult(String modid, ModMismatchEvent.MismatchedVersionInfo versionDifference, @Nullable ModContainer resolver)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
The field for themodid
record component.private final @Nullable ModContainer
The field for theresolver
record component.private final ModMismatchEvent.MismatchedVersionInfo
The field for theversionDifference
record component. -
Constructor Summary
ConstructorDescriptionMismatchResolutionResult
(String modid, ModMismatchEvent.MismatchedVersionInfo versionDifference, @Nullable ModContainer resolver) Creates an instance of aMismatchResolutionResult
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.@Nullable ModContainer
resolver()
Returns the value of theresolver
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theversionDifference
record component.boolean
-
Field Details
-
modid
The field for themodid
record component. -
versionDifference
The field for theversionDifference
record component. -
resolver
The field for theresolver
record component.
-
-
Constructor Details
-
MismatchResolutionResult
public MismatchResolutionResult(String modid, ModMismatchEvent.MismatchedVersionInfo versionDifference, @Nullable @Nullable ModContainer resolver) Creates an instance of aMismatchResolutionResult
record class.- Parameters:
modid
- the value for themodid
record componentversionDifference
- the value for theversionDifference
record componentresolver
- the value for theresolver
record component
-
-
Method Details
-
wasSelfResolved
public boolean wasSelfResolved() -
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)
. -
modid
Returns the value of themodid
record component.- Returns:
- the value of the
modid
record component
-
versionDifference
Returns the value of theversionDifference
record component.- Returns:
- the value of the
versionDifference
record component
-
resolver
Returns the value of theresolver
record component.- Returns:
- the value of the
resolver
record component
-