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$NeighborGroup- intermediary - net/minecraft/class_3609$class_2249- official - esy$a- named - self- intermediary - comp_3130- official - a- named - other- intermediary - comp_3131- official - b- named - facing- intermediary - comp_3132- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final DirectionThe field for thefacingrecord component.private final BlockStateThe field for theotherrecord component.private final BlockStateThe field for theselfrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionNeighborGroup(BlockState self, BlockState other, Direction facing) Creates an instance of aNeighborGrouprecord class.
- 
Method SummaryModifier 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- 
NeighborGroupNeighborGroup(BlockState self, BlockState other, Direction facing) Creates an instance of aNeighborGrouprecord class.
 
- 
- 
Method Details- 
equalsIndicates 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).
- 
hashCodepublic int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
toStringReturns 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.
- 
selfReturns the value of theselfrecord component.- Returns:
- the value of the selfrecord component
 
- 
otherReturns the value of theotherrecord component.- Returns:
- the value of the otherrecord component
 
- 
facingReturns the value of thefacingrecord component.- Returns:
- the value of the facingrecord component
 
 
-