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 int
private final float
private final boolean
private final ParticleOptions
private final double
private final float
private final double
private final float
private final double
private final float
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ClientboundLevelParticlesPacket
(T pParticle, boolean pOverrideLimiter, double pX, double pY, double pZ, float pXDist, float pYDist, float pZDist, float pMaxSpeed, int pCount) -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
float
double
getX()
float
getXDist()
double
getY()
float
getYDist()
double
getZ()
float
getZDist()
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.boolean
type()
private void
write
(RegistryFriendlyByteBuf p_320262_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.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 -
particle
-
-
Constructor Details
-
ClientboundLevelParticlesPacket
public ClientboundLevelParticlesPacket(T pParticle, boolean pOverrideLimiter, double pX, double pY, double pZ, float pXDist, float pYDist, float pZDist, float pMaxSpeed, int pCount) -
ClientboundLevelParticlesPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
isOverrideLimiter
public boolean isOverrideLimiter() -
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
-