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); } }