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 int
The field for thefluidLevel
record component.private final BlockState
The field for thefluidType
record component. -
Constructor Summary
ConstructorsConstructorDescriptionFluidStatus
(int fluidLevel, BlockState fluidType) Creates an instance of aFluidStatus
record class. -
Method Summary
Modifier and TypeMethodDescriptionat
(int p_188406_) final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefluidLevel
record component.Returns the value of thefluidType
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
fluidLevel
private final int fluidLevelThe field for thefluidLevel
record component. -
fluidType
The field for thefluidType
record component.
-
-
Constructor Details
-
FluidStatus
Creates an instance of aFluidStatus
record class.- Parameters:
fluidLevel
- the value for thefluidLevel
record componentfluidType
- the value for thefluidType
record 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 thefluidLevel
record component.- Returns:
- the value of the
fluidLevel
record component
-
fluidType
Returns the value of thefluidType
record component.- Returns:
- the value of the
fluidType
record component
-