Class ClientboundSoundPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSoundPacket
- All Implemented Interfaces:
- Packet<ClientGamePacketListener>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final floatprivate final floatprivate final longprivate final Holder<SoundEvent>private final SoundSourceprivate final floatprivate final intprivate final intprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionClientboundSoundPacket(Holder<SoundEvent> p_263366_, SoundSource p_263375_, double p_263378_, double p_263367_, double p_263394_, float p_263415_, float p_263399_, long p_263409_) ClientboundSoundPacket(FriendlyByteBuf p_179422_) 
- 
Method SummaryModifier and TypeMethodDescriptionfloatgetPitch()longgetSeed()getSound()floatdoublegetX()doublegetY()doublegetZ()voidhandle(ClientGamePacketListener p_133454_) voidwrite(FriendlyByteBuf p_133457_) 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- 
LOCATION_ACCURACYpublic static final float LOCATION_ACCURACY- See Also:
 
- 
sound
- 
source
- 
xprivate final int x
- 
yprivate final int y
- 
zprivate final int z
- 
volumeprivate final float volume
- 
pitchprivate final float pitch
- 
seedprivate final long seed
 
- 
- 
Constructor Details- 
ClientboundSoundPacketpublic ClientboundSoundPacket(Holder<SoundEvent> p_263366_, SoundSource p_263375_, double p_263378_, double p_263367_, double p_263394_, float p_263415_, float p_263399_, long p_263409_) 
- 
ClientboundSoundPacket
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- Packet<ClientGamePacketListener>
 
- 
getSound
- 
getSource
- 
getXpublic double getX()
- 
getYpublic double getY()
- 
getZpublic double getZ()
- 
getVolumepublic float getVolume()
- 
getPitchpublic float getPitch()
- 
getSeedpublic long getSeed()
- 
handle- Specified by:
- handlein interface- Packet<ClientGamePacketListener>
 
 
-