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

    Fields
    Modifier and Type
    Field
    Description
    private final FMLLoader
    The field for the loader record component.
    private final StartupArgs
    The field for the startupArgs record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    StartupResult(FMLLoader loader, StartupArgs startupArgs)
    Creates an instance of a StartupResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the loader record component.
    Returns the value of the startupArgs record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • loader

      private final FMLLoader loader
      The field for the loader record component.
    • startupArgs

      private final StartupArgs startupArgs
      The field for the startupArgs record component.
  • Constructor Details

    • StartupResult

      protected StartupResult(FMLLoader loader, StartupArgs startupArgs)
      Creates an instance of a StartupResult record class.
      Parameters:
      loader - the value for the loader record component
      startupArgs - the value for the startupArgs record component
  • Method Details

    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • loader

      public FMLLoader loader()
      Returns the value of the loader record component.
      Returns:
      the value of the loader record component
    • startupArgs

      public StartupArgs startupArgs()
      Returns the value of the startupArgs record component.
      Returns:
      the value of the startupArgs record component