Class SPlaySoundPacket
java.lang.Object
net.minecraft.network.play.server.SPlaySoundPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ResourceLocationprivate floatprivate SoundCategoryprivate floatprivate intprivate intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionSPlaySoundPacket(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()floatgetPitch()floatdoublegetX()doublegetY()doublegetZ()voidhandle(IClientPlayNetHandler p_148833_1_) voidread(PacketBuffer p_148837_1_) voidwrite(PacketBuffer p_148840_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
readin interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
write
- Specified by:
writein 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:
handlein interfaceIPacket<IClientPlayNetHandler>
-