Class SPlaySoundPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SPlaySoundPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SPlaySoundPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
name
private float
pitch
private SoundCategory
source
private float
volume
private int
x
private int
y
private int
z
-
Constructor Summary
Constructors Constructor Description SPlaySoundPacket()
SPlaySoundPacket(ResourceLocation p_i47939_1_, SoundCategory p_i47939_2_, Vector3d p_i47939_3_, float p_i47939_4_, float p_i47939_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocation
getName()
float
getPitch()
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
-
name
private ResourceLocation name
-
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
-
SPlaySoundPacket
public SPlaySoundPacket()
-
SPlaySoundPacket
public SPlaySoundPacket(ResourceLocation p_i47939_1_, SoundCategory p_i47939_2_, Vector3d p_i47939_3_, float p_i47939_4_, float p_i47939_5_)
-
-
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
-
getName
public ResourceLocation getName()
-
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>
-
-