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 final intprivate final floatprivate final longprivate final Holder<SoundEvent> private final SoundSourcestatic final StreamCodec<RegistryFriendlyByteBuf, ClientboundSoundEntityPacket> private final float -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundSoundEntityPacket(Holder<SoundEvent> p_263513_, SoundSource p_263511_, Entity p_263496_, float p_263519_, float p_263523_, long p_263532_) private -
Method Summary
Modifier and TypeMethodDescriptionintgetId()floatgetPitch()longgetSeed()getSound()floatvoidhandle(ClientGamePacketListener p_133425_) type()private voidwrite(RegistryFriendlyByteBuf p_320141_) 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, isTerminal
-
Field Details
-
STREAM_CODEC
-
sound
-
source
-
id
private final int id -
volume
private final float volume -
pitch
private final float pitch -
seed
private final long seed
-
-
Constructor Details
-
ClientboundSoundEntityPacket
public ClientboundSoundEntityPacket(Holder<SoundEvent> p_263513_, SoundSource p_263511_, Entity p_263496_, float p_263519_, float p_263523_, long p_263532_) -
ClientboundSoundEntityPacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getSound
-
getSource
-
getId
public int getId() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getSeed
public long getSeed()
-