Class SPlaySoundEffectPacket
java.lang.Object
net.minecraft.network.play.server.SPlaySoundEffectPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate SoundEventprivate SoundCategoryprivate floatprivate intprivate intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionSPlaySoundEffectPacket(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
Modifier and TypeMethodDescriptionfloatgetPitch()getSound()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
-
sound
-
source
-
x
private int x -
y
private int y -
z
private int z -
volume
private float volume -
pitch
private float pitch
-
-
Constructor Details
-
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 Details
-
read
- Specified by:
readin interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
write
- Specified by:
writein interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
getSound
-
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>
-