Record Class CommonLaunchHandler.LaunchType

java.lang.Object
java.lang.Record
net.minecraftforge.fml.loading.targets.CommonLaunchHandler.LaunchType
Enclosing class:
CommonLaunchHandler

protected static record CommonLaunchHandler.LaunchType(String name, String module, String main, net.minecraftforge.api.distmarker.Dist dist, boolean data) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the data record component.
    private final net.minecraftforge.api.distmarker.Dist
    The field for the dist record component.
    private final String
    The field for the main record component.
    private final String
    The field for the module record component.
    private final String
    The field for the name record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    LaunchType(String name, String module, String main, net.minecraftforge.api.distmarker.Dist dist, boolean data)
    Creates an instance of a LaunchType record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the data record component.
    net.minecraftforge.api.distmarker.Dist
    Returns the value of the dist record component.
    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 main record component.
    Returns the value of the module record component.
    Returns the value of the name 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

    • name

      private final String name
      The field for the name record component.
    • module

      private final String module
      The field for the module record component.
    • main

      private final String main
      The field for the main record component.
    • dist

      private final net.minecraftforge.api.distmarker.Dist dist
      The field for the dist record component.
    • data

      private final boolean data
      The field for the data record component.
  • Constructor Details

    • LaunchType

      protected LaunchType(String name, String module, String main, net.minecraftforge.api.distmarker.Dist dist, boolean data)
      Creates an instance of a LaunchType record class.
      Parameters:
      name - the value for the name record component
      module - the value for the module record component
      main - the value for the main record component
      dist - the value for the dist record component
      data - the value for the data record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • module

      public String module()
      Returns the value of the module record component.
      Returns:
      the value of the module record component
    • main

      public String main()
      Returns the value of the main record component.
      Returns:
      the value of the main record component
    • dist

      public net.minecraftforge.api.distmarker.Dist dist()
      Returns the value of the dist record component.
      Returns:
      the value of the dist record component
    • data

      public boolean data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component