Record Class ClientboundLevelParticlesPacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public record ClientboundLevelParticlesPacket(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, float xDist, float yDist, float zDist, float xMaxSpeed, float yMaxSpeed, float zMaxSpeed, int count, ClientboundLevelParticlesPacket.RandomizationType randomizationType)
extends Record
implements Packet<ClientGamePacketListener>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thealwaysShowrecord component.private final intThe field for thecountrecord component.private final booleanThe field for theoverrideLimiterrecord component.private final ParticleOptionsThe field for theparticlerecord component.private final ClientboundLevelParticlesPacket.RandomizationTypeThe field for therandomizationTyperecord component.static final StreamCodec<RegistryFriendlyByteBuf, ClientboundLevelParticlesPacket> private final doubleThe field for thexrecord component.private final floatThe field for thexDistrecord component.private final floatThe field for thexMaxSpeedrecord component.private final doubleThe field for theyrecord component.private final floatThe field for theyDistrecord component.private final floatThe field for theyMaxSpeedrecord component.private final doubleThe field for thezrecord component.private final floatThe field for thezDistrecord component.private final floatThe field for thezMaxSpeedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionClientboundLevelParticlesPacket(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, float xDist, float yDist, float zDist, float xMaxSpeed, float yMaxSpeed, float zMaxSpeed, int count, ClientboundLevelParticlesPacket.RandomizationType randomizationType) Creates an instance of aClientboundLevelParticlesPacketrecord class.ClientboundLevelParticlesPacket(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, float xDist, float yDist, float zDist, float maxSpeed, int count) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thealwaysShowrecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.voidhandle(ClientGamePacketListener listener) final inthashCode()Returns a hash code value for this object.booleanReturns the value of theoverrideLimiterrecord component.particle()Returns the value of theparticlerecord component.Returns the value of therandomizationTyperecord component.final StringtoString()Returns a string representation of this record class.type()doublex()Returns the value of thexrecord component.floatxDist()Returns the value of thexDistrecord component.floatReturns the value of thexMaxSpeedrecord component.doubley()Returns the value of theyrecord component.floatyDist()Returns the value of theyDistrecord component.floatReturns the value of theyMaxSpeedrecord component.doublez()Returns the value of thezrecord component.floatzDist()Returns the value of thezDistrecord component.floatReturns the value of thezMaxSpeedrecord component.Methods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
particle
The field for theparticlerecord component. -
overrideLimiter
private final boolean overrideLimiterThe field for theoverrideLimiterrecord component. -
alwaysShow
private final boolean alwaysShowThe field for thealwaysShowrecord component. -
x
private final double xThe field for thexrecord component. -
y
private final double yThe field for theyrecord component. -
z
private final double zThe field for thezrecord component. -
xDist
private final float xDistThe field for thexDistrecord component. -
yDist
private final float yDistThe field for theyDistrecord component. -
zDist
private final float zDistThe field for thezDistrecord component. -
xMaxSpeed
private final float xMaxSpeedThe field for thexMaxSpeedrecord component. -
yMaxSpeed
private final float yMaxSpeedThe field for theyMaxSpeedrecord component. -
zMaxSpeed
private final float zMaxSpeedThe field for thezMaxSpeedrecord component. -
count
private final int countThe field for thecountrecord component. -
randomizationType
The field for therandomizationTyperecord component. -
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ClientboundLevelParticlesPacket> STREAM_CODEC
-
-
Constructor Details
-
ClientboundLevelParticlesPacket
public ClientboundLevelParticlesPacket(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, float xDist, float yDist, float zDist, float maxSpeed, int count) -
ClientboundLevelParticlesPacket
public ClientboundLevelParticlesPacket(ParticleOptions particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, float xDist, float yDist, float zDist, float xMaxSpeed, float yMaxSpeed, float zMaxSpeed, int count, ClientboundLevelParticlesPacket.RandomizationType randomizationType) Creates an instance of aClientboundLevelParticlesPacketrecord class.- Parameters:
particle- the value for theparticlerecord componentoverrideLimiter- the value for theoverrideLimiterrecord componentalwaysShow- the value for thealwaysShowrecord componentx- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentxDist- the value for thexDistrecord componentyDist- the value for theyDistrecord componentzDist- the value for thezDistrecord componentxMaxSpeed- the value for thexMaxSpeedrecord componentyMaxSpeed- the value for theyMaxSpeedrecord componentzMaxSpeed- the value for thezMaxSpeedrecord componentcount- the value for thecountrecord componentrandomizationType- the value for therandomizationTyperecord component
-
-
Method Details
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-
alwaysShow
public boolean alwaysShow()Returns the value of thealwaysShowrecord component.- Returns:
- the value of the
alwaysShowrecord 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
-
xDist
public float xDist()Returns the value of thexDistrecord component.- Returns:
- the value of the
xDistrecord component
-
yDist
public float yDist()Returns the value of theyDistrecord component.- Returns:
- the value of the
yDistrecord component
-
zDist
public float zDist()Returns the value of thezDistrecord component.- Returns:
- the value of the
zDistrecord component
-
xMaxSpeed
public float xMaxSpeed()Returns the value of thexMaxSpeedrecord component.- Returns:
- the value of the
xMaxSpeedrecord component
-
yMaxSpeed
public float yMaxSpeed()Returns the value of theyMaxSpeedrecord component.- Returns:
- the value of the
yMaxSpeedrecord component
-
zMaxSpeed
public float zMaxSpeed()Returns the value of thezMaxSpeedrecord component.- Returns:
- the value of the
zMaxSpeedrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
randomizationType
Returns the value of therandomizationTyperecord component.- Returns:
- the value of the
randomizationTyperecord component
-