net.minecraft.network.packet.s2c.play

public class PlaySoundFromEntityS2CPacket

implements Packet<ClientPlayPacketListener>

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

Field summary

Modifier and TypeField
public static final PacketCodec<RegistryByteBuf, PlaySoundFromEntityS2CPacket>
STREAM_CODEC
field_47994
CODEC
private final RegistryEntry<SoundEvent>
sound
field_12642
sound
private final SoundCategory
source
field_12641
category
private final int
id
field_12640
entityId
private final float
volume
field_12639
volume
private final float
pitch
field_12638
pitch
private final long
seed
field_38819
seed

Constructor summary

ModifierConstructor
public (RegistryEntry<SoundEvent> sound, SoundCategory category, Entity entity, float volume, float pitch, long seed)
private (RegistryByteBuf buf)

Method summary

Modifier and TypeMethod
private void
write(RegistryFriendlyByteBuf output)
method_55941(class_9129 arg0)
write(RegistryByteBuf buf)
public PacketType<PlaySoundFromEntityS2CPacket>
type()
method_65080()
getPacketType()
public void
handle(ClientGamePacketListener listener)
method_11884(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public RegistryEntry<SoundEvent>
getSound()
method_11882()
getSound()
public SoundCategory
getSource()
method_11881()
getCategory()
public int
getId()
method_11883()
getEntityId()
public float
getVolume()
method_11885()
getVolume()
public float
getPitch()
method_11880()
getPitch()
public long
getSeed()
method_43235()
getSeed()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)