net.minecraft.network.protocol.game

public class ClientboundSoundPacket

implements Packet<ClientGamePacketListener>

afn
net.minecraft.network.protocol.game.ClientboundSoundPacket
net.minecraft.class_2767
net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket
net.minecraft.network.protocol.game.PacketPlayOutNamedSoundEffect

Field summary

Modifier and TypeField
public static final StreamCodec<RegistryFriendlyByteBuf, ClientboundSoundPacket>
a
STREAM_CODEC
field_47995
CODEC
public static final float
b
LOCATION_ACCURACY
field_33353
COORDINATE_SCALE
private final Holder<SoundEvent>
c
sound
field_12661
sound
private final SoundSource
d
source
field_12660
category
private final int
e
x
field_12659
fixedX
private final int
f
y
field_12658
fixedY
private final int
g
z
field_12657
fixedZ
private final float
h
volume
field_12656
volume
private final float
i
pitch
field_12662
pitch
private final long
j
seed
field_38820
seed

Constructor summary

ModifierConstructor
public (Holder<SoundEvent> sound, SoundSource category, double x, double y, double z, float volume, float pitch, long seed)
private (RegistryFriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(wa arg0)
write(RegistryFriendlyByteBuf arg0)
method_55942(class_9129 arg0)
write(RegistryByteBuf buf)
public PacketType<ClientboundSoundPacket>
a()
type()
method_65080()
getPacketType()
public void
a(abl arg0)
handle(ClientGamePacketListener arg0)
method_11895(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public Holder<SoundEvent>
b()
getSound()
method_11894()
getSound()
public SoundSource
e()
getSource()
method_11888()
getCategory()
public double
f()
getX()
method_11890()
getX()
public double
g()
getY()
method_11889()
getY()
public double
h()
getZ()
method_11893()
getZ()
public float
i()
getVolume()
method_11891()
getVolume()
public float
j()
getPitch()
method_11892()
getPitch()
public long
k()
getSeed()
method_43236()
getSeed()