public class PlaySoundIdS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private SoundCategory |
category |
private int |
fixedX |
private int |
fixedY |
private int |
fixedZ |
private Identifier |
id |
private float |
pitch |
private float |
volume |
Constructor and Description |
---|
PlaySoundIdS2CPacket() |
PlaySoundIdS2CPacket(Identifier sound,
SoundCategory category,
Vec3d pos,
float volume,
float pitch) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
SoundCategory |
getCategory() |
float |
getPitch() |
Identifier |
getSoundId() |
float |
getVolume() |
double |
getX() |
double |
getY() |
double |
getZ() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private Identifier id
private SoundCategory category
private int fixedX
private int fixedY
private int fixedZ
private float volume
private float pitch
public PlaySoundIdS2CPacket()
public PlaySoundIdS2CPacket(Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
@Environment(value=CLIENT) public Identifier getSoundId()
@Environment(value=CLIENT) public SoundCategory getCategory()
@Environment(value=CLIENT) public double getX()
@Environment(value=CLIENT) public double getY()
@Environment(value=CLIENT) public double getZ()
@Environment(value=CLIENT) public float getVolume()
@Environment(value=CLIENT) public float getPitch()
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>