Record Class ParticlePacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.ParticlePacket
- All Implemented Interfaces:
SendablePacket,ServerPacket,ServerPacket.Play
public record ParticlePacket(@NotNull Particle particle, boolean overrideLimiter, boolean longDistance, double x, double y, double z, float offsetX, float offsetY, float offsetZ, float maxSpeed, int particleCount)
extends Record
implements ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.network.packet.server.ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParticlePacket(@NotNull Particle particle, boolean overrideLimiter, boolean longDistance, double x, double y, double z, float offsetX, float offsetY, float offsetZ, float maxSpeed, int particleCount) Creates an instance of aParticlePacketrecord class.ParticlePacket(@NotNull Particle particle, boolean overrideLimiter, boolean longDistance, @NotNull Point position, @NotNull Point offset, float maxSpeed, int particleCount) ParticlePacket(@NotNull Particle particle, double x, double y, double z, float offsetX, float offsetY, float offsetZ, float maxSpeed, int particleCount) ParticlePacket(@NotNull Particle particle, @NotNull Point position, @NotNull Point offset, float maxSpeed, int particleCount) -
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.booleanReturns the value of thelongDistancerecord component.floatmaxSpeed()Returns the value of themaxSpeedrecord component.floatoffsetX()Returns the value of theoffsetXrecord component.floatoffsetY()Returns the value of theoffsetYrecord component.floatoffsetZ()Returns the value of theoffsetZrecord component.booleanReturns the value of theoverrideLimiterrecord component.@NotNull Particleparticle()Returns the value of theparticlerecord component.intReturns the value of theparticleCountrecord component.final StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.doublez()Returns the value of thezrecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ParticlePacket
public ParticlePacket(@NotNull @NotNull Particle particle, double x, double y, double z, float offsetX, float offsetY, float offsetZ, float maxSpeed, int particleCount) -
ParticlePacket
-
ParticlePacket
-
ParticlePacket
public ParticlePacket(@NotNull @NotNull Particle particle, boolean overrideLimiter, boolean longDistance, double x, double y, double z, float offsetX, float offsetY, float offsetZ, float maxSpeed, int particleCount) Creates an instance of aParticlePacketrecord class.- Parameters:
particle- the value for theparticlerecord componentoverrideLimiter- the value for theoverrideLimiterrecord componentlongDistance- the value for thelongDistancerecord componentx- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentoffsetX- the value for theoffsetXrecord componentoffsetY- the value for theoffsetYrecord componentoffsetZ- the value for theoffsetZrecord componentmaxSpeed- the value for themaxSpeedrecord componentparticleCount- the value for theparticleCountrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
particle
Returns the value of theparticlerecord component.- Returns:
- the value of the
particlerecord component
-
overrideLimiter
public boolean overrideLimiter()Returns the value of theoverrideLimiterrecord component.- Returns:
- the value of the
overrideLimiterrecord component
-
longDistance
public boolean longDistance()Returns the value of thelongDistancerecord component.- Returns:
- the value of the
longDistancerecord component
-
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public double z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
offsetX
public float offsetX()Returns the value of theoffsetXrecord component.- Returns:
- the value of the
offsetXrecord component
-
offsetY
public float offsetY()Returns the value of theoffsetYrecord component.- Returns:
- the value of the
offsetYrecord component
-
offsetZ
public float offsetZ()Returns the value of theoffsetZrecord component.- Returns:
- the value of the
offsetZrecord component
-
maxSpeed
public float maxSpeed()Returns the value of themaxSpeedrecord component.- Returns:
- the value of the
maxSpeedrecord component
-
particleCount
public int particleCount()Returns the value of theparticleCountrecord component.- Returns:
- the value of the
particleCountrecord component
-