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 SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate final floatprivate final longprivate final Holder<SoundEvent>private final SoundSourceprivate final float
- 
Constructor SummaryConstructorsConstructorDescriptionClientboundSoundEntityPacket(Holder<SoundEvent> p_263513_, SoundSource p_263511_, Entity p_263496_, float p_263519_, float p_263523_, long p_263532_) ClientboundSoundEntityPacket(FriendlyByteBuf p_179419_) 
- 
Method SummaryModifier and TypeMethodDescriptionintgetId()floatgetPitch()longgetSeed()getSound()floatvoidhandle(ClientGamePacketListener p_133425_) voidwrite(FriendlyByteBuf p_133428_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
sound
- 
source
- 
idprivate final int id
- 
volumeprivate final float volume
- 
pitchprivate final float pitch
- 
seedprivate final long seed
 
- 
- 
Constructor Details- 
ClientboundSoundEntityPacketpublic ClientboundSoundEntityPacket(Holder<SoundEvent> p_263513_, SoundSource p_263511_, Entity p_263496_, float p_263519_, float p_263523_, long p_263532_) 
- 
ClientboundSoundEntityPacket
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- Packet<ClientGamePacketListener>
 
- 
getSound
- 
getSource
- 
getIdpublic int getId()
- 
getVolumepublic float getVolume()
- 
getPitchpublic float getPitch()
- 
getSeedpublic long getSeed()
- 
handle- Specified by:
- handlein interface- Packet<ClientGamePacketListener>
 
 
-