Record Class BlockPointer

java.lang.Object
java.lang.Record
net.minecraft.util.math.BlockPointer
Record Components:
getWorld -
getPos -
getBlockState -
getBlockEntity -

public record BlockPointer(ServerWorld getWorld, BlockPos getPos, BlockState getBlockState, DispenserBlockEntity getBlockEntity) extends Record
Mappings:
Namespace Name
official id
intermediary net/minecraft/class_2342
named net/minecraft/util/math/BlockPointer
official a
intermediary comp_1967
named getWorld
official b
intermediary comp_1968
named getPos
official c
intermediary comp_1969
named getBlockState
official d
intermediary comp_1970
named getBlockEntity
  • Field Details

  • Constructor Details

  • Method Details

    • method_53906

      public Vec3d method_53906()
      Mappings:
      Namespace Name Mixin selector
      official a Lid;a()Lehn;
      intermediary method_53906 Lnet/minecraft/class_2342;method_53906()Lnet/minecraft/class_243;
      named method_53906 Lnet/minecraft/util/math/BlockPointer;method_53906()Lnet/minecraft/util/math/Vec3d;
    • 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.
    • getWorld

      public ServerWorld getWorld()
      Returns the value of the getWorld record component.
      Returns:
      the value of the getWorld record component
    • getPos

      public BlockPos getPos()
      Returns the value of the getPos record component.
      Returns:
      the value of the getPos record component
    • getBlockState

      public BlockState getBlockState()
      Returns the value of the getBlockState record component.
      Returns:
      the value of the getBlockState record component
    • getBlockEntity

      public DispenserBlockEntity getBlockEntity()
      Returns the value of the getBlockEntity record component.
      Returns:
      the value of the getBlockEntity record component