Class SPlaySoundPacket
java.lang.Object
net.minecraft.network.play.server.SPlaySoundPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
Modifier and TypeFieldDescriptionprivate ResourceLocation
private float
private SoundCategory
private float
private int
private int
private int
-
Constructor Summary
ConstructorDescriptionSPlaySoundPacket
(ResourceLocation p_i47939_1_, SoundCategory p_i47939_2_, Vector3d p_i47939_3_, float p_i47939_4_, float p_i47939_5_) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
float
getPitch()
float
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 Details
-
name
-
source
-
x
private int x -
y
private int y -
z
private int z -
volume
private float volume -
pitch
private float pitch
-
-
Constructor Details
-
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 Details
-
read
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
getName
-
getSource
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
handle
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-