net.minecraft.network.protocol.game

public class ClientboundSoundEntityPacket

implements Packet<ClientGamePacketListener>

ags
net.minecraft.network.protocol.game.ClientboundSoundEntityPacket
net.minecraft.class_2765
net.minecraft.network.packet.s2c.play.PlaySoundFromEntityS2CPacket
net.minecraft.network.protocol.game.PacketPlayOutEntitySound

Field summary

Modifier and TypeField
public static final StreamCodec<RegistryFriendlyByteBuf, ClientboundSoundEntityPacket>
a
STREAM_CODEC
field_47994
CODEC
private final Holder<SoundEvent>
b
sound
field_12642
sound
private final SoundSource
c
source
field_12641
category
private final int
d
id
field_12640
entityId
private final float
e
volume
field_12639
volume
private final float
f
pitch
field_12638
pitch
private final long
g
seed
field_38819
seed

Constructor summary

ModifierConstructor
public (Holder<SoundEvent> sound, SoundSource category, Entity entity, float volume, float pitch, long seed)
private (RegistryFriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(xg arg0)
write(RegistryFriendlyByteBuf arg0)
method_55941(class_9129 arg0)
write(RegistryByteBuf buf)
public PacketType<ClientboundSoundEntityPacket>
a()
type()
method_55846()
getPacketId()
public void
a(acr arg0)
handle(ClientGamePacketListener arg0)
method_11884(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public Holder<SoundEvent>
b()
getSound()
method_11882()
getSound()
public SoundSource
e()
getSource()
method_11881()
getCategory()
public int
f()
getId()
method_11883()
getEntityId()
public float
g()
getVolume()
method_11885()
getVolume()
public float
h()
getPitch()
method_11880()
getPitch()
public long
i()
getSeed()
method_43235()
getSeed()