Record Class Aquifer.FluidStatus
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.Aquifer.FluidStatus
- Enclosing interface:
Aquifer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thefluidLevelrecord component.private final BlockStateThe field for thefluidTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFluidStatus(int fluidLevel, BlockState fluidType) Creates an instance of aFluidStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionat(int pY) final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefluidLevelrecord component.Returns the value of thefluidTyperecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
fluidLevel
private final int fluidLevelThe field for thefluidLevelrecord component. -
fluidType
The field for thefluidTyperecord component.
-
-
Constructor Details
-
FluidStatus
Creates an instance of aFluidStatusrecord class.- Parameters:
fluidLevel- the value for thefluidLevelrecord componentfluidType- the value for thefluidTyperecord component
-
-
Method Details
-
at
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
fluidLevel
public int fluidLevel()Returns the value of thefluidLevelrecord component.- Returns:
- the value of the
fluidLevelrecord component
-
fluidType
Returns the value of thefluidTyperecord component.- Returns:
- the value of the
fluidTyperecord component
-