Package net.minecraft.block
Record Class PointedDripstoneBlock.DrippingFluid
java.lang.Object
java.lang.Record
net.minecraft.block.PointedDripstoneBlock.DrippingFluid
- Record Components:
pos-fluid-sourceState-
- Enclosing class:
PointedDripstoneBlock
static record PointedDripstoneBlock.DrippingFluid(BlockPos pos, Fluid fluid, BlockState sourceState)
extends Record
- Mappings:
Namespace Name official ctl$aintermediary net/minecraft/class_5689$class_7381named net/minecraft/block/PointedDripstoneBlock$DrippingFluidofficial aintermediary comp_709named posofficial bintermediary comp_710named fluidofficial cintermediary comp_711named sourceState
-
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
Constructors -
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
-
DrippingFluid
DrippingFluid(BlockPos blockPos, Fluid fluid, BlockState blockState)
-
-
Method Details
-
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. 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
-