Class SPlaySoundEffectPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SPlaySoundEffectPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SPlaySoundEffectPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Field Summary
Fields Modifier and Type Field Description private float
pitch
private SoundEvent
sound
private SoundCategory
source
private float
volume
private int
x
private int
y
private int
z
-
Constructor Summary
Constructors Constructor Description SPlaySoundEffectPacket()
SPlaySoundEffectPacket(SoundEvent p_i46896_1_, SoundCategory p_i46896_2_, double p_i46896_3_, double p_i46896_5_, double p_i46896_7_, float p_i46896_9_, float p_i46896_10_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getPitch()
SoundEvent
getSound()
SoundCategory
getSource()
float
getVolume()
double
getX()
double
getY()
double
getZ()
void
handle(IClientPlayNetHandler p_148833_1_)
void
read(PacketBuffer p_148837_1_)
void
write(PacketBuffer p_148840_1_)
-
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.IPacket
isSkippable
-
-
-
-
Field Detail
-
sound
private SoundEvent sound
-
source
private SoundCategory source
-
x
private int x
-
y
private int y
-
z
private int z
-
volume
private float volume
-
pitch
private float pitch
-
-
Constructor Detail
-
SPlaySoundEffectPacket
public SPlaySoundEffectPacket()
-
SPlaySoundEffectPacket
public SPlaySoundEffectPacket(SoundEvent p_i46896_1_, SoundCategory p_i46896_2_, double p_i46896_3_, double p_i46896_5_, double p_i46896_7_, float p_i46896_9_, float p_i46896_10_)
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
getSound
public SoundEvent getSound()
-
getSource
public SoundCategory getSource()
-
getX
public double getX()
-
getY
public double getY()
-
getZ
public double getZ()
-
getVolume
public float getVolume()
-
getPitch
public float getPitch()
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
-