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 etu$a
named self
intermediary comp_3130
official a
named other
intermediary comp_3131
official b
named facing
intermediary comp_3132
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Direction
The field for thefacing
record component.private final BlockState
The field for theother
record component.private final BlockState
The field for theself
record component. -
Constructor Summary
ConstructorDescriptionNeighborGroup
(BlockState self, BlockState other, Direction facing) Creates an instance of aNeighborGroup
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.facing()
Returns the value of thefacing
record component.int
hashCode()
Returns a hash code value for this object.other()
Returns the value of theother
record component.self()
Returns the value of theself
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
NeighborGroup
NeighborGroup(BlockState self, BlockState other, Direction facing) Creates an instance of aNeighborGroup
record 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 theself
record component.- Returns:
- the value of the
self
record component
-
other
Returns the value of theother
record component.- Returns:
- the value of the
other
record component
-
facing
Returns the value of thefacing
record component.- Returns:
- the value of the
facing
record component
-