Class ClientboundLevelParticlesPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundLevelParticlesPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final intprivate final floatprivate final booleanprivate final ParticleOptionsstatic final StreamCodec<RegistryFriendlyByteBuf, ClientboundLevelParticlesPacket> private final doubleprivate final floatprivate final doubleprivate final floatprivate final doubleprivate final float -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate<T extends ParticleOptions>ClientboundLevelParticlesPacket(T particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, float xDist, float yDist, float zDist, float maxSpeed, int count) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ClientboundLevelParticlesPacket> STREAM_CODEC -
x
private final double x -
y
private final double y -
z
private final double z -
xDist
private final float xDist -
yDist
private final float yDist -
zDist
private final float zDist -
maxSpeed
private final float maxSpeed -
count
private final int count -
overrideLimiter
private final boolean overrideLimiter -
alwaysShow
private final boolean alwaysShow -
particle
-
-
Constructor Details
-
ClientboundLevelParticlesPacket
public <T extends ParticleOptions> ClientboundLevelParticlesPacket(T particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, float xDist, float yDist, float zDist, float maxSpeed, int count) -
ClientboundLevelParticlesPacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
isOverrideLimiter
public boolean isOverrideLimiter() -
alwaysShow
public boolean alwaysShow() -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getXDist
public float getXDist() -
getYDist
public float getYDist() -
getZDist
public float getZDist() -
getMaxSpeed
public float getMaxSpeed() -
getCount
public int getCount() -
getParticle
-