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 SummaryFieldsModifier and TypeFieldDescriptionprivate static final doubleprivate static final doubleprivate final doubleThe field for thexdrecord component.private final doubleThe field for theydrecord component.private final doubleThe field for thezdrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionDustParticlesDelta(double xd, double yd, double zd) Creates an instance of aDustParticlesDeltarecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static BrushItem.DustParticlesDeltafromDirection(Vec3 p_273421_, Direction p_272987_) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.doublexd()Returns the value of thexdrecord component.doubleyd()Returns the value of theydrecord component.doublezd()Returns the value of thezdrecord component.
- 
Field Details- 
xdprivate final double xdThe field for thexdrecord component.
- 
ydprivate final double ydThe field for theydrecord component.
- 
zdprivate final double zdThe field for thezdrecord component.
- 
ALONG_SIDE_DELTAprivate static final double ALONG_SIDE_DELTA- See Also:
 
- 
OUT_FROM_SIDE_DELTAprivate static final double OUT_FROM_SIDE_DELTA- See Also:
 
 
- 
- 
Constructor Details- 
DustParticlesDeltaDustParticlesDelta(double xd, double yd, double zd) Creates an instance of aDustParticlesDeltarecord class.- Parameters:
- xd- the value for the- xdrecord component
- yd- the value for the- ydrecord component
- zd- the value for the- zdrecord component
 
 
- 
- 
Method Details- 
fromDirection
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
xdpublic double xd()Returns the value of thexdrecord component.- Returns:
- the value of the xdrecord component
 
- 
ydpublic double yd()Returns the value of theydrecord component.- Returns:
- the value of the ydrecord component
 
- 
zdpublic double zd()Returns the value of thezdrecord component.- Returns:
- the value of the zdrecord component
 
 
-