Class SSpawnMovingSoundEffectPacket
java.lang.Object
net.minecraft.network.play.server.SSpawnMovingSoundEffectPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private float
private SoundEvent
private SoundCategory
private float
-
Constructor Summary
ConstructorDescriptionSSpawnMovingSoundEffectPacket
(SoundEvent p_i50763_1_, SoundCategory p_i50763_2_, Entity p_i50763_3_, float p_i50763_4_, float p_i50763_5_) -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
float
getPitch()
getSound()
float
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
-
sound
-
source
-
id
private int id -
volume
private float volume -
pitch
private float pitch
-
-
Constructor Details
-
SSpawnMovingSoundEffectPacket
public SSpawnMovingSoundEffectPacket() -
SSpawnMovingSoundEffectPacket
public SSpawnMovingSoundEffectPacket(SoundEvent p_i50763_1_, SoundCategory p_i50763_2_, Entity p_i50763_3_, float p_i50763_4_, float p_i50763_5_)
-
-
Method Details
-
read
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
getSound
-
getSource
-
getId
public int getId() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
handle
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-