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 Details

    • self

      private final BlockState self
      The field for the self record component.
    • other

      private final BlockState other
      The field for the other record component.
    • facing

      private final Direction facing
      The field for the facing record component.
  • Constructor Details

    • NeighborGroup

      NeighborGroup(BlockState self, BlockState other, Direction facing)
      Creates an instance of a NeighborGroup record class.
      Parameters:
      self - the value for the self record component
      other - the value for the other record component
      facing - the value for the facing record component
  • Method Details

    • equals

      public boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • self

      public BlockState self()
      Returns the value of the self record component.
      Returns:
      the value of the self record component
    • other

      public BlockState other()
      Returns the value of the other record component.
      Returns:
      the value of the other record component
    • facing

      public Direction facing()
      Returns the value of the facing record component.
      Returns:
      the value of the facing record component