Record Class BrushItem.DustParticlesDelta

java.lang.Object
java.lang.Record
net.minecraft.world.item.BrushItem.DustParticlesDelta
Enclosing class:
BrushItem

static record BrushItem.DustParticlesDelta(double xd, double yd, double zd) extends Record
  • Field Summary Link icon

    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 Link icon

    Constructors
    Constructor
    Description
    DustParticlesDelta(double xd, double yd, double zd)
    Creates an instance of a DustParticlesDelta record class.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    fromDirection(Vec3 p_273421_, Direction p_272987_)
     
    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 Link icon

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

    • xd Link icon

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

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

      private final double zd
      The field for the zd record component.
    • ALONG_SIDE_DELTA Link icon

      private static final double ALONG_SIDE_DELTA
      See Also:
    • OUT_FROM_SIDE_DELTA Link icon

      private static final double OUT_FROM_SIDE_DELTA
      See Also:
  • Constructor Details Link icon

    • DustParticlesDelta Link icon

      DustParticlesDelta(double xd, double yd, double zd)
      Creates an instance of a DustParticlesDelta record class.
      Parameters:
      xd - the value for the xd record component
      yd - the value for the yd record component
      zd - the value for the zd record component
  • Method Details Link icon

    • fromDirection Link icon

      public static BrushItem.DustParticlesDelta fromDirection(Vec3 p_273421_, Direction p_272987_)
    • toString Link icon

      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 Link icon

      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 Link icon

      public final boolean equals(Object o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • xd Link icon

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

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

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