Record Class TargetColorParticleData
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.level.particle.TargetColorParticleData
- All Implemented Interfaces:
ParticleData
public record TargetColorParticleData(double targetX, double targetY, double targetZ, int color)
extends Record
implements ParticleData
-
Constructor Summary
ConstructorsConstructorDescriptionTargetColorParticleData(double targetX, double targetY, double targetZ, int color) Creates an instance of aTargetColorParticleDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubletargetX()Returns the value of thetargetXrecord component.doubletargetY()Returns the value of thetargetYrecord component.doubletargetZ()Returns the value of thetargetZrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TargetColorParticleData
public TargetColorParticleData(double targetX, double targetY, double targetZ, int color) Creates an instance of aTargetColorParticleDatarecord class.- Parameters:
targetX- the value for thetargetXrecord componenttargetY- the value for thetargetYrecord componenttargetZ- the value for thetargetZrecord componentcolor- the value for thecolorrecord component
-
-
Method Details
-
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 '=='. -
targetX
public double targetX()Returns the value of thetargetXrecord component.- Returns:
- the value of the
targetXrecord component
-
targetY
public double targetY()Returns the value of thetargetYrecord component.- Returns:
- the value of the
targetYrecord component
-
targetZ
public double targetZ()Returns the value of thetargetZrecord component.- Returns:
- the value of the
targetZrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-