Java 类net.minecraft.client.audio.MovingSound 实例源码

项目:Lector    文件:SoundController.java   
public static void stopSound(World worldObj, BlockPos pos) {
    Pair<Integer, BlockPos> g = fromPosition(worldObj, pos);
    if (sounds.containsKey(g)) {
        MovingSound movingSound = sounds.get(g);
        Minecraft.getMinecraft().getSoundHandler().stopSound(movingSound);
        sounds.remove(g);
    }
}
项目:AquaMunda    文件:SoundController.java   
public static void stopSound(World worldObj, BlockPos pos) {
    Pair<Integer, BlockPos> g = fromPosition(worldObj, pos);
    if (sounds.containsKey(g)) {
        MovingSound movingSound = sounds.get(g);
        Minecraft.getMinecraft().getSoundHandler().stopSound(movingSound);
        sounds.remove(g);
    }
}