Package net.minecraft.fluid
Record Class FlowableFluid.NeighborGroup
java.lang.Object
java.lang.Record
net.minecraft.fluid.FlowableFluid.NeighborGroup
- Record Components:
self-other-facing-
- Enclosing class:
FlowableFluid
private static record FlowableFluid.NeighborGroup(BlockState self, BlockState other, Direction facing)
extends Record
- Mappings:
Namespace Name named net/minecraft/fluid/FlowableFluid$NeighborGroupintermediary net/minecraft/class_3609$class_2249official exy$anamed selfintermediary comp_3130official anamed otherintermediary comp_3131official bnamed facingintermediary comp_3132official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DirectionThe field for thefacingrecord component.private final BlockStateThe field for theotherrecord component.private final BlockStateThe field for theselfrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNeighborGroup(BlockState self, BlockState other, Direction facing) Creates an instance of aNeighborGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.facing()Returns the value of thefacingrecord component.inthashCode()Returns a hash code value for this object.other()Returns the value of theotherrecord component.self()Returns the value of theselfrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
NeighborGroup
NeighborGroup(BlockState self, BlockState other, Direction facing) Creates an instance of aNeighborGrouprecord class.
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
self
Returns the value of theselfrecord component.- Returns:
- the value of the
selfrecord component
-
other
Returns the value of theotherrecord component.- Returns:
- the value of the
otherrecord component
-
facing
Returns the value of thefacingrecord component.- Returns:
- the value of the
facingrecord component
-