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 SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for themodidrecord component.private final @Nullable ModContainerThe field for theresolverrecord component.private final ModMismatchEvent.MismatchedVersionInfoThe field for theversionDifferencerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionMismatchResolutionResult(String modid, ModMismatchEvent.MismatchedVersionInfo versionDifference, @Nullable ModContainer resolver) Creates an instance of aMismatchResolutionResultrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modid()Returns the value of themodidrecord component.@Nullable ModContainerresolver()Returns the value of theresolverrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theversionDifferencerecord component.boolean
- 
Field Details- 
modidThe field for themodidrecord component.
- 
versionDifferenceThe field for theversionDifferencerecord component.
- 
resolverThe field for theresolverrecord component.
 
- 
- 
Constructor Details- 
MismatchResolutionResultpublic MismatchResolutionResult(String modid, ModMismatchEvent.MismatchedVersionInfo versionDifference, @Nullable @Nullable ModContainer resolver) Creates an instance of aMismatchResolutionResultrecord class.- Parameters:
- modid- the value for the- modidrecord component
- versionDifference- the value for the- versionDifferencerecord component
- resolver- the value for the- resolverrecord component
 
 
- 
- 
Method Details- 
wasSelfResolvedpublic boolean wasSelfResolved()
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
modidReturns the value of themodidrecord component.- Returns:
- the value of the modidrecord component
 
- 
versionDifferenceReturns the value of theversionDifferencerecord component.- Returns:
- the value of the versionDifferencerecord component
 
- 
resolverReturns the value of theresolverrecord component.- Returns:
- the value of the resolverrecord component
 
 
-