Record Class BrushItem.DustParticlesOffset

java.lang.Object
java.lang.Record
net.minecraft.item.BrushItem.DustParticlesOffset
Record Components:
xd -
yd -
zd -
Enclosing class:
BrushItem

private static record BrushItem.DustParticlesOffset(double xd, double yd, double zd) extends Record
Mappings:
Namespace Name
official chf$a
intermediary net/minecraft/class_8162$class_8163
named net/minecraft/item/BrushItem$DustParticlesOffset
official a
intermediary comp_1286
named xd
official b
intermediary comp_1287
named yd
official c
intermediary comp_1288
named zd
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final double
     
    private static final double
     
    private final double
    The field for the xd record component.
    private final double
    The field for the yd record component.
    private final double
    The field for the zd record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    DustParticlesOffset(double double2, double double3, double double4)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    fromSide(Vec3d userRotation, Direction side)
     
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    double
    xd()
    Returns the value of the xd record component.
    double
    yd()
    Returns the value of the yd record component.
    double
    zd()
    Returns the value of the zd record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • xd

      private final double xd
      The field for the xd record component.
    • yd

      private final double yd
      The field for the yd record component.
    • zd

      private final double zd
      The field for the zd record component.
    • field_42685

      private static final double field_42685
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lchf$a;d:D
      intermediary field_42685 Lnet/minecraft/class_8162$class_8163;field_42685:D
      named field_42685 Lnet/minecraft/item/BrushItem$DustParticlesOffset;field_42685:D
    • field_42686

      private static final double field_42686
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lchf$a;e:D
      intermediary field_42686 Lnet/minecraft/class_8162$class_8163;field_42686:D
      named field_42686 Lnet/minecraft/item/BrushItem$DustParticlesOffset;field_42686:D
  • Constructor Details

    • DustParticlesOffset

      private DustParticlesOffset(double double2, double double3, double double4)
  • Method Details

    • fromSide

      public static BrushItem.DustParticlesOffset fromSide(Vec3d userRotation, Direction side)
      Mappings:
      Namespace Name Mixin selector
      official a Lchf$a;a(Lehn;Lha;)Lchf$a;
      intermediary method_49185 Lnet/minecraft/class_8162$class_8163;method_49185(Lnet/minecraft/class_243;Lnet/minecraft/class_2350;)Lnet/minecraft/class_8162$class_8163;
      named fromSide Lnet/minecraft/item/BrushItem$DustParticlesOffset;fromSide(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/item/BrushItem$DustParticlesOffset;
    • 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 '=='.
      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.
    • xd

      public double xd()
      Returns the value of the xd record component.
      Returns:
      the value of the xd record component
    • yd

      public double yd()
      Returns the value of the yd record component.
      Returns:
      the value of the yd record component
    • zd

      public double zd()
      Returns the value of the zd record component.
      Returns:
      the value of the zd record component