Class ClientboundSoundEntityPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSoundEntityPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundSoundEntityPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate floatprivate SoundEventprivate SoundSourceprivate float -
Constructor Summary
ConstructorsConstructorDescriptionClientboundSoundEntityPacket(FriendlyByteBuf p_179419_)ClientboundSoundEntityPacket(SoundEvent p_133415_, SoundSource p_133416_, Entity p_133417_, float p_133418_, float p_133419_) -
Method Summary
Modifier and TypeMethodDescriptionintgetId()floatgetPitch()getSound()floatvoidhandle(ClientGamePacketListener p_133425_)voidwrite(FriendlyByteBuf p_133428_)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
sound
-
source
-
id
private final int id -
volume
private final float volume -
pitch
private final float pitch
-
-
Constructor Details
-
ClientboundSoundEntityPacket
public ClientboundSoundEntityPacket(SoundEvent p_133415_, SoundSource p_133416_, Entity p_133417_, float p_133418_, float p_133419_) -
ClientboundSoundEntityPacket
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientGamePacketListener>
-
getSound
-
getSource
-
getId
public int getId() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-