Record Class PointedDripstoneBlock.FluidInfo
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.PointedDripstoneBlock.FluidInfo
- Enclosing class:
PointedDripstoneBlock
static record PointedDripstoneBlock.FluidInfo(BlockPos pos, Fluid fluid, BlockState sourceState)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FluidThe field for thefluidrecord component.private final BlockPosThe field for theposrecord component.private final BlockStateThe field for thesourceStaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFluidInfo(BlockPos pos, Fluid fluid, BlockState sourceState) Creates an instance of aFluidInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fluid()Returns the value of thefluidrecord component.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.Returns the value of thesourceStaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
fluid
The field for thefluidrecord component. -
sourceState
The field for thesourceStaterecord component.
-
-
Constructor Details
-
FluidInfo
FluidInfo(BlockPos pos, Fluid fluid, BlockState sourceState) Creates an instance of aFluidInforecord class.- Parameters:
pos- the value for theposrecord componentfluid- the value for thefluidrecord componentsourceState- the value for thesourceStaterecord 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 withObjects::equals(Object,Object). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
fluid
Returns the value of thefluidrecord component.- Returns:
- the value of the
fluidrecord component
-
sourceState
Returns the value of thesourceStaterecord component.- Returns:
- the value of the
sourceStaterecord component
-