public class SoundPacket extends PacketCodec
| Constructor and Description |
|---|
SoundPacket()
Empty packet.
|
SoundPacket(double x,
double y,
double z,
java.lang.String sound,
float volume,
float frequency)
Creates a packet with coordinates.
|
SoundPacket(double x,
double y,
double z,
java.lang.String sound,
float volume,
float frequency,
java.lang.String mod)
Creates a packet with coordinates.
|
SoundPacket(ILocation location,
java.lang.String sound,
float volume,
float frequency)
Creates a packet which contains the location data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionClient(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
Actions for client-side.
|
void |
actionServer(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayerMP player)
Actions for server-side.
|
decode, encode, getActionpublic SoundPacket()
public SoundPacket(double x,
double y,
double z,
java.lang.String sound,
float volume,
float frequency)
x - The X coordinate.y - The Y coordinate.z - The Z coordinate.sound - The sound name to play.volume - The volume of the sound.frequency - The pitch of the sound.public SoundPacket(double x,
double y,
double z,
java.lang.String sound,
float volume,
float frequency,
java.lang.String mod)
x - The X coordinate.y - The Y coordinate.z - The Z coordinate.sound - The sound name to play.volume - The volume of the sound.frequency - The pitch of the sound.mod - The mod id that has this sound.public SoundPacket(ILocation location, java.lang.String sound, float volume, float frequency)
location - The location data.sound - The sound name to play.volume - The volume of the sound.frequency - The pitch of the sound.public void actionClient(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
PacketBaseactionClient in class PacketBaseworld - The world.player - The player.public void actionServer(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayerMP player)
PacketBaseactionServer in class PacketBaseworld - The world.player - The player.