public class S29PacketSoundEffect extends java.lang.Object implements Packet<INetHandlerPlayClient>
Modifier and Type | Field and Description |
---|---|
private int |
posX |
private int |
posY |
private int |
posZ |
private java.lang.String |
soundName |
private int |
soundPitch |
private float |
soundVolume |
Constructor and Description |
---|
S29PacketSoundEffect() |
S29PacketSoundEffect(java.lang.String soundNameIn,
double soundX,
double soundY,
double soundZ,
float volume,
float pitch) |
Modifier and Type | Method and Description |
---|---|
float |
getPitch() |
java.lang.String |
getSoundName() |
float |
getVolume() |
double |
getX() |
double |
getY() |
double |
getZ() |
void |
processPacket(INetHandlerPlayClient handler)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(PacketBuffer buf)
Reads the raw packet data from the data stream.
|
void |
writePacketData(PacketBuffer buf)
Writes the raw packet data to the data stream.
|
private java.lang.String soundName
private int posX
private int posY
private int posZ
private float soundVolume
private int soundPitch
public S29PacketSoundEffect()
public S29PacketSoundEffect(java.lang.String soundNameIn, double soundX, double soundY, double soundZ, float volume, float pitch)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public java.lang.String getSoundName()
public double getX()
public double getY()
public double getZ()
public float getVolume()
public float getPitch()
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>