net.minecraft.network.packet.s2c.play

public class PlaySoundS2CPacket

implements Packet<ClientPlayPacketListener>

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

Field summary

Modifier and TypeField
public static final PacketCodec<RegistryByteBuf, PlaySoundS2CPacket>
STREAM_CODEC
field_47995
CODEC
public static final float
LOCATION_ACCURACY
field_33353
COORDINATE_SCALE
private final RegistryEntry<SoundEvent>
sound
field_12661
sound
private final SoundCategory
source
field_12660
category
private final int
x
field_12659
fixedX
private final int
y
field_12658
fixedY
private final int
z
field_12657
fixedZ
private final float
volume
field_12656
volume
private final float
pitch
field_12662
pitch
private final long
seed
field_38820
seed

Constructor summary

ModifierConstructor
public (RegistryEntry<SoundEvent> sound, SoundCategory category, double x, double y, double z, float volume, float pitch, long seed)
private (RegistryByteBuf buf)

Method summary

Modifier and TypeMethod
private void
write(RegistryFriendlyByteBuf output)
method_55942(class_9129 arg0)
write(RegistryByteBuf buf)
public PacketType<PlaySoundS2CPacket>
type()
method_65080()
getPacketType()
public void
handle(ClientGamePacketListener listener)
method_11895(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public RegistryEntry<SoundEvent>
getSound()
method_11894()
getSound()
public SoundCategory
getSource()
method_11888()
getCategory()
public double
getX()
method_11890()
getX()
public double
getY()
method_11889()
getY()
public double
getZ()
method_11893()
getZ()
public float
getVolume()
method_11891()
getVolume()
public float
getPitch()
method_11892()
getPitch()
public long
getSeed()
method_43236()
getSeed()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)