Record Class ChainRestrictedNeighborUpdater.StateReplacementEntry

java.lang.Object
java.lang.Record
net.minecraft.world.block.ChainRestrictedNeighborUpdater.StateReplacementEntry
Record Components:
direction -
neighborState -
pos -
neighborPos -
updateFlags -
All Implemented Interfaces:
ChainRestrictedNeighborUpdater.Entry
Enclosing class:
ChainRestrictedNeighborUpdater

private static record ChainRestrictedNeighborUpdater.StateReplacementEntry(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags) extends Record implements ChainRestrictedNeighborUpdater.Entry
Mappings:
Namespace Name
official dpz$d
intermediary net/minecraft/class_7159$class_7272
named net/minecraft/world/block/ChainRestrictedNeighborUpdater$StateReplacementEntry
official a
intermediary comp_666
named direction
official b
intermediary comp_667
named neighborState
official c
intermediary comp_668
named pos
official d
intermediary comp_669
named neighborPos
official e
intermediary comp_670
named updateFlags
  • Field Details

    • direction

      private final Direction direction
      The field for the direction record component.
    • neighborState

      private final BlockState neighborState
      The field for the neighborState record component.
    • pos

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

      private final BlockPos neighborPos
      The field for the neighborPos record component.
    • updateFlags

      private final int updateFlags
      The field for the updateFlags record component.
  • Constructor Details

  • Method Details

    • update

      public boolean update(World world)
      Specified by:
      update in interface ChainRestrictedNeighborUpdater.Entry
      Mappings:
      Namespace Name Mixin selector
      official a Ldpz$c;a(Lcga;)Z
      intermediary method_41707 Lnet/minecraft/class_7159$class_7162;method_41707(Lnet/minecraft/class_1937;)Z
      named update Lnet/minecraft/world/block/ChainRestrictedNeighborUpdater$Entry;update(Lnet/minecraft/world/World;)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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • direction

      public Direction direction()
      Returns the value of the direction record component.
      Returns:
      the value of the direction record component
    • neighborState

      public BlockState neighborState()
      Returns the value of the neighborState record component.
      Returns:
      the value of the neighborState record component
    • pos

      public BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • neighborPos

      public BlockPos neighborPos()
      Returns the value of the neighborPos record component.
      Returns:
      the value of the neighborPos record component
    • updateFlags

      public int updateFlags()
      Returns the value of the updateFlags record component.
      Returns:
      the value of the updateFlags record component