Package net.minecraft.world.item
Record Class BrushItem.DustParticlesDelta
java.lang.Object
java.lang.Record
net.minecraft.world.item.BrushItem.DustParticlesDelta
- Enclosing class:
- BrushItem
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final double
private static final double
private final double
The field for thexd
record component.private final double
The field for theyd
record component.private final double
The field for thezd
record component. -
Constructor Summary
ConstructorDescriptionDustParticlesDelta
(double xd, double yd, double zd) Creates an instance of aDustParticlesDelta
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static BrushItem.DustParticlesDelta
fromDirection
(Vec3 p_273421_, Direction p_272987_) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.double
xd()
Returns the value of thexd
record component.double
yd()
Returns the value of theyd
record component.double
zd()
Returns the value of thezd
record component.
-
Field Details
-
xd
private final double xdThe field for thexd
record component. -
yd
private final double ydThe field for theyd
record component. -
zd
private final double zdThe field for thezd
record component. -
ALONG_SIDE_DELTA
private static final double ALONG_SIDE_DELTA- See Also:
-
OUT_FROM_SIDE_DELTA
private static final double OUT_FROM_SIDE_DELTA- See Also:
-
-
Constructor Details
-
DustParticlesDelta
DustParticlesDelta(double xd, double yd, double zd) Creates an instance of aDustParticlesDelta
record class.- Parameters:
xd
- the value for thexd
record componentyd
- the value for theyd
record componentzd
- the value for thezd
record component
-
-
Method Details
-
fromDirection
-
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. -
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. -
equals
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 '=='. -
xd
public double xd()Returns the value of thexd
record component.- Returns:
- the value of the
xd
record component
-
yd
public double yd()Returns the value of theyd
record component.- Returns:
- the value of the
yd
record component
-
zd
public double zd()Returns the value of thezd
record component.- Returns:
- the value of the
zd
record component
-