public class ServerPlaySoundPacket extends MinecraftPacket
| Constructor and Description |
|---|
ServerPlaySoundPacket(Sound sound,
SoundCategory category,
double x,
double y,
double z,
float volume,
float pitch) |
| Modifier and Type | Method and Description |
|---|---|
SoundCategory |
getCategory() |
float |
getPitch() |
Sound |
getSound() |
float |
getVolume() |
double |
getX() |
double |
getY() |
double |
getZ() |
void |
read(com.github.steveice10.packetlib.io.NetInput in) |
void |
write(com.github.steveice10.packetlib.io.NetOutput out) |
isPriority, toStringpublic ServerPlaySoundPacket(Sound sound, SoundCategory category, double x, double y, double z, float volume, float pitch)
public Sound getSound()
public SoundCategory getCategory()
public double getX()
public double getY()
public double getZ()
public float getVolume()
public float getPitch()
public void read(com.github.steveice10.packetlib.io.NetInput in)
throws IOException
IOExceptionpublic void write(com.github.steveice10.packetlib.io.NetOutput out)
throws IOException
IOExceptionCopyright © 2020. All rights reserved.