类 ClientboundLevelParticlesPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket
- 所有已实现的接口:
Packet<ClientGamePacketListener>
public class ClientboundLevelParticlesPacket
extends Object
implements Packet<ClientGamePacketListener>
-
字段概要
字段 -
构造器概要
构造器构造器说明ClientboundLevelParticlesPacket
(T pParticle, boolean pOverrideLimiter, double pX, double pY, double pZ, float pXDist, float pYDist, float pZDist, float pMaxSpeed, int pCount) -
方法概要
修饰符和类型方法说明int
getCount()
float
double
getX()
float
getXDist()
double
getY()
float
getYDist()
double
getZ()
float
getZDist()
void
handle
(ClientGamePacketListener pHandler) boolean
private <T extends ParticleOptions>
TreadParticle
(FriendlyByteBuf pBuffer, ParticleType<T> pParticleType) void
write
(FriendlyByteBuf pBuffer) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable
-
字段详细资料
-
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
-
-
构造器详细资料
-
ClientboundLevelParticlesPacket
public ClientboundLevelParticlesPacket(T pParticle, boolean pOverrideLimiter, double pX, double pY, double pZ, float pXDist, float pYDist, float pZDist, float pMaxSpeed, int pCount) -
ClientboundLevelParticlesPacket
-
-
方法详细资料
-
readParticle
private <T extends ParticleOptions> T readParticle(FriendlyByteBuf pBuffer, ParticleType<T> pParticleType) -
write
- 指定者:
write
在接口中Packet<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
-
handle
- 指定者:
handle
在接口中Packet<ClientGamePacketListener>
-