Record Class SideChaining.Neighbors

java.lang.Object
java.lang.Record
net.minecraft.block.SideChaining.Neighbors
Record Components:
block -
world -
facing -
center -
cache -
Enclosing interface:
SideChaining

public static record SideChaining.Neighbors(SideChaining block, WorldAccess world, Direction facing, BlockPos center, Map<BlockPos,SideChaining.Neighbor> cache) extends Record
Mappings:
Namespace Name
named net/minecraft/block/SideChaining$Neighbors
intermediary net/minecraft/class_11587$class_11590
official ecj$c
named block
intermediary comp_4438
official a
named world
intermediary comp_4439
official b
named facing
intermediary comp_4440
official c
named center
intermediary comp_4441
official d
named cache
intermediary comp_4442
official e
  • Field Details

  • Constructor Details

  • Method Details

    • canChainWith

      private boolean canChainWith(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named canChainWith Lnet/minecraft/block/SideChaining$Neighbors;canChainWith(Lnet/minecraft/block/BlockState;)Z
      intermediary method_72638 Lnet/minecraft/class_11587$class_11590;method_72638(Lnet/minecraft/class_2680;)Z
      official a Lecj$c;a(Lejm;)Z
    • createNeighbor

      private SideChaining.Neighbor createNeighbor(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named createNeighbor Lnet/minecraft/block/SideChaining$Neighbors;createNeighbor(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/SideChaining$Neighbor;
      intermediary method_72639 Lnet/minecraft/class_11587$class_11590;method_72639(Lnet/minecraft/class_2338;)Lnet/minecraft/class_11587$class_11589;
      official a Lecj$c;a(Lja;)Lecj$b;
    • getOrCreateNeighbor

      private SideChaining.Neighbor getOrCreateNeighbor(Direction direction, Integer distance)
      Mappings:
      Namespace Name Mixin selector
      named getOrCreateNeighbor Lnet/minecraft/block/SideChaining$Neighbors;getOrCreateNeighbor(Lnet/minecraft/util/math/Direction;Ljava/lang/Integer;)Lnet/minecraft/block/SideChaining$Neighbor;
      intermediary method_72640 Lnet/minecraft/class_11587$class_11590;method_72640(Lnet/minecraft/class_2350;Ljava/lang/Integer;)Lnet/minecraft/class_11587$class_11589;
      official a Lecj$c;a(Ljg;Ljava/lang/Integer;)Lecj$b;
    • getLeftNeighbor

      public SideChaining.Neighbor getLeftNeighbor(int distance)
      Mappings:
      Namespace Name Mixin selector
      named getLeftNeighbor Lnet/minecraft/block/SideChaining$Neighbors;getLeftNeighbor(I)Lnet/minecraft/block/SideChaining$Neighbor;
      intermediary method_72637 Lnet/minecraft/class_11587$class_11590;method_72637(I)Lnet/minecraft/class_11587$class_11589;
      official a Lecj$c;a(I)Lecj$b;
    • getRightNeighbor

      public SideChaining.Neighbor getRightNeighbor(int distance)
      Mappings:
      Namespace Name Mixin selector
      named getRightNeighbor Lnet/minecraft/block/SideChaining$Neighbors;getRightNeighbor(I)Lnet/minecraft/block/SideChaining$Neighbor;
      intermediary method_72642 Lnet/minecraft/class_11587$class_11590;method_72642(I)Lnet/minecraft/class_11587$class_11589;
      official b Lecj$c;b(I)Lecj$b;
    • getLeftNeighbor

      public SideChaining.Neighbor getLeftNeighbor()
      Mappings:
      Namespace Name Mixin selector
      named getLeftNeighbor Lnet/minecraft/block/SideChaining$Neighbors;getLeftNeighbor()Lnet/minecraft/block/SideChaining$Neighbor;
      intermediary method_72636 Lnet/minecraft/class_11587$class_11590;method_72636()Lnet/minecraft/class_11587$class_11589;
      official a Lecj$c;a()Lecj$b;
    • getRightNeighbor

      public SideChaining.Neighbor getRightNeighbor()
      Mappings:
      Namespace Name Mixin selector
      named getRightNeighbor Lnet/minecraft/block/SideChaining$Neighbors;getRightNeighbor()Lnet/minecraft/block/SideChaining$Neighbor;
      intermediary method_72641 Lnet/minecraft/class_11587$class_11590;method_72641()Lnet/minecraft/class_11587$class_11589;
      official b Lecj$c;b()Lecj$b;
    • 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.
    • block

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

      public WorldAccess world()
      Returns the value of the world record component.
      Returns:
      the value of the world record component
    • facing

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

      public BlockPos center()
      Returns the value of the center record component.
      Returns:
      the value of the center record component
    • cache

      Returns the value of the cache record component.
      Returns:
      the value of the cache record component