Package net.neoforged.fml.startup
Record Class Entrypoint.StartupResult
java.lang.Object
java.lang.Record
net.neoforged.fml.startup.Entrypoint.StartupResult
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
Entrypoint
protected static record Entrypoint.StartupResult(FMLLoader loader, StartupArgs startupArgs)
extends Record
implements AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FMLLoaderThe field for theloaderrecord component.private final StartupArgsThe field for thestartupArgsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStartupResult(FMLLoader loader, StartupArgs startupArgs) Creates an instance of aStartupResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.loader()Returns the value of theloaderrecord component.Returns the value of thestartupArgsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
loader
The field for theloaderrecord component. -
startupArgs
The field for thestartupArgsrecord component.
-
-
Constructor Details
-
StartupResult
Creates an instance of aStartupResultrecord class.- Parameters:
loader- the value for theloaderrecord componentstartupArgs- the value for thestartupArgsrecord component
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
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). -
loader
Returns the value of theloaderrecord component.- Returns:
- the value of the
loaderrecord component
-
startupArgs
Returns the value of thestartupArgsrecord component.- Returns:
- the value of the
startupArgsrecord component
-