Record Class SideChaining.SideChainNeighbor

java.lang.Object
java.lang.Record
net.minecraft.block.SideChaining.SideChainNeighbor
Record Components:
level -
block -
pos -
part -
All Implemented Interfaces:
SideChaining.Neighbor
Enclosing interface:
SideChaining

public static record SideChaining.SideChainNeighbor(WorldAccess level, SideChaining block, BlockPos pos, SideChainPart part) extends Record implements SideChaining.Neighbor
Mappings:
Namespace Name
named net/minecraft/block/SideChaining$SideChainNeighbor
intermediary net/minecraft/class_11587$class_11591
official ecj$d
named level
intermediary comp_4443
official a
named block
intermediary comp_4444
official b
named pos
intermediary comp_4437
official c
named part
intermediary comp_4445
official d
  • Field Details

    • level

      private final WorldAccess level
      The field for the level record component.
    • block

      private final SideChaining block
      The field for the block record component.
    • pos

      private final BlockPos pos
      The field for the pos record component.
    • part

      private final SideChainPart part
      The field for the part record component.
  • Constructor Details

  • Method Details

    • isChained

      public boolean isChained()
      Specified by:
      isChained in interface SideChaining.Neighbor
      Mappings:
      Namespace Name Mixin selector
      named isChained Lnet/minecraft/block/SideChaining$Neighbor;isChained()Z
      intermediary method_74144 Lnet/minecraft/class_11587$class_11589;method_74144()Z
      official a Lecj$b;a()Z
    • isNotCenter

      public boolean isNotCenter()
      Specified by:
      isNotCenter in interface SideChaining.Neighbor
      Mappings:
      Namespace Name Mixin selector
      named isNotCenter Lnet/minecraft/block/SideChaining$Neighbor;isNotCenter()Z
      intermediary method_72630 Lnet/minecraft/class_11587$class_11589;method_72630()Z
      official b Lecj$b;b()Z
    • isCenterOr

      public boolean isCenterOr(SideChainPart part)
      Specified by:
      isCenterOr in interface SideChaining.Neighbor
      Mappings:
      Namespace Name Mixin selector
      named isCenterOr Lnet/minecraft/block/SideChaining$Neighbor;isCenterOr(Lnet/minecraft/block/enums/SideChainPart;)Z
      intermediary method_72631 Lnet/minecraft/class_11587$class_11589;method_72631(Lnet/minecraft/class_11598;)Z
      official a Lecj$b;a(Leku;)Z
    • connectToRight

      public void connectToRight()
      Specified by:
      connectToRight in interface SideChaining.Neighbor
      Mappings:
      Namespace Name Mixin selector
      named connectToRight Lnet/minecraft/block/SideChaining$Neighbor;connectToRight()V
      intermediary method_72632 Lnet/minecraft/class_11587$class_11589;method_72632()V
      official d Lecj$b;d()V
    • connectToLeft

      public void connectToLeft()
      Specified by:
      connectToLeft in interface SideChaining.Neighbor
      Mappings:
      Namespace Name Mixin selector
      named connectToLeft Lnet/minecraft/block/SideChaining$Neighbor;connectToLeft()V
      intermediary method_72633 Lnet/minecraft/class_11587$class_11589;method_72633()V
      official e Lecj$b;e()V
    • disconnectFromRight

      public void disconnectFromRight()
      Specified by:
      disconnectFromRight in interface SideChaining.Neighbor
      Mappings:
      Namespace Name Mixin selector
      named disconnectFromRight Lnet/minecraft/block/SideChaining$Neighbor;disconnectFromRight()V
      intermediary method_72634 Lnet/minecraft/class_11587$class_11589;method_72634()V
      official f Lecj$b;f()V
    • disconnectFromLeft

      public void disconnectFromLeft()
      Specified by:
      disconnectFromLeft in interface SideChaining.Neighbor
      Mappings:
      Namespace Name Mixin selector
      named disconnectFromLeft Lnet/minecraft/block/SideChaining$Neighbor;disconnectFromLeft()V
      intermediary method_72635 Lnet/minecraft/class_11587$class_11589;method_72635()V
      official g Lecj$b;g()V
    • 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
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • level

      public WorldAccess level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • block

      public SideChaining block()
      Returns the value of the block record component.
      Returns:
      the value of the block record component
    • pos

      public BlockPos pos()
      Returns the value of the pos record component.
      Specified by:
      pos in interface SideChaining.Neighbor
      Returns:
      the value of the pos record component
    • part

      public SideChainPart part()
      Returns the value of the part record component.
      Returns:
      the value of the part record component