Record Class SideChaining.EmptyNeighbor

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

public static record SideChaining.EmptyNeighbor(BlockPos pos) extends Record implements SideChaining.Neighbor
Mappings:
Namespace Name
named net/minecraft/block/SideChaining$EmptyNeighbor
intermediary net/minecraft/class_11587$class_11588
official ecj$a
named pos
intermediary comp_4437
official a
  • Field Details

    • pos

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

    • EmptyNeighbor

      public EmptyNeighbor(BlockPos blockPos)
  • 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
    • 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.
    • 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