use of net.minecraft.client.audio.MovingSound in project RFTools by McJty.
the class ElevatorSounds method isLoopPlaying.
public static boolean isLoopPlaying(World worldObj, BlockPos pos) {
GlobalCoordinate g = new GlobalCoordinate(pos, worldObj.provider.getDimension());
MovingSound movingSound = sounds.get(g);
return movingSound instanceof ElevatorLoopSound;
}
use of net.minecraft.client.audio.MovingSound in project RFTools by McJty.
the class ElevatorSounds method playLoop.
public static void playLoop(World worldObj, BlockPos pos) {
MovingSound sound = new ElevatorLoopSound(worldObj, pos.getX(), pos.getY(), pos.getZ());
playSound(worldObj, pos, sound);
}
use of net.minecraft.client.audio.MovingSound in project RFTools by McJty.
the class ProjectorSounds method stopSound.
public static void stopSound(BlockPos pos) {
if (sounds.containsKey(pos)) {
MovingSound movingSound = sounds.get(pos);
((ProjectorSound) movingSound).stop();
Minecraft.getMinecraft().getSoundHandler().stopSound(movingSound);
sounds.remove(pos);
}
}
use of net.minecraft.client.audio.MovingSound in project RFTools by McJty.
the class ProjectorSounds method playScan.
public static void playScan(World worldObj, BlockPos pos) {
MovingSound sound = new ProjectorSound(worldObj, pos.getX(), pos.getY(), pos.getZ());
playSound(pos, sound);
}
Aggregations