Contents
Record Class FluidPatternHelper.FluidInfo
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.utils.FluidPatternHelper.FluidInfo
- Record Components:
fluidId- the fluid ID from the asset mapfluidLevel- the fluid level (typically max level)
- Enclosing class:
FluidPatternHelper
Holds information about a fluid to be placed.
-
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.
-
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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
fluidId
-
fluidLevel
public byte fluidLevel()Returns the value of thefluidLevelrecord component.- Returns:
- the value of the
fluidLevelrecord component
-