Contents
Record Class FluidState
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.fluid.FluidState
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFluidState(int fluidLevel, byte verticalFill) Creates an instance of aFluidStaterecord class.FluidState(int fluidLevel, int verticalFill) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefluidLevelrecord component.static FluidState[]generateFluidStates(int maxLevel) final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.byteReturns the value of theverticalFillrecord component.
-
Field Details
-
SOURCE_LEVEL
public static int SOURCE_LEVEL -
FULL_LEVEL
public static final int FULL_LEVEL- See Also:
-
FLUID_STATES
-
-
Constructor Details
-
FluidState
public FluidState(int fluidLevel, int verticalFill) -
FluidState
public FluidState(int fluidLevel, byte verticalFill) Creates an instance of aFluidStaterecord class.- Parameters:
fluidLevel- the value for thefluidLevelrecord componentverticalFill- the value for theverticalFillrecord component
-
-
Method Details
-
generateFluidStates
-
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. -
fluidLevel
public int fluidLevel()Returns the value of thefluidLevelrecord component.- Returns:
- the value of the
fluidLevelrecord component
-
verticalFill
public byte verticalFill()Returns the value of theverticalFillrecord component.- Returns:
- the value of the
verticalFillrecord component
-