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 aUnsuitableCpusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbusy()Returns the value of thebusyrecord component.final booleanIndicates whether some other object is "equal to" this one.intexcluded()Returns the value of theexcludedrecord component.final inthashCode()Returns a hash code value for this object.intoffline()Returns the value of theofflinerecord component.inttooSmall()Returns the value of thetooSmallrecord component.final StringtoString()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 aUnsuitableCpusrecord class.- Parameters:
offline- the value for theofflinerecord componentbusy- the value for thebusyrecord componenttooSmall- the value for thetooSmallrecord componentexcluded- the value for theexcludedrecord 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 theofflinerecord component.- Returns:
- the value of the
offlinerecord component
-
busy
public int busy()Returns the value of thebusyrecord component.- Returns:
- the value of the
busyrecord component
-
tooSmall
public int tooSmall()Returns the value of thetooSmallrecord component.- Returns:
- the value of the
tooSmallrecord component
-
excluded
public int excluded()Returns the value of theexcludedrecord component.- Returns:
- the value of the
excludedrecord component
-