Package appeng.api.networking.crafting
Record Class UnsuitableCpus
java.lang.Object
java.lang.Record
appeng.api.networking.crafting.UnsuitableCpus
Details about unsuitable crafting CPUs unavailable for a job. Detail for
CraftingSubmitErrorCode.NO_SUITABLE_CPU_FOUND
.-
Constructor Summary
ConstructorsConstructorDescriptionUnsuitableCpus
(int offline, int busy, int tooSmall, int excluded) Creates an instance of aUnsuitableCpus
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
busy()
Returns the value of thebusy
record component.final boolean
Indicates whether some other object is "equal to" this one.int
excluded()
Returns the value of theexcluded
record component.final int
hashCode()
Returns a hash code value for this object.int
offline()
Returns the value of theoffline
record component.int
tooSmall()
Returns the value of thetooSmall
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
UnsuitableCpus
public UnsuitableCpus(int offline, int busy, int tooSmall, int excluded) Creates an instance of aUnsuitableCpus
record class.- Parameters:
offline
- the value for theoffline
record componentbusy
- the value for thebusy
record componenttooSmall
- the value for thetooSmall
record componentexcluded
- the value for theexcluded
record component
-
-
Method Details
-
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 '=='. -
offline
public int offline()Returns the value of theoffline
record component.- Returns:
- the value of the
offline
record component
-
busy
public int busy()Returns the value of thebusy
record component.- Returns:
- the value of the
busy
record component
-
tooSmall
public int tooSmall()Returns the value of thetooSmall
record component.- Returns:
- the value of the
tooSmall
record component
-
excluded
public int excluded()Returns the value of theexcluded
record component.- Returns:
- the value of the
excluded
record component
-