Contents
Record Class BlockSelection.FluidHolder
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.prefab.selection.standard.BlockSelection.FluidHolder
- Enclosing class:
BlockSelection
-
Constructor Summary
ConstructorsConstructorDescriptionFluidHolder(int fluidId, byte fluidLevel) Creates an instance of aFluidHolderrecord 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
-
FluidHolder
public FluidHolder(int fluidId, byte fluidLevel) Creates an instance of aFluidHolderrecord 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
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
-