Record Class FluidPatternHelper.FluidInfo
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.utils.FluidPatternHelper.FluidInfo
- Enclosing class:
FluidPatternHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thefluidIdrecord component.private final byteThe field for thefluidLevelrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFluidInfo(int fluidId, byte fluidLevel) Creates an instance of aFluidInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfluidId()Returns the value of thefluidIdrecord component.byteReturns the value of thefluidLevelrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
fluidId
private final int fluidIdThe field for thefluidIdrecord component. -
fluidLevel
private final byte fluidLevelThe field for thefluidLevelrecord component.
-
-
Constructor Details
-
FluidInfo
public FluidInfo(int fluidId, byte fluidLevel) Creates an instance of aFluidInforecord class.- Parameters:
fluidId- the value for thefluidIdrecord componentfluidLevel- the value for thefluidLevelrecord 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 '=='. -
fluidId
public int fluidId()Returns the value of thefluidIdrecord component.- Returns:
- the value of the
fluidIdrecord component
-
fluidLevel
public byte fluidLevel()Returns the value of thefluidLevelrecord component.- Returns:
- the value of the
fluidLevelrecord component
-