Record Class HatchTopology

java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.api.event.state.HatchTopology

@Desugar public record HatchTopology(int inputBuses, int outputBuses, int inputHatches, int outputHatches, int energyHatches) extends Record
Counts of the hatch lists exposed by MTEMultiBlockBase. Used for MachineFormed payloads.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final HatchTopology
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    HatchTopology(int inputBuses, int outputBuses, int inputHatches, int outputHatches, int energyHatches)
    Creates an instance of a HatchTopology record class.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
    Returns the value of the energyHatches record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the inputBuses record component.
    int
    Returns the value of the inputHatches record component.
    int
    Returns the value of the outputBuses record component.
    int
    Returns the value of the outputHatches 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

  • Constructor Details

    • HatchTopology

      public HatchTopology(int inputBuses, int outputBuses, int inputHatches, int outputHatches, int energyHatches)
      Creates an instance of a HatchTopology record class.
      Parameters:
      inputBuses - the value for the inputBuses record component
      outputBuses - the value for the outputBuses record component
      inputHatches - the value for the inputHatches record component
      outputHatches - the value for the outputHatches record component
      energyHatches - the value for the energyHatches record component
  • Method Details

    • compact

      public String compact()
    • 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 '=='.
      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.
    • inputBuses

      public int inputBuses()
      Returns the value of the inputBuses record component.
      Returns:
      the value of the inputBuses record component
    • outputBuses

      public int outputBuses()
      Returns the value of the outputBuses record component.
      Returns:
      the value of the outputBuses record component
    • inputHatches

      public int inputHatches()
      Returns the value of the inputHatches record component.
      Returns:
      the value of the inputHatches record component
    • outputHatches

      public int outputHatches()
      Returns the value of the outputHatches record component.
      Returns:
      the value of the outputHatches record component
    • energyHatches

      public int energyHatches()
      Returns the value of the energyHatches record component.
      Returns:
      the value of the energyHatches record component