Record Class ParticleRandomization
java.lang.Object
java.lang.Record
org.geysermc.geyser.level.particle.ParticleRandomization
public record ParticleRandomization(org.cloudburstmc.math.vector.Vector3f position, double xAux, double yAux, double zAux)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParticleRandomization(org.cloudburstmc.math.vector.Vector3f position, double xAux, double yAux, double zAux) Creates an instance of aParticleRandomizationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ParticleRandomizationofPacket(org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundLevelParticlesPacket packet, Random random) static ParticleRandomizationofStatic(org.cloudburstmc.math.vector.Vector3f position) org.cloudburstmc.math.vector.Vector3fposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.doublexAux()Returns the value of thexAuxrecord component.doubleyAux()Returns the value of theyAuxrecord component.doublezAux()Returns the value of thezAuxrecord component.
-
Constructor Details
-
ParticleRandomization
public ParticleRandomization(org.cloudburstmc.math.vector.Vector3f position, double xAux, double yAux, double zAux) Creates an instance of aParticleRandomizationrecord class.- Parameters:
position- the value for thepositionrecord componentxAux- the value for thexAuxrecord componentyAux- the value for theyAuxrecord componentzAux- the value for thezAuxrecord component
-
-
Method Details
-
ofStatic
-
ofPacket
public static ParticleRandomization ofPacket(org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundLevelParticlesPacket packet, Random random) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
position
public org.cloudburstmc.math.vector.Vector3f position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
xAux
public double xAux()Returns the value of thexAuxrecord component.- Returns:
- the value of the
xAuxrecord component
-
yAux
public double yAux()Returns the value of theyAuxrecord component.- Returns:
- the value of the
yAuxrecord component
-
zAux
public double zAux()Returns the value of thezAuxrecord component.- Returns:
- the value of the
zAuxrecord component
-