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 -
Constructor Summary
ConstructorsConstructorDescriptionHatchTopology(int inputBuses, int outputBuses, int inputHatches, int outputHatches, int energyHatches) Creates an instance of aHatchTopologyrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncompact()intReturns the value of theenergyHatchesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinputBusesrecord component.intReturns the value of theinputHatchesrecord component.intReturns the value of theoutputBusesrecord component.intReturns the value of theoutputHatchesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
HatchTopology
public HatchTopology(int inputBuses, int outputBuses, int inputHatches, int outputHatches, int energyHatches) Creates an instance of aHatchTopologyrecord class.- Parameters:
inputBuses- the value for theinputBusesrecord componentoutputBuses- the value for theoutputBusesrecord componentinputHatches- the value for theinputHatchesrecord componentoutputHatches- the value for theoutputHatchesrecord componentenergyHatches- the value for theenergyHatchesrecord component
-
-
Method Details
-
compact
-
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 with '=='. -
inputBuses
public int inputBuses()Returns the value of theinputBusesrecord component.- Returns:
- the value of the
inputBusesrecord component
-
outputBuses
public int outputBuses()Returns the value of theoutputBusesrecord component.- Returns:
- the value of the
outputBusesrecord component
-
inputHatches
public int inputHatches()Returns the value of theinputHatchesrecord component.- Returns:
- the value of the
inputHatchesrecord component
-
outputHatches
public int outputHatches()Returns the value of theoutputHatchesrecord component.- Returns:
- the value of the
outputHatchesrecord component
-
energyHatches
public int energyHatches()Returns the value of theenergyHatchesrecord component.- Returns:
- the value of the
energyHatchesrecord component
-